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>

Reply via email to