Updated: 28 September 2026 · Applies to: phpMyAdmin 5.2 in cPanel & WHM 138
Import an SQL file to restore a backup or load a database from another server.
Steps
- Open phpMyAdmin (in cPanel: Databases › phpMyAdmin) and click the database in the left panel. (Create an empty database first if needed.)
- Open the Import tab and click Choose File (
.sql,.sql.gzor.zip). - Keep the format as SQL and click Import (Go).
Replacing a damaged table
Drop the damaged table first (tick it, then With selected › Drop), then import a backup that contains only that table.
Note: The Import tab shows the maximum upload size. For larger files, use cPanel's Files › Backup › Restore a MySQL Database backup or ask support.