• Re: MySQL problem

    From Nic@21:1/5 to pinnerite on Tue Feb 20 17:08:25 2024
    XPost: alt.os.linux.mint, alt.os.linux.mageia

    On 2/20/24 4:54 PM, pinnerite wrote:
    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






    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'.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From David W. Hodgins@21:1/5 to pinnerite on Tue Feb 20 17:50:24 2024
    XPost: alt.os.linux.mint, alt.os.linux.mageia

    On Tue, 20 Feb 2024 16:54:41 -0500, pinnerite <pinnerite@gmail.com> wrote:

    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.

    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Paul@21:1/5 to Nic on Wed Feb 21 01:38:06 2024
    XPost: alt.os.linux.mint, alt.os.linux.mageia

    On 2/20/2024 5:08 PM, Nic wrote:

    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)

    https://i.postimg.cc/SxsBtCQq/tv-antenna.gif

    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

    Paul

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From TJ@21:1/5 to Paul on Thu Feb 22 11:36:56 2024
    XPost: alt.os.linux.mint, alt.os.linux.mageia

    On 2024-02-21 01:38, Paul wrote:
    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

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)