Database and SQL Learning Mode

Which one of the following methods can be used to diagnose and display information about a MySQL connection error?