# How do I fix the "Unknown Database" error when connecting to MySQL? ``` 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. ## Related Topics [How do I fix the "Out of sort memory" error?](https://docs.digitalocean.com/support/how-do-i-fix-the-out-of-sort-memory-error/index.html.md): Adjust the sort\_buffer\_size value while assessing its impact on memory consumption and query performance. [How do I fix the "Host is Blocked" error when connecting to MySQL?](https://docs.digitalocean.com/support/how-do-i-fix-the-host-is-blocked-error-when-connecting-to-mysql/index.html.md): Check for query timeouts and ensure your network connection is stable. [How do I fix the "Unknown Host" error when connecting to MySQL?](https://docs.digitalocean.com/support/how-do-i-fix-the-unknown-host-error-when-connecting-to-mysql/index.html.md): Verify the hostname is correct and check for DNS resolution issues.