I am writing some unit tests to ensure that everything is working as supposed in my application and thought it would be an good idea to write a short test script to ensure that the mySQL connection is working as intended.
Is there any query I can run that will always output something sweet that I can verify the connection upon, without having to think about eventual stored data in the mySQL database?
This should do it
Edit
If you don’t want something sweet you can always use the built-in functions:
for more ideas check out the manual:
http://dev.mysql.com/doc/refman/5.1/en/information-functions.html