On Thursday 26 June 2003 15:53, Jean-Christian IMbeault wrote: > I've installed PHP from source and MySQL 4.0.9 from rpm on my RH 9 machine. > > When I try and connect from php using mysql_connect() I get the > following error: > > Warning: mysql_connect(): Can't connect to local MySQL server through > socket '/tmp/mysql.sock' (2) > > The server is up and running and I can connect fine using the command > line client. > > Do I need some special configuration?
Find out where your mysql.sock is and edit php.ini to match. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* It's not whether you win or lose, it's how you place the blame. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php