PHP 4.0 Bug #7856 Updated: PHP can't conect to mysql server
| From: | sniper@php.net | Date: | Sun, 19 Nov 2000 03:43:52 +0000 |
| Subject: | PHP 4.0 Bug #7856 Updated: PHP can't conect to mysql server | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-38490@lists.php.net to get a copy of this message | ||
ID: 7856
Updated by: sniper
Reported By: javierdeco@hotmail.com
Status: Feedback
Bug Type: MySQL related
Assigned To:
Comments:
1. Does simple mysql_connect("localhost", "user", "password") work?
2. Are you sure you have mysqld up and running?
3. Can you connect to mysql using the mysql shell utility from command line?
--Jani
Previous Comments:
---------------------------------------------------------------------------
[2000-11-16 21:17:56] javierdeco@hotmail.com
I got this message trying to connect to mysql database from my php page.
-----------------------------------
Warning: MySQL Connection Failed: Can't connect to local MySQL server through socket
'/var/lib/mysql/mysql.sock:' (111) in
/var/www/html/table.php on line 17
--------------------------------
The line 17 is:
mysql_connect('localhost:3306:/var/lib/mysql/mysql.sock:','root','decomysql');
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=7856