Skip to main content

how to backup and restore database in mysql

MySQL is one of the most famous opensource database. To transfer the database from one system to another you need to take the backup of the database from the source system and restore it on the target machine.  In this post i am going to explain how to backup and restore a database on MySQL database.
Ads by Google 



First you need to install the MySQL GUI tool called the MySQL Query browser for make this process easier. You can download it from here.
Steps for backup a database.

Step 1:
           Login on MySQL Query browser.

Step 2:
           Click the Tools option on the menu bar and choose MySQL Administrator.
mysql database backup

Step 3:
         Select the Backup option from the MySQL Administrator window. 
restore mysql database
  
Step 4 :
        Click the 'New Project" button at the bottom of that window and select the database / databases you want to backup and add them into the backup content.
MySql database in mysql query browser

Step 5:
         Click the "Execute Backup Now" button at the bottom of that window and save the backup file in any location of your computer.

Steps for restore a database.

Step 1:
          Follow steps 1 & 2 given above.

Step 2:
          Select the restore option.
project data backup

Step 3:
       Click the "Open Backup File" button at the bottom of the window and choose the backup file. If the file is not shown the choose the all file type.

Step 4 :
           Finally click the "Start Restore" button. After the restore refresh the database you can see that the database restored successfully. 
Watch Video Tutorial of this Topic

Comments

Popular posts from this blog

Android MySQL Database Operations

In this post we are going to learn about how to connect to MySQL Database from your Android Application and perform database operations. Here we create an android app that contain some login Activity through which the user can retrieve information from database and a registration Activity through which the user can add information into the database.  First you need to have the following components installed in your development machine.  1. Database : Here we use the MySQL database. 2. Web Server : Here we use the Apache Web Server. 3. Server side Scripting Language :   Here we use PHP for server side scripting. 4. Android Development environment : You must install android sdk and android studio.   I recommend you to download and install WAMPSERVER. The wamp server installer contains the following components. Apache Server Application MySQL Database PHP/phpMyAdmin First we have to create the database and table in MySQL. You can use the...

Schedule Android Background Job Using Firebase JobDispatcher

From Android version 8.0 (Oreo) on wards there are limitations in executing background services and there are some limitations in receiving certain broadcasts. The android team implement all these restrictions to improve app performance and device battery life. If your app target API 26 then you have to consider some other mechanisms to do your background job.  Fortunately there is JobScheduler API that solve the problem regarding the background job limitations in newer versions of android. Google suggests Android App developers to use the JobScheduler API for their background job execution rather than using a background service.  But the problem is that the android framework JobScheduler API is available from android API version 21(Lollipop) and above. If your app support start from Lollipop and above then you can go for the framework JobScheduler API for your background job. If your App support start from android API lower than 21 then you can use the Firebase ...

"please correct the errors on this form" adsense error simple solution

Many of the bloggers now facing the problem with their adsense widgets. Whenever try to add the new  adsense link unit using the blogger widgets, it shows the error " please correct the errors on this form " as shown bellow. In blogger you can add the adsense units in two ways. First one is adding the adsense using the blogger widgets(Most of the beginners doing this) and the second method is to obtain the adsense code from the adsense login page and place it into the targeted position on the blog. To improve the revenue from adsense you have to place the appropriate ad unit into the right position. The adsense link units are very important for increasing the adsense revenue. So due to this error many of the bloggers are unable to place the link units.  Here is the solution for the problem. 1. Login into your adsense and blogger account. 2. Now make sure that only two adsense widgets (units) are present on your blog, this is because Google allows onl...