Check connection

Stupid question, but how do you check if connection is alive? Didnt find anything in docs, even google is empty (probably asking the wrong way).
Im using mysql if that changes anything...
Was this page helpful?