Add check_mysql method

This small change adds a new check_mysql method to validate MySQL
credentials.