MySQL remote backup script

Source: Internet
Author: User
When a remote server backs up Mysql, the remote server does not have a Mysql database installed, and the backup mysqldump command cannot take effect. Therefore, you can install the mysql database

When a remote server backs up Mysql, the remote server does not have a Mysql database installed, and the backup mysqldump command cannot take effect. Therefore, you can install the mysql database

When a remote server backs up Mysql, the remote server does not have a Mysql database installed, and the backup mysqldump command cannot take effect. Therefore, you can copy the mysqldump.exe (for example, mysqldump.exe in C: \ Program Files \ MySQL Server 5.0 \ bindirectory) installed in the mysqldata Library Server to a directory on the remote Server (for example, F: \ MySQLBackup ).

For example, if the file name is PersonBackupMonday. bat, double-click the file. Alternatively, you can use the windows Task Plan to regularly execute the file.

The file content is as follows:

Cd F: \ MySQLBackup

F:

Mysqldump-h ip-uusername-ppassword dbname> F: \ MySQLBackup \ PersonBackupMonday. SQL

Username: Database User

Password: Database password

Dbname: Database Name

Recover data: You can copy the data to the database server.

C: \ Documents ents and Settings \ Administrator> mysql-u username-p

Password: password

Mysql> use dbname;

Mysql> source F: \ MySQLBackup \ PersonBackupMonday. SQL

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.