> For the complete documentation index, see [llms.txt](https://docs.hostinger.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hostinger.com/websites/databases.md).

# Databases

MySQL databases for your websites, managed from hPanel.

## Create a database

1. Open your website dashboard.
2. Go to **Databases** → **MySQL Databases**.
3. Click **Create database**.
4. Enter a name and click **Create**.

A database user is created automatically.

## Connect from your app

| Parameter    | Value                         |
| ------------ | ----------------------------- |
| **Host**     | `localhost`                   |
| **Port**     | `3306`                        |
| **Database** | Your database name            |
| **Username** | Your database user            |
| **Password** | Your database user's password |

Drop these in `wp-config.php` (WordPress) or `.env` (Laravel, etc.).

## phpMyAdmin

1. Go to **Databases** in hPanel.
2. Click **phpMyAdmin** next to the database.

Use it to browse tables, run SQL, and import/export data.

## Change a user's password

1. **Databases** → **MySQL Users**.
2. Click **Change Password** on the user.
3. Enter and confirm.

> **Warning:** Update the password in your app's config right after — or the app will stop connecting.

## Import a database

phpMyAdmin:

1. Open phpMyAdmin.
2. Select the database in the left sidebar.
3. Click **Import**.
4. Select your `.sql` file and click **Go**.

Large files via SSH:

```bash
mysql -u username -p database_name < dump.sql
```

## Export a database

1. Open phpMyAdmin.
2. Select the database.
3. Click **Export**.
4. Choose **Quick** and format **SQL**, then **Go**.

## Delete a database

> **Warning:** This is permanent. Export a backup first.

1. **Databases** → **MySQL Databases**.
2. Click **Delete** on the database.
3. Confirm.

## Remote database access

Databases are `localhost`-only by default. To allow remote connections:

1. **Databases** → **Remote MySQL**.
2. Enter the allowed IP and click **Add**.

***

*Last updated: July 21, 2026*
