Creating a new MySQL database in cPanel is a straightforward process. Here’s a step-by-step guide to help you set up your database.
Step 1: Log in to cPanel
- Open Your Web Browser:
- Navigate to your cPanel URL (e.g., https://yourdomain.com/cpanel).
- Enter Your Credentials:
- Log in using your cPanel username and password.
Step 2: Locate the Databases Section
- Find the Databases Section:
- In the cPanel dashboard, scroll down to the "Databases" section.
Step 3: Click on MySQL Databases
- Select MySQL Databases:
- Click on the "MySQL Databases" icon. This will take you to the database management area.
Step 4: Create the New Database
- Enter Database Name:
- In the "Create New Database" field, enter a name for your new database. It’s a good practice to use a descriptive name.
- Click Create Database:
- After entering the name, click the "Create Database" button.
- Confirmation:
- You’ll see a confirmation message indicating that the database has been created successfully.
Step 5: Create a Database User
- Scroll to the MySQL Users Section:
- In the same MySQL Databases interface, find the "MySQL Users" section.
- Add a New User:
- Enter a username and a strong password for the new database user.
- Click Create User:
- Click the "Create User" button.
Step 6: Add User to Database
- Add User to Database:
- In the "Add User to Database" section, select the user you just created from the dropdown.
- Select the Database:
- Choose the database you created earlier from the dropdown menu.
- Click Add:
- Click the "Add" button.
- Set Privileges:
- On the next screen, you can set the user privileges. For most applications, select "All Privileges." Then click "Make Changes."
Conclusion
You’ve successfully created a new MySQL database and user in cPanel! You can now use this database for your applications, such as WordPress or other CMSs. Always remember to keep your database credentials secure and back up your data regularly.
