Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 17
1. What is this Issue? myserver:~ # mysql ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) 2. How to resolve this? 3. What is the ...
  1. #1
    Just Joined!
    Join Date
    Dec 2007
    Location
    chennai-TN,India
    Posts
    42

    Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

    1. What is this Issue?
    myserver:~ # mysql
    ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

    2. How to resolve this?

    3. What is the command to check mysql installed in my server?

  2. #2
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,344
    Try starting mysql by doing
    Code:
    #/etc/init.d/mysql start
    Post back any error messages.

  3. #3
    Just Joined!
    Join Date
    Dec 2007
    Location
    chennai-TN,India
    Posts
    42
    But not able to start by that command.


    myserver:~ # ../etc/init.d/mysql start
    Starting MySQL................................... failed

  4. #4
    Just Joined!
    Join Date
    Jul 2004
    Posts
    9
    did you try restart instead of just start ? maybe stop then start ? Im not sure if sock and socket are the same, maybe it has something to do with the port.... but im not sure at all, just a wild guess

  5. #5
    Just Joined!
    Join Date
    Dec 2007
    Location
    chennai-TN,India
    Posts
    42
    myserver:~ # ../etc/init.d/mysql stop
    MySQL manager or server PID file could not be found! failed


    Do not know what is going on !!!!!!!!!!!!!!
    Help me !!!!!!!!!!

  6. #6
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,344
    Look at the error log which should be somewhere in /var/log.

  7. #7
    Just Joined!
    Join Date
    Dec 2007
    Location
    chennai-TN,India
    Posts
    42
    Can u please tell me in details which log file to check in that folder /var/log.
    I could not find any log file with the date?

  8. #8
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,344
    On my system its /var/log/mysqld.log. Out of curiosity, did you install using official SUSE rpms?

  9. #9
    Just Joined!
    Join Date
    Dec 2007
    Location
    chennai-TN,India
    Posts
    42
    But i dont have any mysqld.log file here in my system.

  10. #10
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,344
    You didn't reply all questions. Did you use the official openSUSE rpms for mysql? On my openSUSE 10.3 system, I used the official mysql packages from SUSE and I do have that log file.

Page 1 of 2 1 2 LastLast

Posting Permissions

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