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 { [EMAIL PROTECTED] || [EMAIL PROTECTED] }

---

> YOU!  Off my planet!

 

Reply via email to