Set Up a New Database
Databases store data for WordPress, web applications, and custom scripts.
Creating a Database
- Log in to cPanel
- Go to MySQL Databases
- Under "Create New Database", enter a name
- Click Create Database
Creating a Database User
- Scroll to "MySQL Users"
- Enter a username
- Enter a strong password (use the generator)
- Click Create User
Connecting User to Database
- Scroll to "Add User To Database"
- Select the user from dropdown
- Select the database from dropdown
- Click Add
- Select ALL PRIVILEGES
- Click Make Changes
Connection Details
| Setting | Value |
| Host | localhost |
| Database | username_dbname |
| Username | username_dbuser |
| Password | Your chosen password |
Note: Database and user names are prefixed with your cPanel username (e.g., cpuser_mydb).