Answer :
Importing a database is a common task when migrating a website, restoring a backup, or installing an application such as WordPress, Laravel, or custom PHP scripts.
GHFS Hosting makes database imports simple through phpMyAdmin or Plesk Database Manager.
1. Import a Database Using phpMyAdmin (Most Common Method)
Steps:
-
Log in to your Plesk panel
-
Go to Websites & Domains
-
Click Databases
-
Select the database you want to import into
-
Click phpMyAdmin
-
In phpMyAdmin, open the Import tab
-
Click Choose File
-
Select your
.sql,.zip, or.gzfile -
Scroll down and click Go
Your database will be imported.
2. Important Notes When Importing via phpMyAdmin
Supported formats:
-
.sql -
.zip -
.gz
File size limits:
phpMyAdmin may restrict upload size based on your hosting plan.
If your file is too large, use Plesk Import Tool or SSH + MySQL CLI (VPS).
3. Import a Database Using Plesk Database Manager
Steps:
-
Go to Plesk → Databases
-
Select the desired database
-
Click Import Dump
-
Choose:
-
Upload a file from your computer
-
Or select a file already on your hosting account
-
-
Click OK
Plesk will automatically import the database dump.
4. Import a Large Database (Over phpMyAdmin Limit)
If your .sql file is very large, use one of these methods:
Method A: Use Plesk's “Import Dump” (Preferred for Shared Hosting)
-
No browser upload limit
-
Can import large dumps
Method B: Use SSH + MySQL (VPS Only)
SSH command:
Or for gzip files:
5. Common Import Errors and Solutions
Error: “#1044 Access Denied”
Cause:
-
Wrong database user
-
User does not have permission
Solution:
-
Check database user credentials in Plesk
-
Make sure the correct user is assigned to the database
Error: “#2006 MySQL Server Has Gone Away”
Cause:
-
File too large
-
Timeout limit reached
Solution:
-
Use Plesk Import Dump or SSH import
Error: “Duplicate Entry”
Cause:
-
Importing the same data twice
Solution:
-
Drop tables before import (only if you intend to overwrite)
Error: SQL mode incompatibilities
Cause:
-
Old MySQL version → New MySQL version mismatch
Solution:
-
Remove outdated SQL statements from the file (GHFS support can assist)
6. When to Contact GHFS Hosting Support
Contact support if:
-
Your import fails repeatedly
-
You receive unclear SQL errors
-
The dump file seems corrupt
-
You do not know which database to import into
-
File size is too large for phpMyAdmin
Support can import your database manually or help fix errors.