Shell simple full-backup mysql script case [root @ cacti mysql] # cat backup. sh #! /Bin/sh www.2cto.com # created by taiyang #2012-9-16 # function: backup mysql database # set local variablesDBname = backupBackupPath =/mysqlbak/DumpFile =$
This article to introduce a PHP using XML backup MySQL database instance, this method of personal think only small data volume, and security requirements are not high users.
Here is the file code for the backup of the MySQL database under Linux by
1. Required Software
The command line email tool in mutt Linux, which can be used to receive and send emails.
Sendmail/postfix on the mail server in Linux, all emails are sent from the Local Machine
MySQL database backup program
2. mutt parameter
Thinkphp uses Pclzip to package the backup MySQL database, thinkphppclzip
This example describes how Thinkphp uses Pclzip to package the backup MySQL database. Share to everyone for your reference, as follows:
Pclzip introduces the Pclzip Library's
(1) Ideas Install MySQL Database Create a database, table, insert data authorize a user name and password to back up the database Backup DATABASE commands: Mysqldump-u root-p 1234-d mysqldb > 1.sql introduce an If statement to make a backup of all
Percona xtrabackup backup MySQL (full backup and incremental backup)Xtrabackup IntroductionPercona Xtrabackup is an open source, free MySQL database hot backup software that can back up non-blocking databases for InnoDB and XTRADB storage engines
Demand: 1, backup MySQL data at 4 points per day; 2, in order to save space, delete more than 3 months of all backup data; 3, delete more than 7 days of backup data, retain 3 months of 10th number 20th number 30th of the backup data; #创建shell文件vim
Several ways to backup MySQLRecently have wanted to write some blog, but do not know what to write, feel that their recent knowledge has not increased, today I think of a blog can be written. Previously tried to backup MySQL according to the data
Construction of a high security E-commerce site (Web site files and database automatic local/remote dual backup) architecture diagram
Continue to introduce Linux server file backup, database backup, data security storage-related E-commerce system
First, Xtrabackup Introduction
A, Xtrabackup is what
Xtrabackup is a tool for data backup of InnoDB, which supports online hot backup (without affecting data reading and writing during backup), is a good substitute for the commercial Backup tool
Xtrabackup user guide bitsCN.com
1. Introduction to Xtrabackup
A. What is Xtrabackup?
Xtrabackup is a tool used to back up InnoDB data. it supports online hot backup (data read/write is not affected during backup) and is a good alternative to InnoDB
rsync+inotify Synchronizing backup MYSQL data Rsync has the advantages of high security, fast backup, support of incremental backup, and so on, which can solve the requirement of low real-time data backup. , but Rsync is not able to monitor and
First login to MySQL:mysql-u root-p Note: The default root password is empty after MySQL is installed, not the system root password> set password for ' root ' @ ' localhost ' = password (' * * * * * '); --Modify the root user's local password> Grant
1, backup MySQL data at 0 points per day;2, in order to save space, delete more than 3 months of all backup data;3, delete more than 7 days of backup data, retain 3 months of 10th number 20th number 30th of the backup data;#创建shell文件vim backup_mysql.
#!/bin/sh# Backup Database # Mysql user name Password mysql_user=rootmysql_pass=rootbackup_dir=/data/backup/mysqldata_dir=/data/backup/ dbdata# queries all database names in MySQL sql_string= "select Schema_name as db from INFORMATION_SCHEMA.
Innobackupex is a script inside the Xtrabackup package that uses different script commands for different versions of MySQL, as well as processing for the MyISAM engine and InnoDB engine, and handles MyISAM to add read locks on their own.Required
Back up the Mysql database using PHPXML. Use PHP to implement XML backup Mysql database favorites The following is the file code for Mysql database backup through Apache + PHP in Linux: File 1, Listtable. php
The following is the file code for
Linux command line backup mysql database
Back up MySQLDatabaseCommand
1
Mysqldump-hhostname-uusername-ppassword databasename> backupfile. SQL
[1] [2] [3] [4] [5] [6] [7] [8] [9] [10] Next page
[Statement]: the black bar
Use PHP to implement XML backup Mysql database favoritesThe following is the file code for backing up a Mysql database through Apache + PHP in Linux:File 1. Listtable. php (the file lists all tables in the database for backup)Select the table to
Welcome to the Linux community forum and interact with 2 million technical staff to access how to back up MySQL using PHP and send the website to your mailbox. Code: 1 #! Usrlocalbinphp. cli2? Php3require_once.libswift_required.php; 4MySQL5 $
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.