When connecting to MySQL, I get an "Unknown Database" error.

ERROR 1049 (42000): Unknown database 'default'

An Unknown Database error occurs when:

  • You connect to the wrong cluster.
  • You connect to a database that doesn’t exist in your specified cluster.

If you are getting this error:

  • Verify that you are using the correct hostname to connect.
  • Verify that you’ve created the database in your cluster of choice.
Check your network connection or revise your query.
Ensure your queries are not timing out and check your network connection.
Verify your login credentials and user permissions.