Re: Newbie: Test for MySQL connection

2002-04-18 Thread Hisseine Dj.
Try shell> cd YourMysqlInstallationDirectory shell> bin/safe_mysqld & shell> mysql -h host -u user -ppassword Hisseine - Original Message - From: "Fei Chen" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, April 18, 2002 10:36 AM Subject

Newbie: Test for MySQL connection

2002-04-18 Thread Fei Chen
Dear all, I don't know where to look for this information... Couldn't find it in the manual. How do I test whether a connection has been established so I don't need to open a new one again? e.g. MYSQL tmp; void f1(){ mysql_init(&tmp); mysql_real_connect(&tmp,...) } void f2(){ if(!connected(&