Backing up your MYSQL database via phpmyadmin

Modified on Thu, 30 Jan 2020 at 10:10 AM

Your WP site need core files (mostly .php files) and a database (.sql file) in order to function correctly. Wordpress strongly suggests that you make a backup of your site core files and database (.sql) each time a major change is made to your site. You should always have backup copy of core files and database (sql) file stored on your computers hard drive in case of WP failure, unintended changes or security breach of your site. Backing up your WP core files is easy. Just connect to the site with an ftp program like Filezilla and download them. Store them in a folder on your hard drive. Backing up your database via phpMyAdmin is even easier, instructions below. phpMyAdmin is a web based control panel for managing databases. You can access phpMyAdmin by logging in with your database username and password at If you do not know your database username and password, simply connect to your site via FTP (Filezilla) and open the wp-config.php file. This is the file that connects your WP core files to your database which is stored in phpMyAdmin at This is what your wp-config.php file looks like. 


Use the database username and the database password to log in at 

One you have logged in, click on databases at the top of the page. 

Then look for the database you wish to backup. There may be a list of databases but in this example there is only one. You will want to view all tables of the database, to do this, click where the red arrow indicates. 

You will now see all of your database tables. Click on "Check All" then select "Export" from the drop-down menu to the right. 

Selecting "Export" will redirect you to another page. From there, do not select anything, simply click "Go." 

Your database will be downloaded as an sql file. In this example, the file will be called "databasename_com.sql.' You'll want to save that file on your computers hard drive. If you want to import your database, you will first need to drop all the tables. Log in to phpMyAdmin at and click on "Databases." 

Select the database that you want to work with by selecting it. 

Click on "Check All" then select "Drop" from the drop-down menu on the right. 

Confirm that you want to drop all of your tables. This will empty your database. Only do this if you are sure you have backed up your database. To import a database. Browse to your database by Logging in at Click on Databases and select your database name. Click on the Import button at the top of the page and use the "Choose File" button to locate your .sql file located on your computers hard drive. Once you have located the .sql file, click "Go" at the bottom of the page. 

Your backed up database (.sql) file has been imported. 

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article