Community Forums
Connect with us on LinkedIn
Community Notice
  
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Apr 2006
    Posts
    6

    Default mysql

    Hi

    I am getting
    ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
    ion running mysql command..
    also
    i get no process at netstat -ax |grep mysql
    ..

    any help!

  2. #2
    Registered User
    Join Date
    Jun 2004
    Posts
    312
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    Can you see MySQL running in the output of 'px auxf'? If not, it needs to be started.

    Code:
    /etc/init.d/mysql start
    ...should do the trick (provided nothing's broken).

Similar Threads & Tags
Similar threads

  1. Replies: 13
    Last Post: 06-15-2010, 05:31 PM
  2. Replies: 13
    Last Post: 06-15-2010, 05:31 PM
  3. Remote MySQL and /var/lib/mysql/mysql.sock
    By emechanic in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 12-02-2009, 02:08 PM
  4. Replies: 1
    Last Post: 04-21-2007, 02:23 AM
  5. Replies: 0
    Last Post: 06-27-2004, 03:53 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube