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!

Restart MySQL user only

Discussion in 'Database Discussion' started by popeye, Jan 10, 2017.

  1. popeye

    popeye Well-Known Member

    Joined:
    May 23, 2013
    Messages:
    344
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Texas
    cPanel Access Level:
    Root Administrator
    Hi is there any way i can restart a cpanel users MySQL instead of restarting it all via WHM

    Only reason i ask is because one customers uses remote MySQL and gets blocked but when MySQL is restarted it works fine.
     
  2. SysSachin

    SysSachin Well-Known Member

    Joined:
    Aug 23, 2015
    Messages:
    604
    Likes Received:
    43
    Trophy Points:
    28
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    No, it's not possible to restart MySQL service for some users only. You need to find out exact root cause of MySQL connection issue.
    You can check mysql process using the command

    mysqladmin proc
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. popeye

    popeye Well-Known Member

    Joined:
    May 23, 2013
    Messages:
    344
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Texas
    cPanel Access Level:
    Root Administrator
    Thanks i thought you could only restart all of MySQL
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,895
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Correct, MySQL runs as a service so restarting it is a global action. You should review /var/lib/mysql/$hostname.err to help determine why that MySQL user is encountering an issue with the remote connection.

    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