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.

Error in restarting mysql server

Discussion in 'General Discussion' started by mnmhm2004, Aug 7, 2008.

  1. mnmhm2004

    mnmhm2004 Member

    Joined:
    Sep 26, 2006
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    Hi
    i have this error when restarting the mysql server :

    Code:
    /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! mysql has failed, please contact the sysadmin (result was "mysql has 
    
    failed"). 
    to figure the problem:
    this error appear when i restart mysql for firest time
    but when i try to restart it again its works fine

    any advice or help plz

    thanks in advance
    :)
     
    #1 mnmhm2004, Aug 7, 2008
    Last edited: Aug 7, 2008
  2. mnmhm2004

    mnmhm2004 Member

    Joined:
    Sep 26, 2006
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    any help ?
     
  3. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,478
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Have you rebooted the entire server yet? If not give that a go.
     
  4. mnmhm2004

    mnmhm2004 Member

    Joined:
    Sep 26, 2006
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    Thanks Infopro for your reply i will restart the server as you say

    :D
     
  5. hikaro

    hikaro Well-Known Member

    Joined:
    Nov 22, 2005
    Messages:
    99
    Likes Received:
    0
    Trophy Points:
    16
    i have this issue if i restart my server,so every time after i restarted my server, i need to manually restart mysql again

    anyone know why?
     
  6. MaestriaNick

    MaestriaNick Well-Known Member

    Joined:
    Aug 6, 2008
    Messages:
    159
    Likes Received:
    3
    Trophy Points:
    18
    Hi ,

    Please run ,

    # chkconfig --list| grep mysql

    # chkconfig mysql on
     
Loading...

Share This Page