This document contains information for creating MySQL or Microsoft SQL Server databases and their users from the Plesk panel.
Many applications and websites, such as WordPress, Joomla, online stores, or custom systems, store their information in a database. From Plesk you can create MySQL databases, which are usual for PHP applications, or Microsoft SQL Server (MS SQL), used by ASP.NET applications.
Access: log in to the client portal, open your service, and click Log in to Plesk. Then go to Websites & Domains → Databases.
Create a database
- Click Add Database.
- Under Database name, type a name. Plesk adds an account prefix in front of it; the full name is the one you will use in your application.
- Under Database server, choose the type: MySQL or MS SQL, according to what your application requests.
- Under Related site, choose the domain that will use the database. It is optional, but it helps you identify it if you have several.
- Leave the option Create a database user checked and fill in:
- Database user name: it also carries your account prefix.
- New password and Confirm password: you can use Generate to create a secure one and Show to view and copy it.
- The user has access to all databases within the selected subscription: check it only if you want this user to work for all your databases of the same type.
- Click OK.
Important: write down the full database name, user, and password, because you will need them to configure your application. The password cannot contain the username. Use a long and different password for each database.
Manage users
Each database needs at least one user, because without a user it cannot be accessed. To create more users, change passwords, or delete them, go to Databases → User Management.
- Single-database user: ideal if another person, for example a programmer, has to work only with that database.
- Universal user: has access to all databases, even those you create later. It works only within one server type: if you use MySQL and MS SQL, you need one for each type.
Connect your application
In your application configuration, enter the full database name, username, and password. The database server details appear in the Plesk Databases list. To manage the content of a MySQL database from the browser, search for phpMyAdmin in the knowledge base.
Frequent issues
- The application does not connect to the database: check that you use the full name, with the prefix, for both the database and the user, and that the password is correct.
- It won't let me save the password: it cannot contain the username or extended special characters. Use Generate.
- I don't know whether to choose MySQL or MS SQL: PHP applications, such as WordPress or Joomla, use MySQL; ASP.NET applications usually use MS SQL. Check your application requirements.
- I cannot create more databases: you reached the limit of your service. You can upgrade it by contacting the sales department from the client portal or via the online chat.
If you need help with your database, open a ticket from the client portal or inquire through the site's online chat.
