How to Restore MySQL Database Using phpMyAdmin

Written on January 24, 2017. Updated on November 09, 2017

Most WordPress hosts, including Kinsta, have automated backups which allow you to restore in case of an emergency. However, there might be times where you need to restore and or upload your own MySQL database manually. This could be because your migrating hosts or perhaps you want to do some local development. In any case, you can follow this quick and easy tutorial below on how to restore mySQL database using phpMyAdmin.

How to Restore MySQL Database Using phpMyAdmin

How to Restore MySQL Database Using phpMyAdmin

phpMyAdmin is a free open source tool available via your browser that is used to handle administration of MySQL or MariaDB. It can be used for all sorts of different operations, such as migrating databases, managing tables, indexes, and executing SQL statements. Today we are going to simply restore a WordPress mySQL database with phpMyAdmin.

Note: This tutorial assumes you already have a backup or exported *.sql file for which you will import. If not, see our tutorial on how to backup your mySQL database with phpMyAdmin.

Step 1

Login to phpMyAdmin. With Kinsta, we have an easy to access link to login to phpMyAdmin from within the MyKinsta dashboard. Depending on your WordPress host, this could also be located in your cPanel account.

login to phpmyadmin

Step 2

Click into your WordPress database. Most likely the name will correspond with the name of your site.

phpmyadmin wordpress database

Step 3

Click on the “Import” tab and then on “Choose file.” Select your *.sql file backup/export. And then click on “Go.”

Important! Importing your *.sql file will overwrite the current contents of your database. If you are not comfortable doing this, please check with a developer first.

mysql db restore import

Was this article helpful?
No, or there was something off

Hand-picked related articles

Send this to a friend