MySQL Forums
Forum List  »  PHP

Re: mysql_connect() socket issue
Posted by: James King
Date: January 08, 2007 01:14PM

resolved the above issue.

PHP still getting the same error.

php -r "mysql_connect('localhost', 'username', 'password');"

returns:

Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in Command line code on line 1



Edited 1 time(s). Last edit at 01/08/2007 01:23PM by James King.

Options: ReplyQuote


Subject
Written By
Posted
January 08, 2007 12:04PM
January 08, 2007 12:36PM
Re: mysql_connect() socket issue
January 08, 2007 01:14PM
January 10, 2007 01:17PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.