Test MySQL connection