Creating a new databse in phpmyadmin on cpanel
Here's a step-by-step guide on how to create a new database in PHPMyAdmin on cPanel:
Prerequisites:
- You have a cPanel account and have logged in to it.
- You have PHPMyAdmin installed and configured on your cPanel account.
Step 1: Access PHPMyAdmin
- Log in to your cPanel account.
- Click on the "Databases" tab.
- Click on the "MySQL Databases" icon.
- Click on the "phpMyAdmin" icon.
Step 2: Create a New Database
- In the PHPMyAdmin interface, click on the "Databases" tab.
- Click on the "Create a new database" button.
- Enter a name for your database in the "Database name" field. Make sure it's unique and follows the naming conventions (e.g.,
mydatabase
). - Choose a collation for your database. The default collation is usually sufficient.
- Click the "Create" button to create the database.
Step 3: Set Up Database Privileges
- Once the database is created, you'll be taken to the database's main page.
- Click on the "Privileges" tab.
- Click on the "Add a new user" button.
- Enter a username and password for the database user. Make sure to choose a strong password.
- Assign the user to the database by selecting the database name from the dropdown menu.
- Choose the privileges you want to grant to the user. The default privileges are usually sufficient.
- Click the "Go" button to save the changes.
Step 4: Verify the Database
- Go back to the database's main page.
- Verify that the database has been created and the user has been added.
- You can now start creating tables, inserting data, and managing your database using PHPMyAdmin.
That's it! You have successfully created a new database in PHPMyAdmin on cPanel.