MySQL Connection...
| From: | Leonardo Rezende | Date: | Tue, 03 Apr 2001 14:50:46 +0000 |
| Subject: | MySQL Connection... | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-8185@lists.php.net to get a copy of this message | ||
Hi all,
I'm having some problems with mysql, php4 and apache ...
PHP works ok... but a can't connect mysql database...
This is the error message: Warning: MySQL Connection Failed: Can't connect to local MySQL
server through socket '/var/lib/mysql/mysql.sock' (111) in /home/httpd/html/t.php on line
4
The comanda line is: $conn = mysql_connect('localhost','tcc','');
At the linux shell "mysql -u tcc -p" works normal...
What's wrong?
Thanks, Leonardo (ICQ 47489507)