SQLyog (MYSQL graphical development tools)

Installation: Download a free installation of SQLyog, can be used directly

Use: Enter the user name and password, click on the Connect button to access MySQL database operations

In the Query window, enter the SQL code, check the SQL code to be executed, press the F8 key to run, run, or press the Go button

SQL Backup and recovery

 SQL Backup

Backup of the database refers to converting to the corresponding database file sql
MySQL backup command
format to export the database sql script:

mysqldump -u username -p password database name> Script file path generation

Note: The above command backup database requires a user name and password, which indicates that the command to be used in case the user is not logged in

Visualization Tools Backup:

Select the database, right-click "Backup / Export", specify export path, saved as a .sql file.

SQL Recovery

  Recovery of the database refers to the use of the sql file backup generate restore the database, sql statement execution is about to sql file can be restored database content.
MySQL command to restore
  a database backup command to back up only when the content of the database, sql file generated sql statement did not create the database, you need to create the database yourself before you restore the database.
Recovery outside the database
  format: mysql -uroot -p password database name <file path
to restore the database in the
  format: source SQL script path
Note: Use this mode to restore data, first log in to the database.

Visualization tool to recover

Database list area right "imported from the SQL database dump file", specify the SQL file to be executed, execution can be.

 

Guess you like

Origin www.cnblogs.com/qingmuchuanqi48/p/11130040.html