phpMyAdmin is a web-based tool for managing MySQL databases. It provides a graphical interface for browsing tables, running SQL queries, importing and exporting data, and performing maintenance tasks.
Please note: Screens and options may vary slightly depending on your cPanel version and hosting plan.
Accessing phpMyAdmin
- Log in to your cPanel account.
- In the Databases section, click phpMyAdmin.
- phpMyAdmin opens in a new tab, showing your databases in the left sidebar.
Common Tasks
Browsing Data
- Click a database name in the left sidebar.
- Click a table name to view its structure.
- Click the Browse tab to see the data in the table.
Running SQL Queries
- Select the database.
- Click the SQL tab.
- Enter your query and click Go.
Example — find all users in a WordPress database:
SELECT * FROM wp_users;
Searching Data
- Select a table.
- Click the Search tab.
- Enter search criteria for specific columns.
- Click Go.
Exporting a Database
- Select the database.
- Click the Export tab.
- Choose Quick for a standard SQL dump, or Custom for more options.
- Click Go to download the file.
Importing Data
- Select the database.
- Click the Import tab.
- Click Choose File and select your
.sqlor.sql.gzfile. - Click Go.
Note: There is typically a file size limit for imports through phpMyAdmin (often 50MB–512MB depending on server configuration). For larger files, use the command line or the cPanel Backup tool.
Editing Data
- Browse a table.
- Click Edit (pencil icon) next to the row you want to modify.
- Make changes and click Go.
Tips
- Always back up your database before making changes in phpMyAdmin. Accidental deletions or incorrect queries cannot be undone.
- Use the Operations tab to rename tables, change the storage engine, or copy a table.
- If phpMyAdmin times out during a large import, use SSH and the
mysqlcommand-line tool instead. - The Designer feature (available under the database view) shows visual relationships between tables.
What Next?
- Backing Up and Restoring a Database — Export and import database backups.
- Optimising and Repairing MySQL Databases — Improve database performance.