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

The error message is different, yes. But it will also vary from a sgbd to another, or from a version to another. You can't really help there.
  • Comment on Re^5: how to test a connection with mysql db

Replies are listed 'Best First'.
Re^6: how to test a connection with mysql db
by jeanluca (Deacon) on Jul 25, 2005 at 12:29 UTC
    What is exactly the consequence of connecting a perl object to a mysql database, while it is already connected ?

    Luca
      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.