Discussion:
MySQL problem
(too old to reply)
pinnerite
2024-02-20 21:54:41 UTC
Permalink
I wanted to add a user to a table used by mythtv.

This is what I had before b___d it.
+-----------+--------+-----------------------+-------------------------------------------+
| host | user | plugin | authentication_string |
+-----------+--------+-----------------------+-------------------------------------------+
| % | mythtv | mysql_native_password | *F21923DEF11A5686509E3D9DD4C1F5E3AA7D1172 |
| localhost | mythtv | mysql_native_password | *CC8F35F587CA5A556B4132C2407E556D92172FFC |
+-----------+--------+-----------------------+-------------------------------------------+

I wanted to add:

+------------+--------+-----------------------+-------------------------------------------+
| host | user | plugin | authentication_string |
+------------+--------+-----------------------+-------------------------------------------+
|192.168.1.% | mythtv | mysql_native_password | *CC8F35F587CA5A556B4132C2407E556D92172FFC |
+------------+--------+-----------------------+-------------------------------------------+

by entering:
mysql> CREATE USER 'mythtv'@'albury' IDENTIFIED BY 'mythtv';

I now have:

+-----------+--------+-----------------------+------------------------------------------------------------------------+
| host | user | plugin | authentication_string |
+-----------+--------+-----------------------+------------------------------------------------------------------------+
| % | mythtv | mysql_native_password | *F21923DEF11A5686509E3D9DD4C1F5E3AA7D1172 |
ZUNlVAD. | mythtv | caching_sha2_password | $A$005$a22dS
"XjVzi1k.nfGtLdjcUSHinJ3XhopdDalbSDpvnQU4ge69 |
| localhost | mythtv | mysql_native_password | *CC8F35F587CA5A556B4132C2407E556D92172FFC |
+-----------+--------+-----------------------+------------------------------------------------------------------------+
I need to get rid of the middle record but I cannot get the syntax right.

I tried::
mysql> DROP USER 'mythtv'@'192.168.1.5' WHERE host=("ZUNlVAD.");
mysql> DROP USER 'mythtv' WHERE AUTHENTICATION_STRING="$A$005$a22dS"XjVzi1k.nfGtLdjcUSHinJ3XhopdDalbSDpvnQU4ge69";
mysql> DROP USER 'mythtv' WHERE AUTHENTICATION_STRING="($A$005$a22dS"XjVzi1k.nfGtLdjcUSHinJ3XhopdDalbSDpvnQU4ge69)";
mysql> DROP USER 'mythtv' WHERE HOST<> "%" and host <> "LOCALHOST";

but I just get rebukes.

Can anybody help?

TIA

Alan
--
Linux Mint 21.1 kernel version 5.15.0-94-generic Cinnamon 5.6.8
AMD Phenom II x4 955 CPU 16Gb Dram 2TB Barracuda
Nic
2024-02-20 22:08:25 UTC
Permalink
Post by pinnerite
I wanted to add a user to a table used by mythtv.
This is what I had before b___d it.
+-----------+--------+-----------------------+-------------------------------------------+
| host | user | plugin | authentication_string |
+-----------+--------+-----------------------+-------------------------------------------+
| % | mythtv | mysql_native_password | *F21923DEF11A5686509E3D9DD4C1F5E3AA7D1172 |
| localhost | mythtv | mysql_native_password | *CC8F35F587CA5A556B4132C2407E556D92172FFC |
+-----------+--------+-----------------------+-------------------------------------------+
+------------+--------+-----------------------+-------------------------------------------+
| host | user | plugin | authentication_string |
+------------+--------+-----------------------+-------------------------------------------+
|192.168.1.% | mythtv | mysql_native_password | *CC8F35F587CA5A556B4132C2407E556D92172FFC |
+------------+--------+-----------------------+-------------------------------------------+
+-----------+--------+-----------------------+------------------------------------------------------------------------+
| host | user | plugin | authentication_string |
+-----------+--------+-----------------------+------------------------------------------------------------------------+
| % | mythtv | mysql_native_password | *F21923DEF11A5686509E3D9DD4C1F5E3AA7D1172 |
ZUNlVAD. | mythtv | caching_sha2_password | $A$005$a22dS
"XjVzi1k.nfGtLdjcUSHinJ3XhopdDalbSDpvnQU4ge69 |
| localhost | mythtv | mysql_native_password | *CC8F35F587CA5A556B4132C2407E556D92172FFC |
+-----------+--------+-----------------------+------------------------------------------------------------------------+
I need to get rid of the middle record but I cannot get the syntax right.
mysql> DROP USER 'mythtv' WHERE AUTHENTICATION_STRING="$A$005$a22dS"XjVzi1k.nfGtLdjcUSHinJ3XhopdDalbSDpvnQU4ge69";
mysql> DROP USER 'mythtv' WHERE AUTHENTICATION_STRING="($A$005$a22dS"XjVzi1k.nfGtLdjcUSHinJ3XhopdDalbSDpvnQU4ge69)";
mysql> DROP USER 'mythtv' WHERE HOST<> "%" and host <> "LOCALHOST";
but I just get rebukes.
Can anybody help?
TIA
Alan
Here in the US we have something called Over The Air Broadcast, where
you can use an old rabbit ear antenna and get depending on your distance
from the transmitter 30-40 channels. It is what is called 'cut the cable'.
Paul
2024-02-21 06:38:06 UTC
Permalink
Post by Nic
Here in the US we have something called Over The Air Broadcast,
where you can use an old rabbit ear antenna and get depending on your
distance from the transmitter 30-40 channels. It is what is called
'cut the cable'.
Alan has at least two options. There is Freeview satellite and
there is OTA from Crystal Palace. He is likely recording from
Crystal Palace.

*******

Sometimes a directional antenna cuts down on OTA multipath problems.
This works a little better than a rabbit ears.

[Picture] Combo VHF/UHF antenna (Gray-Hoverman, Narod, added VHF elements)

Loading Image...

If all your OTA stations are in the UHF band, a basic Gray-Hoverman is enough.
Not having to support VHF frequencies, makes antennas a lot simpler.

https://www.pinterest.com/pin/1196337389367787/

Some of the more interesting home antennas, used coat hanger wire and foil
for a ground plane :-) Just about anything that conducts, will pick up a
signal at 200MHz, so even if you lack any sort of construction skills,
the antenna will still pick something up.

The adjustable part of the rabbit ears, is mainly for VHF. If you shorten
the ears, that shifts reception a bit higher in frequency. The loop near
the core of the device, is more intended for UHF.

Instead of rabbit ears, this will work. The RadioShack double-bow-tie.
You can tell from the feet on it, it wasn't really meant for outdoors.
Some of the facets of construction might fool you into thinking that
(it uses rivets, like a real antenna).

Loading Image...

Paul
TJ
2024-02-22 16:36:56 UTC
Permalink
Post by Paul
If all your OTA stations are in the UHF band, a basic Gray-Hoverman is enough.
Not having to support VHF frequencies, makes antennas a lot simpler.
https://www.pinterest.com/pin/1196337389367787/
Some of the more interesting home antennas, used coat hanger wire and foil
for a ground plane 🙂 Just about anything that conducts, will pick up a
signal at 200MHz, so even if you lack any sort of construction skills,
the antenna will still pick something up.
The adjustable part of the rabbit ears, is mainly for VHF. If you shorten
the ears, that shifts reception a bit higher in frequency. The loop near
the core of the device, is more intended for UHF.
Instead of rabbit ears, this will work. The RadioShack double-bow-tie.
You can tell from the feet on it, it wasn't really meant for outdoors.
Some of the facets of construction might fool you into thinking that
(it uses rivets, like a real antenna).
https://img0.etsystatic.com/000/0/5583309/il_570xN.120479388.jpg
I have an old ATSC tuner on a PCI card, but I was never able to figure
out how to make mythTV work with it. I did manage to make it work
somewhat with Kaffeine, but it never worked well. I think my hardware at
the time was just too old and slow.

I have better hardware now, and that might make the difference, but
quite frankly, for me it's just too much trouble. I bought a
PVR/converter box on Amazon that will record for me on a USB device,
which I can later play back using the PVR, or on a Linux box with vlc.

I'm not too far from the various transmitters, and use a flat antenna
that's about the size of a sheet of common office paper. It comes with
an optional amplifier that's powered by a usb source. It does a great
job, but as with all indoor antennas, placement is key. It can work well
in one spot, but move it even a few inches from that spot, and it won't.

(BTW, also using this post to test Usenet operation of the latest
Thunderbird update candidate for Mageia)

TJ

Jonathan N. Little
2024-02-20 22:17:02 UTC
Permalink
Post by pinnerite
I wanted to add a user to a table used by mythtv.
This is what I had before b___d it.
+-----------+--------+-----------------------+-------------------------------------------+
| host | user | plugin | authentication_string |
+-----------+--------+-----------------------+-------------------------------------------+
| % | mythtv | mysql_native_password | *F21923DEF11A5686509E3D9DD4C1F5E3AA7D1172 |
| localhost | mythtv | mysql_native_password | *CC8F35F587CA5A556B4132C2407E556D92172FFC |
+-----------+--------+-----------------------+-------------------------------------------+
+------------+--------+-----------------------+-------------------------------------------+
| host | user | plugin | authentication_string |
+------------+--------+-----------------------+-------------------------------------------+
|192.168.1.% | mythtv | mysql_native_password | *CC8F35F587CA5A556B4132C2407E556D92172FFC |
+------------+--------+-----------------------+-------------------------------------------+
+-----------+--------+-----------------------+------------------------------------------------------------------------+
| host | user | plugin | authentication_string |
+-----------+--------+-----------------------+------------------------------------------------------------------------+
| % | mythtv | mysql_native_password | *F21923DEF11A5686509E3D9DD4C1F5E3AA7D1172 |
ZUNlVAD. | mythtv | caching_sha2_password | $A$005$a22dS
"XjVzi1k.nfGtLdjcUSHinJ3XhopdDalbSDpvnQU4ge69 |
| localhost | mythtv | mysql_native_password | *CC8F35F587CA5A556B4132C2407E556D92172FFC |
+-----------+--------+-----------------------+------------------------------------------------------------------------+
I need to get rid of the middle record but I cannot get the syntax right.
mysql> DROP USER 'mythtv' WHERE AUTHENTICATION_STRING="$A$005$a22dS"XjVzi1k.nfGtLdjcUSHinJ3XhopdDalbSDpvnQU4ge69";
mysql> DROP USER 'mythtv' WHERE AUTHENTICATION_STRING="($A$005$a22dS"XjVzi1k.nfGtLdjcUSHinJ3XhopdDalbSDpvnQU4ge69)";
mysql> DROP USER 'mythtv' WHERE HOST<> "%" and host <> "LOCALHOST";
but I just get rebukes.
Can anybody help?
TIA
Alan
Okay I am assuming mythtv need to have all permissions on mythtv
database and be accessible from a device on your LAN |192.168.1.0.

GRANT ALL ON MythTV_DB.* to 'MythTV_DB_User'@'192.168.1.%' IDENTIFIED BY
'MythTV_User_Password' WITH GRANT OPTION

So since it looks like you are using "mythtv" for all three, DB, User
and Password use below:

GRANT ALL ON mythtv.* to 'mythtv'@'192.168.1.%' IDENTIFIED BY 'mythtv'
WITH GRANT OPTION;

FLUSH PRIVILEGES;
--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Jonathan N. Little
2024-02-20 22:19:30 UTC
Permalink
Jonathan N. Little wrote:

Oh I was assuming you previously set to the mysql db first:

USE mysql;
Post by Jonathan N. Little
WITH GRANT OPTION;
FLUSH PRIVILEGES;
--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
pinnerite
2024-02-21 10:36:49 UTC
Permalink
On Tue, 20 Feb 2024 17:19:30 -0500
Post by Jonathan N. Little
USE mysql;
Post by Jonathan N. Little
WITH GRANT OPTION;
FLUSH PRIVILEGES;
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Thank you,

Alan
--
Linux Mint 21.1 kernel version 5.15.0-94-generic Cinnamon 5.6.8
AMD Phenom II x4 955 CPU 16Gb Dram 2TB Barracuda
David W. Hodgins
2024-02-20 22:50:24 UTC
Permalink
Post by pinnerite
I wanted to add a user to a table used by mythtv.
This is what I had before b___d it.
+-----------+--------+-----------------------+-------------------------------------------+
| host | user | plugin | authentication_string |
+-----------+--------+-----------------------+-------------------------------------------+
| % | mythtv | mysql_native_password | *F21923DEF11A5686509E3D9DD4C1F5E3AA7D1172 |
| localhost | mythtv | mysql_native_password | *CC8F35F587CA5A556B4132C2407E556D92172FFC |
+-----------+--------+-----------------------+-------------------------------------------+
+------------+--------+-----------------------+-------------------------------------------+
| host | user | plugin | authentication_string |
+------------+--------+-----------------------+-------------------------------------------+
|192.168.1.% | mythtv | mysql_native_password | *CC8F35F587CA5A556B4132C2407E556D92172FFC |
+------------+--------+-----------------------+-------------------------------------------+
+-----------+--------+-----------------------+------------------------------------------------------------------------+
| host | user | plugin | authentication_string |
+-----------+--------+-----------------------+------------------------------------------------------------------------+
| % | mythtv | mysql_native_password | *F21923DEF11A5686509E3D9DD4C1F5E3AA7D1172 |
ZUNlVAD. | mythtv | caching_sha2_password | $A$005$a22dS
"XjVzi1k.nfGtLdjcUSHinJ3XhopdDalbSDpvnQU4ge69 |
| localhost | mythtv | mysql_native_password | *CC8F35F587CA5A556B4132C2407E556D92172FFC |
+-----------+--------+-----------------------+------------------------------------------------------------------------+
I need to get rid of the middle record but I cannot get the syntax right.
mysql> DROP USER 'mythtv' WHERE AUTHENTICATION_STRING="$A$005$a22dS"XjVzi1k.nfGtLdjcUSHinJ3XhopdDalbSDpvnQU4ge69";
mysql> DROP USER 'mythtv' WHERE AUTHENTICATION_STRING="($A$005$a22dS"XjVzi1k.nfGtLdjcUSHinJ3XhopdDalbSDpvnQU4ge69)";
mysql> DROP USER 'mythtv' WHERE HOST<> "%" and host <> "LOCALHOST";
but I just get rebukes.
DROP is used to delete a table, database, or index.

To delete an authorization, use REVOKE.
https://www.techonthenet.com/mysql/grant_revoke.php

Regards, Dave Hodgins
pinnerite
2024-02-21 10:21:13 UTC
Permalink
On Tue, 20 Feb 2024 17:50:24 -0500
Post by David W. Hodgins
Post by pinnerite
I wanted to add a user to a table used by mythtv.
This is what I had before b___d it.
+-----------+--------+-----------------------+-------------------------------------------+
| host | user | plugin | authentication_string |
+-----------+--------+-----------------------+-------------------------------------------+
| % | mythtv | mysql_native_password | *F21923DEF11A5686509E3D9DD4C1F5E3AA7D1172 |
| localhost | mythtv | mysql_native_password | *CC8F35F587CA5A556B4132C2407E556D92172FFC |
+-----------+--------+-----------------------+-------------------------------------------+
+------------+--------+-----------------------+-------------------------------------------+
| host | user | plugin | authentication_string |
+------------+--------+-----------------------+-------------------------------------------+
|192.168.1.% | mythtv | mysql_native_password | *CC8F35F587CA5A556B4132C2407E556D92172FFC |
+------------+--------+-----------------------+-------------------------------------------+
+-----------+--------+-----------------------+------------------------------------------------------------------------+
| host | user | plugin | authentication_string |
+-----------+--------+-----------------------+------------------------------------------------------------------------+
| % | mythtv | mysql_native_password | *F21923DEF11A5686509E3D9DD4C1F5E3AA7D1172 |
ZUNlVAD. | mythtv | caching_sha2_password | $A$005$a22dS
"XjVzi1k.nfGtLdjcUSHinJ3XhopdDalbSDpvnQU4ge69 |
| localhost | mythtv | mysql_native_password | *CC8F35F587CA5A556B4132C2407E556D92172FFC |
+-----------+--------+-----------------------+------------------------------------------------------------------------+
I need to get rid of the middle record but I cannot get the syntax right.
mysql> DROP USER 'mythtv' WHERE AUTHENTICATION_STRING="$A$005$a22dS"XjVzi1k.nfGtLdjcUSHinJ3XhopdDalbSDpvnQU4ge69";
mysql> DROP USER 'mythtv' WHERE AUTHENTICATION_STRING="($A$005$a22dS"XjVzi1k.nfGtLdjcUSHinJ3XhopdDalbSDpvnQU4ge69)";
mysql> DROP USER 'mythtv' WHERE HOST<> "%" and host <> "LOCALHOST";
but I just get rebukes.
DROP is used to delete a table, database, or index.
To delete an authorization, use REVOKE.
https://www.techonthenet.com/mysql/grant_revoke.php
Regards, Dave Hodgins
Thank you David. That isreally helpful.

Regards, Alan
--
Linux Mint 21.1 kernel version 5.15.0-94-generic Cinnamon 5.6.8
AMD Phenom II x4 955 CPU 16Gb Dram 2TB Barracuda
Loading...