Re: Testing MySQL failed ???
| From: | Ted Rolle | Date: | Sat, 31 Mar 2001 22:04:29 +0000 |
| Subject: | Re: Testing MySQL failed ??? | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-8074@lists.php.net to get a copy of this message | ||
Mysql isn't up?
On Sun, 1 Apr 2001, Szeto wrote:
> Hello
>
> The code below i use in testing the connection (written in php4)
> <?
> if(!mysql_connect("localhost","khaimun","akyweb")) {
> print "could not connect to mysql!";
> }
> mysql_select_db("focalmail");
> ?>
>
> -------------------
> Warning: MySQL Connection Failed: Can't connect to local MySQL server
> through socket '/var/lib/mysql/mysql.sock' (111) in
> /var/www/html/test/test-db.php4 on line 2
> could not connect to mysql!
> Warning: MySQL Connection Failed: Can't connect to local MySQL server
> through socket '/var/lib/mysql/mysql.sock' (111) in
> /var/www/html/test/test-db.php4 on line 5
>
> Warning: MySQL: A link to the server could not be established in
> /var/www/html/test/test-db.php4 on line 5
>
> Note :
> The above error i get in executing the code
>
>
>
> --
> --------------------------------------------------------------
> Any suggestions would be appreciated.
> Thank You
>
> Khai Mun, Ng
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> For additional commands, e-mail: php-db-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>