#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2000
    Posts
    1
    Rep Power
    0
    I try to connect to MySQL through php, I get this
    error message --
    MySQL Connection Failed: Can't connect to local MySQL server through socket
    '/tmp/mysql.sock' (111)

    Could somebody please help soon!!!
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    73
    Rep Power
    14
    Try restarting mysql this way:

    /etc/inet.d/mysql start

    or else

    the path to mysqld/mysqld &

    eg.
    /usr/local/bin/mysqld &

Similar Threads

  1. Custom error message for MySQL connection
    By dbr1066 in forum PHP Development
    Replies: 6
    Last Post: February 12th, 2004, 11:25 AM
  2. java / mysql connection
    By johann8401 in forum Java Help
    Replies: 2
    Last Post: February 9th, 2004, 12:27 PM
  3. MYSQL connection to JSP (not again!! :) )
    By JSP_Neubee in forum Java Help
    Replies: 1
    Last Post: January 20th, 2004, 08:34 AM
  4. MySQL Control Center connection problems
    By FragMaster B in forum MySQL Help
    Replies: 3
    Last Post: January 19th, 2004, 09:44 AM
  5. Replies: 0
    Last Post: January 16th, 2004, 12:33 PM

IMN logo majestic logo threadwatch logo seochat tools logo