Export a database
An export saves a database as a text file of SQL commands. Use it before risky changes, to move a site, or to keep your own backup. Daily backups already cover your account, but a fresh export gives you a file you control.
Option 1: phpMyAdmin
- Open Account → Hosting → your site → Databases and click Open phpMyAdmin.
- Click your database in the left list.
- Click Export.
- Choose Quick with format SQL, and click Export. For more control, choose Custom, then:
- Tick Add DROP TABLE / VIEW / PROCEDURE / FUNCTION / EVENT / TRIGGER statement if you'll import into a database that has tables.
- Set Compression to
gzippedfor large databases.
- Save the downloaded file.
Option 2: mysqldump (SSH)
Use it for big databases and scripts.
# Export one database, compressed
mysqldump -u yourusername_shop -p \
--single-transaction --quick --no-tablespaces \
yourusername_bakery | gzip > ~/backups/bakery-$(date +%F).sql.gz
# Plain SQL, structure only
mysqldump -u yourusername_shop -p --no-data yourusername_bakery > schema.sql
# One table
mysqldump -u yourusername_shop -p yourusername_bakery wp_options > wp_options.sql
--single-transaction avoids locking tables on InnoDB. --no-tablespaces avoids a privilege error that regular users hit.
Option 3: WP-CLI
cd ~/public_html
wp db export ~/backups/site-$(date +%F).sql
Option 4: A daily backup
To get a file from an earlier day, prepare a download in Account → Hosting → your site → Backups. See Download a backup copy. See Back up and restore WordPress.
Download it
Get the file with SFTP, or the file manager in Files. Then delete it from the server. A .sql file in public_html can be downloaded by anyone who guesses the name.
Check it
gunzip -c bakery-2026-11-30.sql.gz | head -20
gunzip -c bakery-2026-11-30.sql.gz | tail -3
The end should say -- Dump completed.
If something goes wrong
Access denied; you need the PROCESS privilege: add--no-tablespaces.- Empty file: wrong password, or a timeout. Use mysqldump.
- phpMyAdmin download stops: use mysqldump.
Still stuck? Ask us and we'll walk you through it.