---
title: "How to Manage Your Database with phpMyAdmin on Plesk"
description: "Create a MySQL or MariaDB database on Winheberg Plesk web hosting, find its connection details, open phpMyAdmin, export and import a .sql file without losing data."
category: cloud
subcategory: hebergement-web
icon: tabler:file-text
date: 2026-11-02
author: Winheberg
slug: "manage-database-phpmyadmin-plesk"
order: 146
image: /statics/images/docs/en/hebergement-web/manage-database-phpmyadmin-plesk.webp
tags: [Database, phpMyAdmin, MySQL, Plesk, Web Hosting]
keywords: [phpmyadmin, mysql database, import sql file, export database, mariadb plesk, sql dump]
link_fr: "/docs/hebergement-web/gerer-base-donnees-phpmyadmin-plesk"
---

## Context

Most dynamic websites, such as WordPress, Joomla, Azuriom or a Laravel application, store their content in a MySQL or MariaDB database. Knowing how to create, back up and restore it helps with every installation, migration or delicate update.

On your [Winheberg web hosting](https://winheberg.com/en/cloud/web-hosting), Plesk manages your databases and gives access to phpMyAdmin, the reference tool to browse and edit their content from the browser.

This guide covers creating a database, its connection details, accessing phpMyAdmin, exporting and importing a `.sql` file, and the most common errors.

> [!NOTE]
> The Winheberg Plesk panel is displayed in French. Menu, field and button names are quoted below exactly as they appear on screen, followed by their English meaning.

## Prerequisites

- A Winheberg web hosting plan with access to the Plesk panel
- For an import, the `.sql` file or the archive of your database

## 1. Create a database

Open **Bases de données** (*Databases*) in the side menu, then click **Ajouter une base de données** (*Add Database*).

<img src="/statics/images/docs/en/hebergement-web/manage-database-phpmyadmin-plesk-1793569971905-24a42ff4f68cab6be7c4f7e4.webp" alt="Plesk Add Database form" width="624" />

::MdTable{caption="Form fields" variant="info" striped}
| Field | What to enter |
|---|---|
| Nom de la base de données (*Database name*) | The name of your choice, Plesk adds a prefix specific to your account in front |
| Site associé (*Related site*) | The domain that will use the database |
| Nom de l'utilisateur de la base de données (*Database user name*) | A user name dedicated to this database |
| Mot de passe (*Password*) | Click **Générer** (*Generate*) to get a strong password, and write it down |
::

Confirm with **Créer la base de données** (*Create database*).

## 2. Find the connection details

In the database list, each database shows its actions and, at the bottom, the **Hôte** (*Host*), **Utilisateur** (*User*), number of **Tableaux** (*Tables*) and **Taille** (*Size*).

<img src="/statics/images/docs/en/hebergement-web/manage-database-phpmyadmin-plesk-1793616257011-63f449eb0d7e349624d6ed37.webp" alt="Database card in Plesk with phpMyAdmin, export and import" width="800" />

Click **Infos de connexion** (*Connection info*) to show the values to enter in your website configuration.

::MdTable{caption="Connection details" variant="info" striped}
| Value | Example |
|---|---|
| Hôte (*Host*) | `localhost:3306`, meaning host `localhost` and port `3306` |
| Nom de la base de données (*Database name*) | The full name, prefix included |
| Nom de l'utilisateur (*User name*) | The user created with the database |
| Mot de passe (*Password*) | The one chosen at creation |
::

## 3. Open phpMyAdmin

On the database card, click **phpMyAdmin**. The tool opens in a new tab, already connected to the database, without typing a password.

The left column lists the database tables. Click a table to browse its rows, the top tabs let you run an SQL query, export or import.

> [!CAUTION]
> phpMyAdmin changes your website data directly, with no way back. Always export the database before deleting or editing rows.

## 4. Export the database to a file

On the database card, click **Exporter le dump** (*Export Dump*).

<img src="/statics/images/docs/en/hebergement-web/manage-database-phpmyadmin-plesk-1793616257356-66598b44889b859e1549df97.webp" alt="Export Dump window of a database in Plesk" width="630" />

Choose the folder of your webspace that will receive the file in **Enregistrer le dump dans le répertoire suivant** (*Save the dump to the following directory*), keep or change the **Nom de fichier du dump** (*Dump file name*), then tick **Télécharger automatiquement le dump après sa création** (*Automatically download the dump after creation*) to get a copy on your computer. Confirm with **Exporter le dump**.

Plesk produces a `.sql.zip` archive, which you also find in the chosen folder from the **Fichiers** (*Files*) manager.

> [!TIP]
> For a small database, the **Exporter** (*Export*) tab of phpMyAdmin gives the same result in one click, with the **Rapide** (*Quick*) method and the **SQL** format.

## 5. Import a file into the database

On the database card, click **Importer le dump** (*Import Dump*).

<img src="/statics/images/docs/en/hebergement-web/manage-database-phpmyadmin-plesk-1793616257679-e28a3255d2d8e7ff30a3d56d.webp" alt="Import Dump window of a database in Plesk" width="630" />

Choose **Téléverser un dump depuis votre ordinateur local** (*Upload a dump from your local computer*) and select your file, or **Importer un dump stocké sur votre serveur d'hébergement** (*Import a dump stored on your hosting server*) if you have already uploaded it to your files. Confirm with **Importer le dump**.

> [!WARNING]
> The **Recréer la base de données** (*Recreate the database*) box is ticked by default. It empties the database completely before the import, all existing tables are deleted. Untick it only if you want to add tables to a database that must keep its content.

For a large file, first upload it to your webspace with our guide [How to Connect to Your Plesk Hosting over FTP with FileZilla](https://winheberg.com/en/docs/hebergement-web/connect-ftp-filezilla-plesk), then choose **Importer un dump stocké sur votre serveur d'hébergement**. The import then no longer depends on the upload size allowed by the browser.

## Troubleshooting

### ❌ The import fails with "#1044 - Access denied for user"

The file tries to create or select a database with a different name from yours.

- Open the `.sql` file in a text editor
- Delete the `CREATE DATABASE` and `USE` lines at the beginning
- Run the import into your database again

### ❌ The import fails with "#1273 - Unknown collation"

The file comes from a more recent MySQL server, whose collation does not exist on MariaDB.

- In the `.sql` file, replace `utf8mb4_0900_ai_ci` with `utf8mb4_unicode_ci`
- Run the import again with **Recréer la base de données** ticked

### ❌ The website shows "Error establishing a database connection"

The website cannot connect to its database, often after a migration.

- Compare the values of the website configuration with **Infos de connexion**
- Check that the database name and the user name include the prefix added by Plesk
- Use `localhost` as host

## Best practices

- Export the database before every significant update of your website
- Create a different user for each database, a compromised website then only reaches its own data
- Keep your database passwords in a password manager
- Delete the `.sql` and `.sql.zip` files from your webspace once done, especially if they sit in `httpdocs`
- To schedule complete backups of your website, database included, follow our guide [How to Back Up and Restore Your Website on Plesk](https://winheberg.com/en/docs/hebergement-web/backup-restore-website-plesk)

## Need help?

If an import or export still fails, open a ticket with our support from your [client area](https://billing.winheberg.com), **Technical** department, filling in the **Related Product** field with the web hosting concerned. Mention the database name and the full error message.

Your data is under control, ready to follow your website anywhere 🗄️

