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
Error connecting to DB.
Moderator: General Moderators
mysql running?
is mysql running?
-
xLechugasx
- Forum Newbie
- Posts: 14
- Joined: Wed Aug 28, 2002 9:56 am
This is what is shown with phpinfo().
MySQL is running.
mysql
MySQL Support enabled
Active Persistent Links 0
Active Links 0
Client API version 3.23.49a
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /tmp/mysql.sock
MYSQL_INCLUDE -I/usr/local/mysql/include
MYSQL_LIBS -L/usr/local/mysql/lib -lmysqlclient
what can I do??
MySQL is running.
mysql
MySQL Support enabled
Active Persistent Links 0
Active Links 0
Client API version 3.23.49a
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /tmp/mysql.sock
MYSQL_INCLUDE -I/usr/local/mysql/include
MYSQL_LIBS -L/usr/local/mysql/lib -lmysqlclient
what can I do??