in reply to Re^5: how to test a connection with mysql db
in thread how to test a connection with mysql db

What is exactly the consequence of connecting a perl object to a mysql database, while it is already connected ?

Luca
  • Comment on Re^6: how to test a connection with mysql db

Replies are listed 'Best First'.
Re^7: how to test a connection with mysql db
by wazoox (Prior) on Jul 25, 2005 at 13:09 UTC
    It opens an new connection, it should be completely harmless. If you really want to get sure that the connection's still alive, use $dbh->ping, before trying to connect.