Exporting a database is a very common and useful task, whether for making a backup, migrating a website, or simply saving data for safekeeping. Here is how to do it step by step, from both cPanel and DirectAdmin, clearly and without complications.
💾 What does "exporting a database" mean?
Exporting a database means creating a file (usually .sql) that contains the entire structure and data of your database. You can save this file, move it, or import it later on another server.
✅ How to export a database from cPanel
-
Log in to cPanel
-
Use the username and password you received when you signed up for hosting.
-
-
Go to the "phpMyAdmin" section
-
It is usually found in the "Databases" group.
-
-
Once inside phpMyAdmin:
-
You will see a list of databases in the left panel.
-
Click on the database you want to export.
-
-
Then click on the "Export" tab (at the top).
-
Choose the export method:
-
Quick (recommended if you do not need to customize anything).
-
Format: leave it as SQL.
-
-
Click "Go".
-
The
.sqlfile will download automatically to your computer.
✅ How to export a database from DirectAdmin
-
Log in to your DirectAdmin account
-
Use your panel access URL (for example, yourdomain.com:2222)
-
-
Go to the "phpMyAdmin" section (also often found under "Advanced Tools").
-
A new tab will open with the phpMyAdmin tool.
-
In the left menu, select the database you want to export.
-
Click on the "Export" tab at the top.
-
Leave the "Quick" option selected and the format as SQL.
-
Click "Go" and save the file.
📌 Useful tips
-
Export frequently, especially if you make regular changes to your site.
-
Store the files in a safe place and, if possible, off the server — such as your computer or Google Drive.
-
If your database is very large, use the "Custom" method to split it or exclude temporary tables.
-
Always verify that you are exporting the correct database if you have more than one.
🛠️ What if I want to export from a full backup?
If you are using the automatic backups available on your hosting (such as those available at Bacan.com), you can:
-
Log in to your client area.
-
Request the restoration or download of the database from a recent backup.