How to Back Up All MySQL Databases on Hostinger Hosting: Complete Technical Guide for Shared Hosting, VPS, SSH, phpMyAdmin, and Automated SQL Backup Solutions
Data is the backbone of every website. Whether you are hosting a WordPress website, Laravel application, PHP portal, eCommerce store, CRM, ERP, or a custom w...
Data is the backbone of every website. Whether you are hosting a WordPress website, Laravel application, PHP portal, eCommerce store, CRM, ERP, or a custom web application, your MySQL or MariaDB database contains critical information such as users, products, orders, settings, financial records, and application data.
Hostinger provides reliable hosting services with MySQL/MariaDB database support. However, many website owners eventually ask the same question:
Can I download all SQL databases from my Hostinger hosting account in one click?
The answer depends on the hosting plan you use. Shared Hosting, Business Hosting, Cloud Hosting, and VPS Hosting each offer different backup possibilities.
This article explains every available method in detail, including manual exports, automated backups, SSH commands, mysqldump usage, scripting techniques, security considerations, and disaster recovery strategies.
Why SQL Database Backup is Important
A database backup protects your website against:
- Server failures
- Website hacking
- Ransomware
- Accidental deletion
- Corrupted updates
- Failed plugin installation
- Malware infection
- Database corruption
- Human errors
- Migration failures
Without a backup, recovering lost data may be impossible.
Understanding Hostinger Hosting Types
Hostinger offers multiple hosting environments.
Shared Hosting
- Premium Hosting
- Business Hosting
Limited server access.
No root access.
Database access through phpMyAdmin.
Cloud Hosting
Includes
- SSH Access
- Better performance
- Advanced management
VPS Hosting
Provides complete root access.
You can perform server-wide database backups.
Understanding MySQL Database Backup
A MySQL backup is usually stored as an SQL file.
Example:
CREATE TABLE customers (
id INT,
name VARCHAR(200)
);
INSERT INTO customers VALUES
(1,'John');
This SQL file contains
- Table structures
- Data
- Indexes
- Constraints
- Stored procedures
- Triggers
- Views
Method 1 – Export Database Using phpMyAdmin
The simplest approach.
Step 1
Login to Hostinger.
Step 2
Open
hPanel
Step 3
Navigate to
Databases
Step 4
Open
phpMyAdmin
Step 5
Choose a database.
Step 6
Click
Export
Step 7
Choose
Quick
or
Custom
Step 8
Select
SQL
Step 9
Click
Go
The SQL file downloads immediately.
Advantages
- Very simple
- Safe
- No coding
- Official method
Limitations
If you own
- 10 databases
- 50 databases
- 100 databases
You must export each separately.
Method 2 – Generate Full Hosting Backup
Business Hosting supports full backups.
Navigate to
Files
↓
Backups
↓
Generate Backup
The backup includes
- Website files
- SQL databases
- Configuration files
Some plans also include email data.
This is the safest recovery option.
Method 3 – Backup Through SSH
Available on
- Cloud Hosting
- VPS
After enabling SSH
ssh username@hostname
Run
mysqldump -u USERNAME -p DATABASE > backup.sql
After entering the password, the SQL dump is generated.
Method 4 – Backup All Databases
On VPS:
mysqldump --all-databases > all.sql
or
mysqldump -u root -p --all-databases > all.sql
This creates one SQL file containing every database.
Method 5 – Export Multiple Databases
Suppose you own
client1
client2
client3
wordpress
crm
Run
for db in client1 client2 client3 wordpress crm
do
mysqldump -u user -ppassword $db > $db.sql
done
Each database receives its own SQL file.
Method 6 – Automatic Backup Script
A PHP script can automate exports if the server allows exec() and mysqldump.
Workflow:
- Read database list.
- Loop through each database.
- Export to
.sql. - Compress into a ZIP.
- Download the ZIP.
Useful for administrators managing many sites.
Method 7 – Cron-Based Scheduled Backup
Automate backups with Cron Jobs.
Example:
Daily at 2 AM.
0 2 * * * mysqldump database > backup.sql
Benefits:
- No manual work
- Regular protection
- Disaster recovery readiness
Method 8 – Compressed Backup
Large databases can be compressed.
mysqldump database | gzip > database.sql.gz
Compression often reduces backup size by 70–90%.
Method 9 – Incremental Backup
Instead of exporting everything each day:
- Full backup weekly
- Incremental backup daily
Advantages:
- Faster
- Less storage
- Reduced server load
Method 10 – WordPress Backup Plugins
Popular plugins:
- UpdraftPlus
- Duplicator
- All-in-One WP Migration
- WPvivid Backup
- BackupBuddy
These back up:
- Database
- Themes
- Plugins
- Uploads
- Configuration
Method 11 – Backup Before Website Migration
Always create backups before:
- PHP upgrades
- WordPress updates
- Plugin updates
- Theme changes
- Domain transfers
- SSL installation
- Server migration
Method 12 – Verify Your Backup
Never assume a backup is valid.
Restore it on:
- Localhost
- XAMPP
- WAMP
- Test server
Verify:
- Tables exist
- Data is complete
- Images load
- Website functions properly
Security Best Practices
Protect SQL backups by:
- Encrypting archives
- Password-protecting ZIP files
- Storing backups off-site
- Using cloud storage
- Restricting access
- Deleting old backups
- Avoiding public directories
Common Errors
Access Denied
Wrong database credentials.
mysqldump Not Found
Command unavailable on shared hosting.
Timeout
Database is very large.
Increase timeout or use SSH.
Memory Limit
Increase PHP memory or split exports.
Corrupted SQL File
Usually caused by interrupted downloads.
Re-export the database.
Best Backup Strategy
Recommended schedule:
Daily
- Database backup
Weekly
- Full website backup
Monthly
- Archive backup
Yearly
- Long-term offline backup
Store copies in:
- Local PC
- External hard drive
- NAS
- Google Drive
- OneDrive
- AWS S3
- Dropbox
Shared Hosting vs VPS
| Feature | Shared Hosting | VPS |
|---|---|---|
| phpMyAdmin | Yes | Yes |
| SSH | Limited/Plan-dependent | Yes |
| Root Access | No | Yes |
| mysqldump | Restricted | Full |
| Export All Databases | No | Yes |
| Cron Jobs | Limited | Full |
| Automation | Limited | Full |
| Custom Scripts | Limited | Full |
Recommended Backup Workflow
- Enable automatic backups.
- Generate regular SQL exports.
- Compress backup files.
- Verify backup integrity.
- Upload copies to cloud storage.
- Maintain multiple backup versions.
- Test restoration periodically.
- Secure backup files with encryption.
- Document recovery procedures.
- Monitor backup logs for failures.
Conclusion
Backing up MySQL databases is one of the most important administrative tasks for any website owner. While Hostinger Shared Hosting requires exporting databases individually or using full account backups, Cloud Hosting and VPS provide powerful automation through SSH, mysqldump, Cron Jobs, and scripting. A disciplined backup strategy—including scheduled backups, off-site storage, and routine restore testing—ensures business continuity, minimizes downtime, and protects valuable data from accidental loss or cyber threats.
Was this guide useful?
Your answer helps us keep BISONKB accurate and practical.