Error connecting to DB.
Posted: Wed Aug 28, 2002 9:56 am
Hi to all!!
My name is Nicolas and I am a new user of PHP and MySQL.
I am having the following error while trying to connect to a mysql database:
Can't connect to local MySQL server through socket '/tmp/mysql.sock'
I wrote the name and password ok, and in the host argument for the mysql_connect function I used localhost.
What can be wrong?
Thanks a lot,
Nicolas
My name is Nicolas and I am a new user of PHP and MySQL.
I am having the following error while trying to connect to a mysql database:
Can't connect to local MySQL server through socket '/tmp/mysql.sock'
I wrote the name and password ok, and in the host argument for the mysql_connect function I used localhost.
What can be wrong?
Thanks a lot,
Nicolas