phpMyAdmin is a web tool for working with MySQL databases. The two jobs most people need it for are exporting a database to a .sql file (for a backup or to move a site) and importing a .sql file into a database on your cPanel Hosting account.
Open phpMyAdmin
- Log in to your FimuroHost client area at https://app.fimurohost.com.
- Go to Services and select your cPanel Hosting plan.
- Click Login to cPanel. cPanel opens in a new tab, already signed in.
- In the Databases section, click phpMyAdmin. It opens in a new tab and signs you in automatically.
- Your databases are listed on the left. Click one to select it.
Export a database
- Select the database on the left, then click the Export tab.
- Export method: Quick is fine for most sites. Choose Custom if you want to compress the file (choose gzipped under Output) or pick specific tables.
- Format: SQL.
- Click Export (or Go). The file downloads to your computer.
For a quick backup of just the database, you can also use Files » Backup » Partial Backups » Databases in cPanel, which downloads a compressed .sql.gz file.
Import a database
Before you start
- Create an empty database and user first with the Database Wizard.
- If the database already has tables, importing may fail with “table already exists”, or overwrite data. Export a backup first, then drop the old tables if you are replacing them (select all tables in the Structure tab, choose Drop).
- Open the
.sqlfile in a text editor and remove anyCREATE DATABASEorUSElines naming a different database. They cause “Access denied” errors, because on cPanel your user can only use databases with your prefix.
Step by step
- In phpMyAdmin, click the target database on the left.
- Click the Import tab.
- Click Choose File (or Browse) and select your
.sql,.sql.gzor.zipfile. The maximum upload size is shown next to the button. - Leave Character set of the file as
utf-8and Format as SQL. - Click Import (or Go) at the bottom and wait. A green message confirms how many queries ran.
Files that are too large
- Compress the
.sqlfile to.sql.gzor.zipfirst; SQL text compresses very well, often to a tenth of its size. - If your plan includes SSH access, import from the command line, which has no upload limit:
mysql -u username_dbuser -p username_dbname < backup.sql - Otherwise, upload the file to your home directory with FTP and open a ticket; we can check whether the import can be run for you.
Common errors
| Error | Fix |
|---|---|
#1044 Access denied for user … to database | Remove CREATE DATABASE / USE lines from the file and import into your prefixed database. |
#1050 Table already exists | Drop the existing tables first, or import into an empty database. |
#1273 Unknown collation: utf8mb4_0900_ai_ci | The file came from a newer MySQL version. In a text editor, replace utf8mb4_0900_ai_ci with utf8mb4_unicode_ci and import again. |
| Timeout or blank page | The file is too large for the browser. Compress it or import over SSH. |
After importing a WordPress database
If the site moved to a different domain, update the site address in the wp_options table (siteurl and home) or use a search-and-replace tool so links point to the new domain. Make sure wp-config.php has the new database name, user and password.
Need help?
If anything in this guide does not match what you see, or you get stuck, open a support ticket (choose the Support department) or message us on WhatsApp at 01818160926. Tell us your domain name and what you have tried so far, and never send your password in a ticket or chat.
Categories
Written by
FimuroHost Team
Technical Writer