• Re: Package name question

    From Alain D D Williams@21:1/5 to Bitfox on Thu Nov 28 20:10:01 2024
    On Fri, Nov 29, 2024 at 02:52:29AM +0800, Bitfox wrote:
    Hello

    After I installed mysql 8.0 via apt install mysql-server, I tried to restart mysql server.

    I issued the following commands,

    systemctl restart mysql-server
    systemctl restart mysqld

    They got failed, no package was found.

    Then I run systemctl restart mysql it successed finally.

    My question is how I can know the installed package name rather than by guessing?

    $ dpkg -l | grep -i mysql

    But that gives you the Debian package name which is not what you want. You need to know the systemd unit name. This will let you find it, but you need to have spotted that you are running MariaDB in the output above.

    $ systemctl | grep -i maria

    --
    Alain Williams
    Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer.
    +44 (0) 787 668 0256 https://www.phcomp.co.uk/
    Parliament Hill Computers. Registration Information: https://www.phcomp.co.uk/Contact.html
    #include <std_disclaimer.h>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Bitfox@21:1/5 to All on Thu Nov 28 20:00:02 2024
    Hello

    After I installed mysql 8.0 via apt install mysql-server, I tried to
    restart mysql server.

    I issued the following commands,

    systemctl restart mysql-server
    systemctl restart mysqld

    They got failed, no package was found.

    Then I run systemctl restart mysql it successed finally.

    My question is how I can know the installed package name rather than by guessing?

    Thanks

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Bitfox@21:1/5 to Darac Marjal on Fri Nov 29 00:10:02 2024
    On 2024-11-29 03:06, Darac Marjal wrote:


    * "systemctl list-units --all" will list all the services installed on
    your system. You can search that for something likely looking (e.g.
    something beginning with "mysql" or similar).


    this works for me. thank you for your help.

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