This guide explains how to create, entfernen, and manage databases and database users in the Plesk control panel. It is written for day to day administration tasks where you need clear control over database access and permissions.
Plesk can be installed and used on VPS and dedicated servers, including environments running Plesk hosting and custom server setups. Database management is commonly used alongside application hosting such as cPanel-Hosting alternatives or standalone deployments on Cloud-Server.
Creating a database
Before creating a database, make sure the related domain or subscription already exists in Plesk.
Follow these steps to create a new database:
- Log in to the Plesk control panel.
- In the left sidebar, klicken Datenbanken.
- Klicken Add Database.
- Enter a name for the database.
- Select the related website, or leave the default selection.
- To create a database user at the same time, enable the option to create a database user.
- Enter a username and password for the database user, or generate a strong password automatically.
- Klicken OK to complete the process.
[Screenshot: Databases page with Add Database option]
Deleting a database
Removing a database permanently deletes all data stored inside it. Always make sure you have a backup before proceeding.
To delete a database:
- Log in to Plesk.
- Offen Datenbanken from the left sidebar.
- Locate the database you want to remove.
- Klicken Remove Database.
- Confirm the action when prompted.
[Screenshot: Database removal confirmation]
Adding a database user
Database users define who can connect to a database and what level of access they have.
To add a new database user:
- Log in to Plesk.
- Klicken Datenbanken in the left sidebar.
- Wählen Benutzerverwaltung.
- Klicken Add Database User.
- Enter a username and password.
- Select the database the user should access.
- Klicken OK.
[Screenshot: Add Database User screen]
Managing database user privileges
User privileges control what actions a database user can perform, such as reading data, modifying tables, or managing structures.
To edit database user settings and permissions:
- Log in to Plesk.
- Gehen zu Datenbanken and open Benutzerverwaltung.
- Click the database user you want to manage.
- Update the password if required.
- Select the assigned database.
- Choose the appropriate role or access level.
- Klicken OK to apply changes.
[Screenshot: Database user privilege settings]
Proper privilege management helps reduce security risks and prevents applications from making unintended changes to database data.