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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Restart MySQL user only

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

  1. popeye

    popeye Well-Known Member

    Joined:
    May 23, 2013
    Messages:
    330
    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:
    568
    Likes Received:
    40
    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
     
  3. popeye

    popeye Well-Known Member

    Joined:
    May 23, 2013
    Messages:
    330
    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page