Web Hosting

How to Manage Your Database with phpMyAdmin on Plesk

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.

November 2, 2026 Winheberg
Documentation›Web Hosting›How to Manage Your Database with phpMyAdmin on 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, 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.

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).

Plesk Add Database form
Form fields
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).

Database card in Plesk with phpMyAdmin, export and import

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

Connection details
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.

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).

Export Dump window of a database in Plesk

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.

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).

Import Dump window of a database in Plesk

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.

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, 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

Need help?

If an import or export still fails, open a ticket with our support from your client area, 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 🗄️

Need a Web Hosting server?

Discover our offers tailored to your needs and get started now.

View offers