jak sprawdzić połączenie z baza mysql

0

no właśnie pytanie jak w temacie!
jak sprawdzić stan połączenia z bazą mysql z poziomu php?!

0

From MySQL manual:

To connect to the server, call mysql_init() to initialise a connection handler, then call
mysql_real_connect() with that handler (along with other information such as the hostname,
user name, and password). Upon connection, mysql_real_connect() sets the
reconnect
ag (part of the MYSQL structure) to a value of 1. This
ag indicates, in the
event that a query cannot be performed because of a lost connection, to try reconnecting to
the server before giving up. When you are done with the connection, call mysql_close()
to terminate it.

1 użytkowników online, w tym zalogowanych: 0, gości: 1