Socket error on MySQL + PHP
| From: | Peter Kuri | Date: | Sat, 01 Jul 2000 00:42:00 +0000 |
| Subject: | Socket error on MySQL + PHP | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-799@lists.php.net to get a copy of this message | ||
I'm trying to connect to a database with a PHP file and the next error
appears:
Warning: MySQL Connection Failed: Can't connect to local MySQL server
through socket '/var/lib/mysql/mysql.sock' (111) in
/home/vgwebmas/www.tea.com.mx/htdocs/submitform.php3 on line 5
Warning: MySQL Connection Failed: Can't connect to local MySQL server
through socket '/var/lib/mysql/mysql.sock' (111) in
/home/vgwebmas/www.tea.com.mx/htdocs/submitform.php3 on line 7
Warning: MySQL: A link to the server could not be established in
/home/vgwebmas/www.tea.com.mx/htdocs/submitform.php3 on line 7
Warning: MySQL Connection Failed: Can't connect to local MySQL server
through socket '/var/lib/mysql/mysql.sock' (111) in
/home/vgwebmas/www.tea.com.mx/htdocs/submitform.php3 on line 11
Warning: -1 is not a MySQL link index in
/home/vgwebmas/www.tea.com.mx/htdocs/submitform.php3 on line 11
I checked the mysql.sock file and it has nothing in it, what should I do???
Peter Kuri