Find the answer to your Linux question:
Results 1 to 6 of 6
Cannot connect to local MYSQL server through socket '/tmp/mysql.sock' i have tried this in shell shell >> mysql -h localhost -u root -p password = **************** Error 2002: "Cannot connect ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2004
    Posts
    9

    Mysql cannot connect as root


    Cannot connect to local MYSQL server through socket '/tmp/mysql.sock'

    i have tried this in shell

    shell >> mysql -h localhost -u root -p
    password = ****************
    Error 2002: "Cannot connect to local MYSQL server through socket '/tmp/mysql.sock'"

  2. #2
    Linux Guru
    Join Date
    Apr 2003
    Location
    London, UK
    Posts
    3,284
    is mysqld running?

    check with "ps aux | grep mysqld"

    Jason

  3. #3
    Just Joined!
    Join Date
    Jun 2004
    Posts
    9
    yes it is running

  4. #4
    Linux Guru
    Join Date
    Mar 2003
    Location
    Wisconsin
    Posts
    1,907
    I don't know a lot about SQL, so this may be a lame suggestion, but maybe your firewall blocking it?

    Jeremy
    Registered Linux user #346571
    "All The Dude ever wanted was his rug back" - The Dude

  5. #5
    Just Joined!
    Join Date
    Jun 2004
    Posts
    9
    I actually got it working....


    Did a system restart

  6. #6
    Just Joined!
    Join Date
    Jun 2004
    Posts
    9
    I finnally got mysql in the services list. I go to start up mysql and this is the error that I recieve.

    mysqld dead but subsys locked

Posting Permissions

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