Step 1: Open the Databases Section:
In cPanel, find the Databases section and click to expand it.
Step 2: Click "phpMyAdmin":
This opens phpMyAdmin, usually in a new tab. It will automatically log you in using your cPanel database credentials.
Step 3: Select a Database:
On the left sidebar, you'll see a list of all your databases. Click on the one you want to work with.
Step 4: Browse the Tables:
Once inside a database, you'll see all its tables listed. Click on any table to view its data.
Step 5: Edit or Delete Data:
While browsing a table, each row has Edit and Delete icons. Click Edit to modify a row's values, or Delete to remove it permanently.
Step 6: Insert New Data:
Click the Insert tab on a table to add a new row of data through a form.
Step 7: Run a Custom SQL Query:
Click the SQL tab at the top of the page, type your query (e.g., SELECT * FROM users WHERE id=5), and click Go to execute it.
Step 8: Export a Database (Backup):
- Click on the database name in the sidebar.
- Go to the Export tab.
- Choose Quick (default) or Custom (more options).
- Select the format (usually SQL).
- Click Go to download the backup file.
Step 9: Import a Database (Restore):
- Click on the database you want to import data into.
- Go to the Import tab.
- Click Choose File and select your
.sqlbackup file. - Click Go to run the import.
Step 10: Manage Users and Privileges:
- Go to the User accounts tab from the main phpMyAdmin home page.
- Create a new user or edit an existing one.
- Assign privileges per database (e.g, SELECT, INSERT, UPDATE, ALL PRIVILEGES).
Step 11: Optimize or Repair a Table:
- Select the table from the list.
- Go to the Operations tab.
- Click Optimize table or Repair table as needed.