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!

Permanently disabling MySQL

Discussion in 'General Discussion' started by DBJoshua, Feb 27, 2008.

  1. DBJoshua

    DBJoshua Active Member

    Joined:
    Jun 7, 2007
    Messages:
    44
    Likes Received:
    0
    Trophy Points:
    156
    Hey guys,

    Is there a way to permanently disable MySQL from starting up on bootup / WHM restarting it?


    Thank you.
     
  2. jayh38

    jayh38 Well-Known Member

    Joined:
    Mar 3, 2006
    Messages:
    1,215
    Likes Received:
    0
    Trophy Points:
    166
    Sure,

    whm > service manager > monitor > uncheck mysql

    then to prevent it from starting on boot:
    chkconfig --levels 2345 mysql off

    confirm settings:
    chkconfig --list mysql
     
  3. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,570
    Likes Received:
    45
    Trophy Points:
    308
    cPanel Access Level:
    Root Administrator
    Also (for added benefit):

    touch /etc/mysqldisable
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. DBJoshua

    DBJoshua Active Member

    Joined:
    Jun 7, 2007
    Messages:
    44
    Likes Received:
    0
    Trophy Points:
    156
    Thanks guys. Now on an SQL only server, how do I set it to auto-start upon bootup?

    (Same goes for named/bind for disabling/enabling)
     
  5. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,570
    Likes Received:
    45
    Trophy Points:
    308
    cPanel Access Level:
    Root Administrator
    If it's Linux, try:

    chkconfig --level 345 mysql on
     
    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