A web application stores content such as posts and settings in a database. In cPanel, Manage My Databases lets you create a MySQL database and give the application's database user access to it.

When database prefixing is enabled, cPanel adds an account prefix to the database name and username. The application needs the full names shown in cPanel, including that prefix.

Creating a database user leaves its access to the new database unset. The privileges you grant for that database determine whether the application can read records, change them, or manage its tables.

Steps to create a MySQL database in cPanel:

  1. Type Manage My Databases into the Search Tools field on the cPanel Tools dashboard.
  2. Select Manage My Databases from the search results.
  3. Enter a name such as blog in New Database.

    The example account reaches its database limit after blog is created.

  4. Click Create Database.
  5. Click Go Back on the database creation confirmation.
  6. Enter a username such as bloguser in Username under Add New User.
  7. Enter a strong, unique password in Password.

    A password manager can store the password for the application's database settings. If you lose it, cPanel lets you set a new one.
    Related: How to change MySQL password in cPanel

  8. Re-enter the password in Password (Again).
  9. Click Create User.
  10. Type Manage My Databases into the cPanel Search Tools field.
  11. Select Manage My Databases from the search results.
  12. Select the full name for bloguser from User under Add User To Database.
  13. Select the full name for blog from Database.
  14. Click Add for the selected user and database.

    ALL PRIVILEGES gives bloguser full control of the selected database, blog, including the ability to delete records, change the schema, and drop tables. Use it only if the application needs that level of access.

  15. Select the privileges the application needs in Manage User Privileges.
  16. Click Make Changes to save the privileges.
  17. Click Go Back to return to Manage My Databases.
  18. Open the bloguser link under Privileged Users on the blog row in Current Databases.
  19. Confirm that the reopened privilege checkboxes match the grant for bloguser.

    With ALL PRIVILEGES saved, every listed privilege is checked.

Share this guide