Find the answer to your Linux question:
Results 1 to 5 of 5
hi, when i try to connect MySQL Administrator it is showing the error, i don't know how to overcome this, two days back it was worked and now it is ...
  1. #1
    Just Joined!
    Join Date
    Feb 2008
    Posts
    4

    Unhappy Could not connect to host 'localhost'.

    hi,
    when i try to connect MySQL Administrator it is showing the error, i don't know how to overcome this, two days back it was worked and now it is not and i'm using openSUSE 10.3 and MySQL 5.0

    i'm doing project due to this error i can't proceed further

    Error Message
    Could not connect to host 'localhost'.
    MySQL Error Nr. 2002
    Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)


    Help me

  2. #2
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,344
    Does /var/lib/mysql/mysql.sock exist on your system? Also what is the output of
    Code:
    #find / -name mysql.sock

  3. #3
    Just Joined!
    Join Date
    Feb 2008
    Posts
    4
    no, mysql.sock is not find in my system in path /var/lib/mysql/mysql.sock

  4. #4
    Linux Newbie athlon_crazy's Avatar
    Join Date
    Sep 2007
    Location
    Malaysia
    Posts
    132
    probably your mysql server is not running?

  5. #5
    Just Joined!
    Join Date
    Feb 2008
    Posts
    67
    Hi
    first check whether MySQL is running or not

    then check
    /etc/my.cnf

    there comment out the socket line where /var/lib/mysql/mysql.sock is given
    and restart mysqld...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...