How to Create a Database in cPanel

This article provides a guide demonstrating how to create a database in cPanel. This guide applies to users of cPanel Hosting, WordPress Hosting, and Reseller Hosting.

How to Create a Database in cPanel

To create a database in cPanel, follow the steps outlined below:

  1. Log in to cPanel
    • Go to your cPanel login URL.
    • Enter your username and password.
  2. Find the Databases section
    • On the cPanel home screen, look for Databases.
    • Click Manage My Databases.
      Click 'Manage My Databases'
  3. Create a new database
    • Under Create New Database, enter a database name.
    • Example: mywebsite_db
    • Click Create Database.
      Enter Database Name, then 'Click Create Database'
  4. Go back to the MySQL Databases page
    • After cPanel confirms the database was created, click Go Back.
  5. Create a database user
    • Scroll to MySQL Users.
    • Under Add New User, enter a username.
    • Create a strong password or use the Password Generator.
    • Click Create User.
      Enter database username and password, confirm password, then click 'Creae User'
  6. Add the user to the database
    • Scroll to Add User To Database.
    • Select the user you just created.
    • Select the database you just created.
    • Click Add.
      Select the user and database, then click 'Add'
  7. Assign user privileges
    • Select the permissions the user should have.
    • For most website applications, choose All Privileges.
    • Click Make Changes.
      Check privileges, then click 'Make Changes'
  8. Confirm the database details
    • You now have:

      • Database name
      • Database username
      • Database password
      • Database host, usually localhost
  9. Use the database in your application
    • When installing WordPress, WHMCS, Joomla, or another app, enter the database details when prompted.

    Example:

    Database Name: cpaneluser_mywebsite_db
    Database User: cpaneluser_dbuser
    Password: YourStrongPassword
    Database Host: localhost
    

    Note: cPanel may prefix database names and usernames with your cPanel account username.

Conclusion

You now know how to create a database in cPanel.

Related:

  • database
  • 0 istifadəçi bunu faydalı hesab edir
Bu cavab sizə kömək etdi?

Uyğun məqalələr

Video: Create Email Address in cPanel

This video tutorial demonstrates how to create an email address using cPanel Shared Hosting...

Video: Change Primary Language in cPanel

This video tutorial provides Step-by-Step instructions for changing the Primary Language settings...

Video: How to Enable Spam Protection in cPanel

This video tutorial provides Step-by-Step instructions for enabling spam protection in cPanel...

Video: Set Default Email Address in cPanel

This video tutorial provides Step-by-Step instructions for setting the Default Email Address in...

Video: How to Setup Domain Redirects in cPanel

This video tutorial provides Step-by-Step instructions how to setup domain redirects in cPanel...