Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

SOLVED Restart MySQL Service Command?

Discussion in 'Database Discussion' started by ashrafpro, May 30, 2018.

  1. ashrafpro

    ashrafpro Registered

    Joined:
    Jan 11, 2018
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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
     
  2. rpvw

    rpvw Well-Known Member

    Joined:
    Jul 18, 2013
    Messages:
    979
    Likes Received:
    384
    Trophy Points:
    113
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    cPanelMichael likes this.
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,442
    Likes Received:
    1,961
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice