HomeStoreCartHostingLogin
→
GrabbyHost
Hosting
Client Area0Shopping Cart
HomeKnowledgebaseHow to Create a MySQL Database

How to Create a MySQL Database

Many web applications — including WordPress and other CMS platforms — need a MySQL database to store their data. This guide walks through creating one in cPanel, creating a database user, and connecting the two. Step...

0 views

Many web applications — including WordPress and other CMS platforms — need a MySQL database to store their data. This guide walks through creating one in cPanel, creating a database user, and connecting the two.

Step 1: Create the Database

  1. Log in to cPanel.
  2. Under the Databases section, click MySQL Databases.
  3. Under "Create New Database," enter a name for your database and click Create Database.

Note that cPanel automatically prefixes your database name with your cPanel username (e.g. username_dbname) — this is normal and required.

Step 2: Create a Database User

  1. On the same MySQL Databases page, scroll to "MySQL Users" and find Add New User.
  2. Enter a username and a strong password (or use the password generator), then click Create User.

Like the database name, your username will be prefixed automatically (e.g. username_dbuser).

Step 3: Add the User to the Database

  1. Scroll to "Add User to Database."
  2. Select the user and the database you just created, then click Add.
  3. On the next screen, check All Privileges (unless you specifically need to limit permissions) and click Make Changes.

Step 4: Connect Your Application

Your application (such as WordPress) will ask for the database name, username, password, and host during setup. Use the full prefixed names from above, and enter localhost as the database host unless your application specifies otherwise.

Managing Your Database

You can browse and edit database tables directly using phpMyAdmin, also found in the Databases section of cPanel.

Related Articles

  • How to Install WordPress
  • Getting Started with cPanel
Was this answer helpful?Your response helps us improve future guides.
BackBack to Knowledgebase

On this page

  1. 1.Step 1: Create the Database
  2. 2.Step 2: Create a Database User
  3. 3.Step 3: Add the User to the Database
  4. 4.Step 4: Connect Your Application
  5. 5.Managing Your Database
  6. 6.Related Articles

Still need help?

If this guide did not answer your question, contact GrabbyHost Support.

Contact GrabbyHost Support
GrabbyHost

Hosting, domains, email, websites, marketing and security for modern businesses.

View network status

Hosting

  • Starter Hosting
  • Business Hosting
  • WordPress Hosting
  • VPS Servers
  • Cloud VPS

Domains & Email

  • Search Domains
  • Transfer Domains
  • Domain Pricing
  • Professional Email
  • Email Security

Digital Services

  • Website Design
  • Website Builder
  • Online Store
  • How It Works
  • SEO Services

Add-ons

  • Social Media Management
  • SSL Certificate
  • Website Security
  • Malware Cleanup

Support

  • Login
  • Knowledgebase
  • Submit Ticket
  • Contact Us

Stay in the loop

Manage your email preferences in your client account.

Manage email preferences

You're in control of the emails you receive.

Copyright © 2022–2026 GrabbyHost — A Part of Grabby Group FZE LLC. All Rights Reserved.

  • PayPal
  • AMERICAN
    EXPRESS
  • Pay
  • Pay
Privacy PolicyTerms of Service