Portal Home > Knowledgebase > Cpanel > How to create a MYSQL database via cPanel?


How to create a MYSQL database via cPanel?




Databases offer a method you can use to manage large amounts of information easily over the web. They are necessary to run many web-based applications such as bulletin boards, content management systems, and online retail shops.

If you need to create a database as well as the account that will access it, we recommend that you use the “MySQL Database Wizard”. Alternatively, you may create a database, add users, and link a database to an existing user account with this screen.

You can create a database by logging into your Yournic control panel.



To create the database:

1- In the “New Database” field, type a name for the database.
2- Click “Create Database”.
3- Click “Go Back”.

You have now successfully created a database in Cpanel. The new database will appear in the Current Databases table.

Scroll down

After you create the database, you will need to add users and their privileges so that the database can be filled and managed. Please note that MySQL user accounts must be created separately from mail and web administrator accounts.

Let’s learn how to add database users and their privileges

To create a database username and password, please perform the following steps

1- To quickly access the MySQL Users interface by clicking on “MySQL® Databases” under “Databases” section and click “Jump to MySQL Users”.
2- Under “Add New User” please enter a username to be added to your database here
3- Enter a database password in the “Password field”.

Important Notes

The password must be 7 letters or shorter.
For help generating a strong password, click the Password Generator button

4- Retype the password in the “Password (Again) field”.
5- Click “Create User”.





You have now successfully created the username and password for your database.

How do I define a user’s privileges?

Privileges define how the user is able to interact with the database. For example, they will determine whether or not the user can add and delete information.

To define a user’s privileges:

1- To quickly access the MySQL Users interface by clickin on “MySQL® Databases” under “Databases” section
2- Under “Add User to Database”, select a user from the User “drop-down menu”.
3- From the “Database drop-down menu”, select the database to which you wish to allow the user access.
4- Click “Add”.





5- From the MySQL Account Maintenance screen, select the privileges you wish to grant the user, or select “ALL PRIVILEGES”.
6- Click “Make Changes”.





That’s it!

You can also modify a user’s privileges from MySQL Users interface panel.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
How to apply catch(all) to your email address in cPanel? (Views: 1604)
How to create an additional FTP account via cPanel? (Views: 1745)
How do I access my email account via direct webmail Interface? (Views: 1755)
How to check webstats/latest visitors in cPanel? (Views: 1672)
How do I setup redirection on my hosting domain via cPanel? (Views: 6080)

About us


Next Hosts is a UK based Web Hosting and Domain Registration company estabished in United Kingdom. Next Hosts offers high quality business to business solutions to over 30,000 UK businesses.

Next Hosts prides itself on its reliable services and robust network, backed up with a reassuring high grade SLA
(Service Level Agreement)
delivering 99.99% uptime.
© 2026 - Nexthosts.pk