MySQL backup data

MySQL backup data

 

There are several basic methods:

1. Use navicate MySQL directly to directly back up data and structures.

2. Create a new db and synchronize the structure and data of the source database.

3. Back up the data on the MySQL server and transfer it locally.

 

 

MySQL server backup data

 

1. Go to the bin folder of the MySQL installation directory

2. Execute ./mysqldump -u root -p hsbc_payme > /home/bak/hsbc_payme.sql to back up the database to the target directory

3. Enter the password of the linked database. Note that you cannot see the password under Linux. Don't think that you have not entered it.

4. Wait for the backup to succeed

 

 

transfer data to local

 

Method 1: Use winSCP to directly drag the file to the local

Method 2: Using lrzsz, you can use the command: sz fileName to transfer data to the local path

 

Installation, configuration and use of lrzsz:

http://www.111cn.net/sys/linux/67810.htm

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326439066&siteId=291194637