Skip to main content
All CollectionscPanelMySQL
How to Create a New MySQL Database in cPanel
How to Create a New MySQL Database in cPanel

Creating a new MySQL database at Hostinger using cPanel

Updated over a year ago

You can easily create a new MySQL database by opening your cPanel and clicking on MySQL Databases section:

The MySQL Databases option on cPanel

Once there, enter the database name and click on Create Database:

The Create New Database section showing how to create a database

By default, the prefix will be your cPanel username followed by an underscore. eg. user_

Select to Go Back after creating the database and scroll down to the Add New User section, taking the following into consideration:

  • The username name will have the same prefix as the database

  • Enter the database password twice. It is recommended to use the password generator tool to ensure a strong password is used

Next, click on Create User:

The Add New User section showing how to create a database user

Finally, on the Add User To Database section right below, connect your newly created user with the database. Select the user and database from the dropdownl ist and click on Add:

The Add User To Database section showing how to associate a user to a database

That’s it! Your MySQL database will be created with a user correctly associated with it.

Did this answer your question?