SOLVED Restart MySQL Service Command?

ashrafpro

Member
Jan 11, 2018
6
0
1
Cairo
cPanel Access Level
Root Administrator
Hi,
I am a beginner, trying to find my way :)

on my server I restart mysql from putty with this command:
/bin/systemctl restart mysql.service

now I have a new server, the command is not running, gives this error:
Failed to restart mysql.service: Unit not found

little results on google, but I found this working
/bin/systemctl restart mysqld.service

both servers are the default cpanel installation, did they change anything?
OS: Centos 7.4 and 7.5

thanks
 

rpvw

Well-Known Member
Jul 18, 2013
1,101
466
113
UK
cPanel Access Level
Root Administrator
  • Like
Reactions: cPanelMichael

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,226
463
Hello @ashrafpro,

The command provided in the previous post is correct and will allow you to restart MySQL. Let us know if you have any additional questions.

Thank you.