MySQL databasesSpanish version

Support article

How to create a database in cPanel

Learn how to create a MySQL database in cPanel, add a user and assign permissions step by step from your hosting account.

Published: 24/06/2026Updated: 24/06/2026

Introduction

Creating a database in cPanel is a common task when you want to install a website, connect an application or prepare a CMS such as WordPress, Joomla or PrestaShop.

Steps to create a database in cPanel

1. Access cPanel

  1. Sign in to your miHosting client area.
  2. Open the corresponding hosting service.
  3. Enter the cPanel control panel.
  4. Find the Databases section.

2. Open the database wizard

Click MySQL Database Wizard or the equivalent option in your panel language.

3. Create the database

Choose the database name and confirm the step.

4. Create the database user

Enter a username and set a strong password.

5. Assign permissions to the user

Grant the required privileges so the user can work with the database.

6. Finish the wizard

Save the information you will need later when configuring your application.

Example details to connect a website

Normally you should save:

  • Database name.
  • Database username.
  • Password.
  • Database server value, often localhost in local hosting connections.

Useful tips

  • Use descriptive names.
  • Keep the password in a safe place.
  • Create a separate database for each project when possible.

Frequently asked questions

What is a database in cPanel?

It is the storage area where your application keeps dynamic content and settings.

Do I need a database to install WordPress?

Yes, WordPress normally requires one.

Can I create several databases in cPanel?

Yes, depending on your hosting plan limits.

What is the database server in cPanel?

For many local hosting applications it is often localhost, although some remote cases differ.

Can I change the database user password later?

Yes, you can usually update it from the panel and then reflect the change in the application configuration.

Conclusion

Creating a database in cPanel is usually a simple guided process: create the database, create the user and assign permissions.