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.

MySQL will not start

Discussion in 'General Discussion' started by JasonUK, May 26, 2006.

  1. JasonUK

    JasonUK Member

    Joined:
    Apr 11, 2005
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    I can't get MySQL to start. I have read the other threads here, at ev1, webhostingtalk and of course Google but none seem to work. All that has happened is we upgraded from MySQL 4.1 to 5. The error is:

    /usr/bin/mysqladmin: connect to server at 'localhost' failed
    error: 'Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)'
    Check that mysqld is running and that the socket: '/var/lib/mysql/mysql.sock' exists!
    Unable to reset root MySQL password. at /scripts/securemysql line 150.
    Install Complete


    Does anyone know the answer? I can force the root password change but it still won't start.
     
  2. demomen

    demomen Well-Known Member

    Joined:
    Sep 25, 2004
    Messages:
    111
    Likes Received:
    0
    Trophy Points:
    16
    killall -9 mysql
    /etc/init.d/mysql restart

    might need to add d (eg mysqld)
     
  3. sawbuck

    sawbuck Well-Known Member

    Joined:
    Jan 18, 2004
    Messages:
    1,367
    Likes Received:
    5
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
  4. JasonUK

    JasonUK Member

    Joined:
    Apr 11, 2005
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Thanks for the reply guys. Sawbuck your link fixed my problem. Cheers :)
     
Loading...

Share This Page