In the process of testing software test engineers, not only on the need to interface operation, also you need to check whether the data in the database correctly. So that when the software problem, to locate the cause of the problem. Therefore, testers need regular database operations.
When the database operation, the tester most afraid of is the data in the database because the "hand slip" cause data loss. If you lose, the worst case, give the company a loss; if not serious, but also make a personal impression of the company have a "do not care" of negative feedback.
If you can not completely solve the problem of data loss database, performing database operations testers believe the time is definitely "timid", with this attitude, how we can improve work? So let us not worry about the database is missing, we will elaborate on how the data is backed up and restored in navicat. This article will expand in accordance with the following steps:
- The first step, download the corresponding software from a network drive
- The second step, mysql client connections
- The third step, the query log state
- The fourth step, open the log
- The fifth step, view the log
- The sixth step, close the log
The first step - installing navicat
Goal: Download the complete Software + Software Installation
Step: downloaded from the Baidu network disk and install software directly navicat
download link:
Links: https://pan.baidu.com/share/init?surl=tLLNKTkcrtp4-H6BzwYx0w extraction code: 8e67
Tip: navicat testers during the operation of the database when a navicat the most commonly used software.
Installation: Baidu navicat the Web site to download the software, double-click the icon navicat software, all the way to the next step, the installation can be completed.
Step Two - navicat connection mysql
Target: client connection MySQL (putty can connect to the server using tools, can be used directly linux terminal)
Step: As shown below
Summary: Be sure to implement navicat client connections mysql, procedure is very simple.
The third step - need to operate a database backup
Goal: backup database test
Step: backup procedure is divided into two steps:
step1: the mouse to select the target database, right click and select "data and structure" for backup
Dump failed to re-upload canceled
step2: Name the backup file name, select Save path, save
Summary: Backup is very simple. Two steps to complete.
Step 4 - data recovery
Goal: If data is accidentally deleted, know how to recover data
Steps: the step of opening only the following three steps
step1: delete the test database (similar to the inside of accidentally deleted data, delete the database)
step2: New database backup
step3: will restore the backup data to the new database beifen
: Tips consistent with the new data warehouse, and be sure to "accidentally deleted" data warehouse character sets, collations.
Step 5 - Check the new data warehouse database
Goal: to check whether the data recovery success
Step: Check the following log is only step one step
to sum up
More than 5 steps that we use all of the steps navicat data backup and recovery. We come under review
The first step is to download the software from the Baidu network disk navicat. To lower after installation.
The second step, to make the connection Mysql navicat
third step, the backup data
fourth step, data recovery
fifth step, to see if the data recovery success
Well, according to our technical articles quickly to try to back up the database now. Master the method of backup, backup habit advance, no longer have to worry about the "slippery hand" led to the loss of data.