Re: Testing MySQL failed ???

From: Date: Sun, 01 Apr 2001 10:05:28 +0000
Subject: Re: Testing MySQL failed ???
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-8075@lists.php.net to get a copy of this message
the MySQL is on coz, it show in <top> Ted Rolle <ted@acacia.datacomm.com> wrote in message news:Pine.LNX.4.21.0103311404220.28772-100000@server.acacia.datacomm.com... > 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 > > > > > -- > 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 >

« previous php.db (#8075) next »