> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sevalla.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Databases - Troubleshooting

> Troubleshoot common database issues and errors.

When connecting to a database, if there's an issue with the connection details or the database itself, you may see one of these errors:

> Unable to connect to server

> Error 2013 (HY000): Lost connection to MySQL server

> Error 2002 (HY000): Can't connect to MySQL server

> MySQL server has gone away

If you see one of these or a similar error, check the following, and if the issue persists, [contact our Support team](/support/contact-support).

## Check connection details

To check your database [connection details](/databases/connections), head over to the **Info** page.

### Internal connection

If the connection is between an application and a database, and both are hosted on Sevalla, make sure they use the same [data center location](/service-information/data-center-locations) and are connected through an [internal connection](/databases/connections). Additionally, we recommend selecting the **Add environment variables to the application** checkbox when adding the connection. This automatically populates the [environment variables](/applications/environment-variables) in the application from the database connection details.

### External connection

If you are trying to connect your database to an external application or access your database with the [command line or a database client/tool](/databases/manage-data/tableplus), double-check your database's [external connection details](/databases/connections).

<Warning>
  Your database's external connection details are different from the internal connection details.
</Warning>

## Suspend and Activate the database

If you've double-checked the connection details and an error persists, try [suspending and resuming the database](/databases/settings) on the database **Settings** page.

Click **Suspend database** and confirm the suspension by clicking **Continue**.

To restart your database, click **Activate database** and confirm the restart by clicking **Continue**.
