Create MySQL Database using cPanel

    • Articles coming soon
    • Articles coming soon
    • Articles coming soon
    • Articles coming soon
    • Articles coming soon
    • Articles coming soon
    • Articles coming soon
    • Articles coming soon
< All Topics
Print

You can create a MySQL database in cPanel using either the MySQL Databases tool for manual, step-by-step control or the MySQL Database Wizard for a guided process. Both methods require you to create a database, a database user, and then connect them with assigned permissions.

Using the MySQL Database Wizard

The wizard is the simplest option and is recommended for most users.
Log in to cPanel. Access your cPanel account, typically via a link from your web host’s control panel.
Navigate to the Databases section and click on “MySQL Database Wizard”.

Step 1: Create a Database

Enter a name for your new database and click “Next Step.” Your cPanel username will be automatically prepended as a prefix to the name you enter (e.g., cpaneluser_database).

Step 2: Create a Database User

Enter a username and create a strong password. It is recommended to use the Password Generator for a secure password. Click “Create User.”.

Step 3: Assign Privileges

On the next page, you will grant permissions to the user you just created. For most applications, selecting the “ALL PRIVILEGES” checkbox is the correct choice. Click “Next Step.”.

Step 4: Complete the Task

You will see a confirmation page. The process is now complete, and your database, user, and permissions have been created and assigned.

Ready for a Faster, Smarter Website?

Launch Your Cloud Hosting Now – Highlight: Experience LiteSpeed speeds and powerful cPanel control with Hostmara.

What to do next

After completing either method, be sure to save the following credentials, as you will need them to connect your application (such as a CMS like WordPress or web script) to the database:

  • Database Name (e.g., cpaneluser_database)
  • Database User (e.g., cpaneluser_user)
  • Database Password (the one you set during the process)
  • Database Host (usually localhost)

Frequently Asked Questions

How do I let other computers connect to my MySQL Database?

By default, only your website can connect. To allow other computers to connect:

  1. Go to Remote MySQL® in cPanel.
  2. Add the IP address of the computer that needs access.
  3. Click Add Host.
How can I fix a damaged MySQL database?

Use a cPanel tool to repair a database if it's having problems:

  1. In cPanel, go to MySQL Databases.
  2. Find the Repair a Database menu.
  3. Choose your database from the list and click Repair Database.
How do I Fix a "database connection error"?

Incorrect login details usually cause this error. To fix this:

  • Verify the database name, username, and password in your website's settings (e.g., wp-config.php for WordPress).
  • Ensure the database user is linked to the database with all permissions privileges.
  • The hostname is typically "localhost"
How do I change a MySQL user's password?
  • In cPanel, go to MySQL Databases.
  • Find the user under the "Current Users" list and click Change Password.
  • Enter and confirm the new password.
What is the difference between "MySQL Databases" and the "Wizard"?
  • The Wizard is a simple, step-by-step tool for creating a database, user, and linking them all at once. It's best for new users.
  • The MySQL Databases tool lets you perform each step separately. You create the database, then the user, and then manually link them together. It offers more control.
Table of Contents