Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #274968 > unrolled thread

Package name question

Started byBitfox <hi@bitfox.ddns.net>
First post2024-11-28 20:00 +0100
Last post2024-11-29 00:10 +0100
Articles 3 — 2 participants

Back to article view | Back to linux.debian.user


Contents

  Package name question Bitfox <hi@bitfox.ddns.net> - 2024-11-28 20:00 +0100
    Re: Package name question Alain D D Williams <addw@phcomp.co.uk> - 2024-11-28 20:10 +0100
    Re: Package name question Bitfox <hi@bitfox.ddns.net> - 2024-11-29 00:10 +0100

#274968 — Package name question

FromBitfox <hi@bitfox.ddns.net>
Date2024-11-28 20:00 +0100
SubjectPackage name question
Message-ID<JNRU6-chaE-5@gated-at.bofh.it>
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

[toc] | [next] | [standalone]


#274969

FromAlain D D Williams <addw@phcomp.co.uk>
Date2024-11-28 20:10 +0100
Message-ID<JNS3L-chtG-1@gated-at.bofh.it>
In reply to#274968
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>

[toc] | [prev] | [next] | [standalone]


#274974

FromBitfox <hi@bitfox.ddns.net>
Date2024-11-29 00:10 +0100
Message-ID<JNVO2-cjMY-13@gated-at.bofh.it>
In reply to#274968
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.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.user


csiph-web