-
Accessing MySQL Databases in cPanel:
- Log in to cPanel using your credentials provided by your hosting provider.
- Navigate to the "Databases" section and click on "MySQL Databases."
-
Creating a New Database:
- In the "Create New Database" section, enter a name for your new database.
- Click on the "Create Database" button to finalize the creation.
-
Creating a Database User:
- Scroll down to the "MySQL Users" section.
- Enter a username and password for the new database user.
- Click on the "Create User" button to create the user.
-
Assigning User to Database:
- Scroll down to the "Add User to Database" section.
- Select the database user you created from the dropdown menu.
- Select the database you created from the dropdown menu.
- Click on the "Add" button to assign the user to the database.
-
Managing Databases and Users:
- From the "MySQL Databases" section, you can manage existing databases and users.
- You can delete databases, delete users, or change user passwords as needed.
-
Accessing phpMyAdmin:
- To manage your MySQL databases visually, click on the "phpMyAdmin" icon in the "Databases" section.
- Here, you can perform tasks such as creating tables, running SQL queries, and managing database structure.
-
Understanding Database Prefixes:
- cPanel automatically assigns a prefix to your database name for security purposes.
- The prefix helps prevent naming conflicts with other databases on the server.
Understanding cPanel Databases: MySQL Basics
- Details
- Category: Professional Hosting