Skip to main content

Create a database in Plesk and manage it with phpMyAdmin

Published on July 10, 2026 9 min read

Want to create a database in Plesk and manage it with phpMyAdmin? Set up a user and password, import, export and connect it to WordPress.

Flat vector illustration of a person creating a database in a control panel, with a database cylinder, a key for the login details and a table grid.

A database is the foundation beneath almost every dynamic website, from a WordPress site to a web shop or a custom application. This guide shows you how to create a database in Plesk and manage it with phpMyAdmin: from setting up a user and password to importing, exporting and connecting it to WordPress through wp-config.php. Every LJPc hosting package includes an unlimited number of databases, so you can create as many as you need.

What is a database and what do you use it for?

A database is a structured store for your website's data: posts, pages, users, orders and settings. Content management systems such as WordPress, Joomla and Magento keep almost everything in a database. Your site's files (themes, plugins and images) sit separately on the web server, while the content lives in the database.

On our hosting you create databases in Plesk, the control panel of your hosting. The database server is MariaDB, which is compatible with MySQL. For WordPress and almost all other software this makes no difference: you use the standard MySQL settings.

Before you begin

  • You have a hosting package with LJPc. You open Plesk from the customer portal: go to Services > Sites, open your site and click Log in to Plesk in the Site overview block. You are signed in automatically, so you do not need a separate password. Read more in open Plesk from the customer portal.
  • If you install WordPress with the installer in Plesk, Plesk creates the database and the database user for you. Read how in install WordPress in Plesk. You need this guide for a manual install, a migration or other software.

Create a database in Plesk (step by step)

Creating a database takes less than a minute. Follow these steps:

  1. Open Plesk from the customer portal.
  2. Click Databases in the menu on the left.
  3. Click Add Database. The form opens on the right.
  4. The Database name field already contains a prefix: your Plesk user name followed by an underscore, for example user1a2b3c4d5e6f_. Type your own name after it, for example wordpress. You will need the full name, including the prefix, later on.
  5. Under Related site, choose the website this database belongs to. That way the overview shows at a glance which database is used by which site.
  6. Leave Create a database user ticked and enter a user name under Database user name. It does not get a prefix: the name you type is the user name. Without a database user the database is not accessible.
  7. Next to Password, click Generate for a strong password and copy it with the button next to it.
  8. Leave User has access to all databases within the selected subscription unticked, unless this user needs access to all your databases.
  9. Click Create Database.
Add Database form in Plesk with the prefix and the name wordpress under Database name, Related site voorbeeld.nl, Create a database user ticked, the user name wpvoorbeeld and a generated password

Write down the database name, the user name and the password in a safe place. You need these three details to connect your website to the database.

Your new database then appears in the list under Databases. Click the database to see all the buttons used in this guide: phpMyAdmin, Connection info, Export dump and Import dump.

Database list in Plesk with the Add Database button and, for the database, the buttons phpMyAdmin, Connection info, Export dump, Import dump, Copy database and Check and repair

Manage your database with phpMyAdmin

phpMyAdmin is the web tool you use to work directly in your database: viewing tables, editing data and running SQL commands. You open phpMyAdmin from Plesk.

  1. In Plesk, click Databases in the menu on the left.
  2. Click phpMyAdmin next to your database. phpMyAdmin opens in a new tab, with your database already selected.

Plesk logs you in automatically, so you do not have to type a separate password. On the left in phpMyAdmin you see your database tables. Be careful with changes, because the wrong command can delete data. Make an export before you change anything.

Change the password of a database user

Lost the password, or want to replace it? You cannot view an existing password, but you can set a new one straight away.

  1. In Plesk, click Databases and open the User Management tab.
  2. Click the name of the user.
  3. Enter a new password under Password and Confirm password, or click Generate, and save the change.

Then also enter the new password in wp-config.php or in the settings of your software, otherwise your website can no longer reach the database.

Import a database: uploading an SQL file

Moving an existing database, for example during a migration? Then you import an SQL file, also called a dump. The full migration guide is in migrate your website to LJPc and migrate WordPress with a plugin. For the import itself there are two routes.

Import through Plesk (recommended for larger files)

  1. In Plesk, click Databases and then Import dump next to your database.
  2. Choose where the file comes from. With Upload a dump from your local computer you pick a .sql file or a ZIP file containing the dump on your computer through Choose file. With Import a dump stored on your hosting server you click a file that is already on the server.
  3. Watch out for Recreate the database: this box is ticked by default. Plesk then empties the database completely before it imports the dump. If the database already contains something you want to keep, make an export first.
  4. Click Import Dump. When the import is done, you see a message that the dump was imported.
Import Database Dump window in Plesk with the option Import a dump stored on your hosting server, the file mijnsite.sql in the main folder next to httpdocs and Recreate the database ticked

Import through phpMyAdmin

  1. Open phpMyAdmin from Plesk. Your database is already selected.
  2. Click the Import tab at the top.
  3. Choose your file under Browse your computer, leave Format set to SQL and click Import at the bottom.

Large databases

phpMyAdmin accepts files up to 2 GB, also compressed as .zip or .gz. With a large database the upload through the browser takes a long time and the import can run into the time limit. The most reliable route is then:

  1. Upload the SQL file with an FTP program to the main folder of your hosting, next to the httpdocs folder. Read how to connect in upload files with FTP, FTPS and SFTP.
  2. In Plesk, choose Import a dump stored on your hosting server under Import dump and click the file.
  3. Delete the file after the import in Plesk under Files.

Avoid putting a dump in the httpdocs folder: anything in that folder can be downloaded through your website. If your FTP account can only reach httpdocs, delete the file right after the import.

Export a database: making a backup

An export is a snapshot of your database that you can keep or restore. Always make an export before you carry out major changes. A database export is also part of making a full backup of your website.

Export through phpMyAdmin

  1. Open phpMyAdmin from Plesk.
  2. Click the Export tab.
  3. Leave Export method set to Quick and Format to SQL, then click Export. Your browser downloads a .sql file.

Export through Plesk

  1. In Plesk, click Databases and then Export dump next to your database.
  2. Under Save the dump to the following directory, choose the folder on the server for the dump. By default this is Root directory, the main folder of your hosting.
  3. Tick Automatically download the dump after its creation if you also want the file on your computer straight away.
  4. Click Export Dump. Plesk creates an SQL file inside a ZIP; the name ends in .sql.zip.

The dump also stays on the server. If you no longer need it there, delete it in Plesk under Files.

Connect a database to WordPress (wp-config.php)

WordPress keeps all content in a database. When you install with the installer in Plesk it handles the connection, but for a migration or a manual install you set the details yourself in the wp-config.php file.

Open wp-config.php in Plesk under Files (in the httpdocs folder) or with an FTP program and check these four lines:

define( 'DB_NAME', 'database_name' );
define( 'DB_USER', 'database_user' );
define( 'DB_PASSWORD', 'your_password' );
define( 'DB_HOST', 'localhost' );

For DB_NAME enter the full database name (including the prefix), for DB_USER the database user and for DB_PASSWORD the password you set in Plesk. On our hosting DB_HOST is localhost, because the database runs on the same server as your site. Save the file and reload your website.

You find the database name and user name in Plesk next to your database under Connection info, each with a copy button. The Host shown there is localhost:3306; in wp-config.php localhost is enough. The password is not shown: it is the password you set when you created the database.

Make a copy of wp-config.php before you edit it, so you can always go back. Also make a database backup before you update WordPress safely, so you can restore quickly if something goes wrong.

Multiple databases for multiple websites

Running several websites? Give each site its own database. That keeps the data separate, makes your backups clearer and stops a problem on one site from affecting another. With an unlimited number of databases per hosting package, you always can.

Use the Related site field when you create a database, so your overview shows which database belongs to which website. If you do want several WordPress installations in one database, give each install a unique table prefix to avoid clashes. Clean up databases you no longer use, which keeps your hosting tidy. A WordPress database also grows through revisions and spam comments; read how to clean those up in check your storage usage.

Fixing common errors

Stuck? This table helps you solve the most common problems quickly.

Common database errors and fixes
Message or problemLikely causeFix
Error establishing a database connection (WordPress)Wrong details in wp-config.phpCheck DB_NAME, DB_USER, DB_PASSWORD and DB_HOST exactly. DB_HOST is localhost. Compare with Connection info in Plesk.
Access denied for userWrong password, or the user does not belong to this databaseSet a new password in Plesk under Databases > User Management and check the Database field of the user.
Unknown database or database does not existThe database name was copied without its prefixCopy the full name including the prefix from Plesk into wp-config.php.
Import file too large or the import stops halfwayThe upload through the browser takes too long or runs into the time limitUpload the file with FTP to the main folder of your hosting and pick it in Import dump under Import a dump stored on your hosting server.
Earlier tables are gone after the importRecreate the database was tickedRestore an earlier export with Import dump or contact support. Next time, make an export first if the database already contains data.

Still stuck? Call us on +31 85 130 6429, email support@ljpc.nl or create a support ticket. We are happy to help.

Frequently asked questions

How many databases can I create with LJPc hosting?

As many as you need: every LJPc hosting package includes an unlimited number of databases. Ideally give each website its own database, so the data stays separate.

Does LJPc hosting use MySQL or MariaDB?

Our servers use MariaDB, which is compatible with MySQL. For WordPress and other software you use the standard MySQL settings.

What do I enter for DB_HOST in wp-config.php?

On our hosting DB_HOST is localhost, because the database runs on the same server as your website. Connection info in Plesk shows localhost:3306; in wp-config.php localhost is enough.

How do I import a database that is too large for phpMyAdmin?

Upload the SQL file with an FTP program to the main folder of your hosting, next to the httpdocs folder. Then pick it in Plesk under Import dump with the option Import a dump stored on your hosting server. That way you avoid the upload through the browser. Delete the file after the import.

Do I have to create a database for WordPress myself?

If you install WordPress with the installer in Plesk, Plesk creates the database and the database user for you. If you install WordPress manually or migrate a site, you create the database yourself and enter the details in wp-config.php.

What does Recreate the database do when importing?

With this box, which is ticked by default, Plesk empties the database completely and then imports the dump. If the database already contains something you want to keep, make an export first.

Prefer to talk to someone?

We are also happy to answer your questions personally. Schedule a free consultation or call us directly. We are glad to think along with you.

Stay up to date with recent developments! Subscribe and receive our newsletter Signing up...