MySQL backup script and mysql script. MySQL backup script, mysql script mysqlbackup. php :? Php backup mysqlset_time_limit (0); date_default_timezone_set (PRC); configuration $ configsarray (host1array (localh MySQL backup script, mysql
1. Why back up the database?
Backup is the most important and easy to ignore for databases. Unexpected events may cause serious losses.
The more important the data is, the more frequently the data changes, and the more frequently backup is
MySQL Backup solution--(using mysqldump and Binlog binary logs)As data continues to grow, and in order to be compatible with future InnoDB storage engines, consider the strategy of mysqldump full + log incremental backup. Using mysqldump is good
MySQL backup script and mysql script
Mysqlbackup. php:
array ('localhost', 'root ', 'root', array (), // empty to back up all databases; otherwise, back up these databases 'd:/xampp/mysql/bin/mysqldump ', // backup tool dirname (_ FILE __).
from:http://blog.csdn.net/mchdba/article/details/11575605As data continues to grow, and in order to be compatible with future InnoDB storage engines, consider the strategy of mysqldump full + log incremental backup. Using mysqldump is good support
You can put this script into the crontab, his configuration file in the/etc/crontab every morning, the automatic backup of this script only once a day, and keep only the last five days of backup on the server.
The code is as follows
Database Common backup scheme
1. Full-scale backupRefers to a full copy of all data or applications at a given point in timeAdvantages: Fast Data recoveryCons: Long backup times
2. Incremental backupmeans that after a full backup or a
Since we started learning to build stations, whether we are using a free virtual host, or scraping the pay of the purchase of the host, and our larger projects need to turn to VPS or server storage; whether we are technical trained or old left, See
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.