[PHP-DB] Testing MySQL failed ???

2001-03-31 Thread Szeto
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

Re: [PHP-DB] Testing MySQL failed ???

2001-03-31 Thread Ted Rolle
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"); ? ---

Re: [PHP-DB] Testing MySQL failed ???

2001-03-31 Thread Szeto
the MySQL is on coz, it show in top Ted Rolle [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Mysql isn't up? On Sun, 1 Apr 2001, Szeto wrote: Hello The code below i use in testing the connection (written in php4) ?

Re: [PHP-DB] Testing MySQL failed ???

2001-03-31 Thread Szeto
I am new to Linux environment what is mean by socket and what is the file.extensive and location Felix Kronlage [EMAIL PROTECTED] wrote in message 20010401003741.A5849@mad">news:20010401003741.A5849@mad... On Sun, Apr 01, 2001 at 06:05:28PM +0800, Szeto wrote: the MySQL is on

Re: [PHP-DB] Testing MySQL failed ???

2001-03-31 Thread Felix Kronlage
On Sun, Apr 01, 2001 at 06:50:24PM +0800, Szeto wrote: I am new to Linux environment so what. You could still read the error-message: | Warning: MySQL Connection Failed: Can't connect to local MySQL server | through socket '/var/lib/mysql/mysql.sock' (111) in this suggests, that you

Re: [PHP-DB] Testing MySQL failed ???

2001-03-31 Thread Ted Rolle
Excellent diagnosis, sir! However, it is woefully and pitifully short on curative information. On Sun, 1 Apr 2001, Felix Kronlage wrote: On Sun, Apr 01, 2001 at 06:50:24PM +0800, Szeto wrote: I am new to Linux environment so what. You could still read the error-message: |

Re: [PHP-DB] Testing MySQL failed ???

2001-03-31 Thread Szeto
I have use other example and set the '/var/lib/mysql/mysql.sock' to chmod 777 ?php $link = mysql_connect ("localhost", "", "") or die ("Could not connect"); print ("Connected successfully"); mysql_close ($link); ? this example work Thank you everybody.