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.

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:
    6
    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:
    36
    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,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Also (for added benefit):

    touch /etc/mysqldisable
     
  4. DBJoshua

    DBJoshua Active Member

    Joined:
    Jun 7, 2007
    Messages:
    44
    Likes Received:
    0
    Trophy Points:
    6
    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,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    If it's Linux, try:

    chkconfig --level 345 mysql on
     
Loading...

Share This Page