Follow this guide to understand how to backup database in cPanel manually and automatically. Detailed instructions for how to backup mysql database in cPanel, plus restoring deleted databases from partial backups or remote storage.
cPanel is a web-based control panel for Linux hosting servers that turns complex server management into simple, point-and-click operations.
It’s divided into key sections:
You log in via `yourdomain.com:2083` and get full control over your website's files, databases, email addresses, and security settings without needing command-line skills.
cPanel requires a paid license, but most hosts include it in monthly fees. It pairs with WHM (WebHost Manager) for server admin tasks. With cPanel, you can create databases via MySQL Wizard, manage them with phpMyAdmin, set up professional email, block malicious IPs, and schedule backups.
A database is very important for all website owners or managers. So, how to backup database in cPanel? We will show you all about database backup in cPanel. Let’s get started.
PhpMyAdmin is the popular option for most users because it's visual, straightforward, and gets the job done. Plus, you don't need to mess with command lines.
1. First, log in to cPanel and scroll to the Databases section.
2. Click phpMyAdmin.
3. On the left sidebar, you'll see a list of your databases.
4. Click the one you want to back up. Click "Export" to backup database in cPanel.
5. Here, you can choose Quick or Custom to export.
A full cPanel backup creates a backup for files, database, email forwarders, etc.
1. Please log in to your cPanel.
2. Scroll down to find the Files section and choose Backup.
3. Click Download A Full Account Backup.
4. Set up the settings and hit Generate Backup.
5. It will start backing up; wait for the process to complete.
6. Once completed, click the file to download.
It creates backup files that contain your home directory files, database, email forwarders, email filters, etc.
You can also download a database backup separately in cPanel.
1. Please log in to your cPanel.
2. Click Files > Backup.
3. Scroll down to find the Partial Backups > Download a Database Backup.
4. Click the database you want to back up to download.
The wizard does its thing and generates a .sql file.
When your database grows beyond a few hundred megabytes, the web-based tools start choking. You have to try mysqldump via SSH.
1. First, you'll need SSH access to your server. Most hosts offer this, though some shared plans lock it down.
2. Once you're logged in via SSH, you're looking at a command line. You'll need your database username, password, and database name handy.
3. Run the mysqldump command to back up a specific database and hit Enter:
mysqldump -u username -p database_name > backup.sql
Replace the placeholders with your actual info, then the system will ask for your password, and then dump the entire database into a file called backup.sql.
Q: How often should I backup my database?
A: That depends on how often your content changes. For an e-commerce store or busy blog, daily or less. For a static portfolio site that updates once a month, weekly is probably fine.
Q: What's the difference between a full backup and a database-only backup?
A: Full backup grabs everything (files, databases, emails). Database-only grabs just MySQL data. Full for moving hosts, database-only for quick content recovery.
Q: Can I restore a backup without overwriting existing data?
A: Most methods overwrite tables. To avoid that, create a new database in cPanel, import it there, then manually migrate the needed data.
Q: Why does my phpMyAdmin import keep failing?
A: File size limits or timeout errors. Raise upload_max_filesize and post_max_size, or use command line: mysql -u username -p database_name < backup.sql.
Q: Do I need to put my site in maintenance mode while backing up?
A: For a standard mysqldump with `--single-transaction`, no - that flag handles consistency without locking. For huge databases, maintenance mode adds safety.
Q: How do I back up multiple databases at once?
A: Use phpMyAdmin Export without selecting a database, or run an SSH loop script to dump all databases at once.
Besides, you can also backup database with the powerful multiple-cloud storage manager, MultCloud.
It’s not only a cloud storage manager but also a comprehensive database backup tool.
Here is how to backup database to OneDrive with MultCloud:
1. Please log in to your MultCloud account after signing up.
2. Click Add Cloud > OneDrive to add.
3. Tap Website Backup > WEBSITE TO BACKUP > Add Website > Remove Website Files, input the database server credentials, and hit Add Website.
4. Choose the added database to back up and a folder in OneDrive as the destination. Configure settings and hit Backup Now to backup database directly to OneDrive automatically.
Google Drive
Google Workspace
OneDrive
OneDrive for Business
SharePoint
Dropbox
Dropbox Business
MEGA
Google Photos
iCloud Photos
FTP
box
box for Business
pCloud
Baidu
Flickr
HiDrive
Yandex
NAS
WebDAV
MediaFire
iCloud Drive
WEB.DE
Evernote
Amazon S3
Wasabi
ownCloud
MySQL
Egnyte
Putio
ADrive
SugarSync
Backblaze
CloudMe
MyDrive
Cubby