Support article
How to export a database in cPanel and DirectAdmin
Learn how to export a database in cPanel or DirectAdmin with phpMyAdmin and save a safe copy of your website in just a few steps.
Introduction
Exporting a database is useful when you want to create a backup, migrate your website, save a version before major changes or move information to another server.
The exported file is normally a .sql file containing the database structure and, depending on the chosen options, its records as well.
What exporting a database means
Exporting a database means creating a downloadable copy of its content.
That file can be used to:
- Save a manual backup.
- Migrate a website to another hosting service.
- Restore information later.
- Review data outside the server.
- Keep a version before updating WordPress, Joomla or another application.
How to export a database from cPanel
- Sign in to cPanel.
- Open phpMyAdmin.
- Select the database from the left menu.
- Open the Export tab.
- Choose the export mode and format.
- Download the generated file.
How to export a database from DirectAdmin
- Sign in to DirectAdmin.
- Open the MySQL or phpMyAdmin access section.
- Choose the database.
- Open the Export tab.
- Configure the export and download the file.
How to export a database from a full backup
In some cases, a full backup may also contain the database copy together with the website files, depending on how the backup is generated.
Useful tips
- Save the exported file in a safe place.
- Name the backup clearly with date and project.
- Make exports before major updates or migrations.
Frequently asked questions
Which format should I choose when exporting a database?
The most common and useful format is SQL.
Does exporting a database delete information from the hosting account?
No. Exporting creates a copy; it does not remove the original data.
Can I use this copy to migrate my website?
Yes, it is often part of the migration process.
How often should I export my database?
It depends on how often the website changes. Active projects benefit from more frequent backups.
Conclusion
Exporting a database from cPanel or DirectAdmin is one of the most useful maintenance and backup tasks you can perform for your website.