Managing databases and database users in Plesk
Learn how to create, manage and delete databases and database users in Plesk.
This article describes how to use Plesk to manage databases and database users. You can add, modify, and delete databases and users, as well as manage user database privileges.
Creating a database
To create a database, follow these steps:
-
Log in to Plesk.
NoteIf you do not know how to log in to your Plesk account, please see this article.
-
In the left sidebar, click Databases. The Databases page appears.
-
Click Add Database. The Add a Database page appears.
-
In the Database name text box, type the database name that you want to use.
-
In the Related site list box, select a site to associate with the new database, or accept the default value.
-
To create a user for the database, under Users, select the Create a database user check box.
NoteIf you do not create a user now, you can add a user to the database later.
-
In the Database user name text box, type the username that you want to use.
-
In the Password text box, type a password for the database user.
TipAlternatively, you can click Generate and Plesk generates a random, strong password for you.
-
Click Create Database. Plesk creates the database.
Deleting a database
To delete a database, follow these steps:
-
Log in to Plesk.
NoteIf you do not know how to log in to your Plesk account, please see this article.
-
In the left sidebar, click Databases. The Databases page appears.
-
Locate the database you want to remove, and then click the trash can icon.
-
To confirm database removal, click Yes. Plesk removes the database.
Adding a user to a database
To add a user to a database, follow these steps:
-
Log in to Plesk.
NoteIf you do not know how to log in to your Plesk account, please see this article.
-
In the left sidebar, click Databases.
-
Click the User Management tab.
-
Click Add Database User. The Adding Database User page appears.
-
In the Database user name text box, type the username that you want to use.
-
In the Password and Confirm password text boxes, type a password for the database user.
TipAlternatively, you can click Generate and Plesk generates a random, strong password for you.
-
In the Database list box, select a database to assign the new user to, or accept the default.
-
Click OK. Plesk adds the user to the specified database.
Managing database user privileges
To manage database user privileges, follow these steps:
-
Log in to Plesk.
NoteIf you do not know how to log in to your Plesk account, please see this article.
-
In the left sidebar, click Databases.
-
Click the User Management tab.
-
Click the name of the database user you want to manage.
-
To change the database user's password, in the Password and Confirm password text boxes, type a password for the database user.
TipAlternatively, you can click Generate and Plesk generates a random, strong password for you.
-
To change the database to which the user is assigned, select a database in the Database list box.
-
To change the database user's privileges for the selected database, in the Role list box select an access level.
-
Click OK. Plesk updates the user's privileges for the database.
Updated about 7 hours ago