Hello,

  First, I tried searching the mysql list archives, but the archive search
function on mysql.com does not seem to be working.

Second, I'm using the PHP fsockopen() function on port 3306 to test if a
database is up and responsive. If the socket opens, I'm assuming the database
is up, and I then call fclose() to close the socket.
 
  The problem is that if I call this several times in a row quickly, the
database senses a "connection error" problem and refuses to connect until I
issue a "flush hosts" command. 

  Is there are "more proper" was to use fsockopen()/fclose() to simply ping the
database?  I do NOT want to use mysql_connect in this case - I just want to
ping 3306 without causing MySQL to count them as broken connections and
disconnect the client host. 

Thanks,

-Hank


                
__________________________________ 
Do you Yahoo!? 
Check out the new Yahoo! Front Page. 
www.yahoo.com 
 


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to