Strange MySQL Problem

From: Date: Tue, 14 Jun 2005 17:42:03 +0000
Subject: Strange MySQL Problem
Groups: php.db 
Request: Send a blank email to php-db+get-39671@lists.php.net to get a copy of this message
I'm am having the hardest time getting PHP to connect to MySQL. From a command line I can say 'mysql -u root -p' and connect with no problems. From within my PHP script if I say $_connection = mysql_connect('localhost', 'root', 'password') or die(mysql_error()); I get: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13) Everytime. Running MySQL 3.28.58 on Fedora Core 3 with PHP 4.3.9. Any ideas? -brian Brian D. McGrew { brian@visionpro.com || brian@doubledimension.com } --- > YOU! Off my planet!

« previous php.db (#39671) next »