Restart MySQL Service Command?
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
-
cPanel has its own script to restart services: Try /usr/local/cpanel/scripts/restartsrv_mysql
Full details at How to Restart Services - cPanel Knowledge Base - cPanel Documentation0 -
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. 0
Please sign in to leave a comment.
Comments
2 comments