Tags: mysql status master
Mysqldump Full-scale backupWeekly executionMysqldump-uroot-p--flush-logs --single-transaction --all-database >/home/1.sql
Incremental backupWhen an incremental backup is requiredMysql>flush logsMysql>show Master status;As shown mysql-bin.000005Backup mysql-bin.000004 can
When restoring, restore the full amount of
Select INTO Statement data table full table copy backup
The SELECT INTO statement is often used to create a backup copy of a table or to archive records.
SQL SELECT INTO syntaxYou can insert all the columns into the new table:
SELECT *into new_table_name [in Externaldatabase]From Old_tablenameOr just insert the desired column into the new table:
Select COLUMN
a disk image file, you perform compression:dd if=/dev/sda | gzip > disk.img.gzdd if=/dev/sda | bzip2 > disk.img.bz2That's good! Ghost has all the features.2. Partition cloningIf we don't want to clone the entire disk and just want to back up some of the partitions that hold the data, you'll need to clone a partition. As stated in the preliminary knowledge, partitioning is also a file under Linux. For exampledd if=/dev/sda1 of=~/part1.imgThe first partition of the first disk is backed up into a
#!/bin/bash# #WEB页面, Web Environment version, database, full station backup script # when there is a reason why the entire server cannot be recovered, use the relevant data backed up above to redo the same server date_a= ' date+%y%m%d-%h% m%s ' Mkdir-p/web_bak/${date_a}/conf>/dev/nullmkdir-p/web_bak/${date _a}/web>/dev/nullmkdir-p/web_bak/${date_a}/mysql>/dev/null The configuration file under the #/etc dire
Recover a library and a table from a MySQL full-library backupOne, full library backup-a[[Email protected] backup] #mysqldump-uroot-p123456--default-character-set=utf8--single-transaction-- Extended-insert=false--hex-blob--master-data=2--log-error=/tmp/test.err--routines--triggers--events--quick-- Flush-logs--all-datab
Run {authorization; allocatechanneld2typedisk; allocatechanneld3typedisk; allocatechanneld4typedisk; allocatechanneld5typedisk; allocatechanneld6typedisk; Authorization
Run {allocate channel d1 type disk; allocate channel d2 type disk; allocate channel d3 type disk; allocate channel d4 type disk; allocate channel d5 type disk; allocate channel d6 type disk; backup as compressed backupset database include c
Too many run {
Allocate channel d1 type disk
Tags: databases binlog linux mysql FTP backupScripting features: MySQL library backup script, full standby and Binlog log backupThe script can be fully prepared according to the specified parameters, and the remaining time to back up the Binlog log---------------#!/bin/bash #description:trianserverbackupdatabases #revisionon 2016-02-18 #bycolin # #################################### # Feature Description: T
Library small, about 16G, daily increment is very small, less than 100M, so with mysqldump daily full-scale backup, the backup result information sent to the email notification DBA.mysqlallbackup.sh: MySQL DataBase full Backup.# Use mysqldump--help get more detail.# 20.20.21
Ghost is not able to do a full backup of the hard drive, or to back up the UNIX Linux special file system, only by using a bitwise backup to fully mirror all the data on the source device. However, this type of bitwise (sector) backup software is generally not commonly used, then I will write a simple wizard-style tuto
';Restore Controlfile from ' control file name ';}Recovering a database fileThe database is in Mount State (Startupmount).Log in to Rman runRun {ALLOCATE CHANNEL CH00 TYPE ' Sbt_tape ';SEND ' nb_ora_serv= NBU server name , Nb_ora_client=h Source Oracle Server client name ';Restore database;}Recover archived Logs (if you only need to resume playing a full backup, do not)Log in to Rman runRun {ALLOCATE CHA
';restore Controlfile from ' Control File name ';}Recovering a database fileThe database is in Mount State (Startupmount).Log in to Rman runRun {ALLOCATE CHANNEL CH00 TYPE ' Sbt_tape ';SEND ' nb_ora_serv= NBU server name , Nb_ora_client=h Source Oracle Server client name "; Restore database;}Recover archived Logs (if you only need to resume playing a full backup, do not)Log in to Rman runRun {ALLOCATE CH
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/87/F9/wKioL1fmI3vD8aEIAACH7C0ZO3w479.png "title=" Data recovery. png "alt=" Wkiol1fmi3vd8aeiaach7c0zo3w479.png "/>data recovery schematic diagramTest environment MySQL5.51 first create a new database Lampol data table testCreate Database Lampol;Use Lampol;CREATE TABLE test (ID int (ten), name varchar (10));2 Inserting data informationINSERT into test values (1, ' lampol1 ');INSERT into test values (2, ' lampol2 ');3 post-Insert informati
, baseband, power on logo.img, replace the boot animation, replace the first screen 8, one-click RestoreBoot.img, recovery.img, baseband, boot logo.img, replace the boot animation, replace the first screen 9, integrated one-click Delete System area application, orData Area Application 10, fast shutdown, fast restart, fast access to recovery mode11, one-clickRoot MTK Fast research almost, will update up to 12, followed by a key to clean up the memory, and one-click Start Management. (Everyone kee
Recover database files to be prepared: Rman full backup (including data files, log files, control files, parameter files), record source database dbid
First, install the database Oracle database software and create the same data file directory, log file directory, and control file directory as the source database server by creating the same name as the source database and database SID and modifying the data
.dbf ';Set newname for datafile 5 to '/u01/oracle/oradata/hanmi/bjhanmi01.dbf ';Set newname for datafile 6 to '/u01/oracle/oradata/hanmi/gsp01.dbf ';Set newname for datafile 7 to '/u01/oracle/oradata/hanmi/unia01.dbf ';Set newname for datafile 8 to '/u01/oracle/oradata/hanmi/sfa01.dbf ';Set newname for datafile 9 to '/u01/oracle/oradata/hanmi/rmkunia01.dbf ';Set newname for datafile 10 to '/u01/oracle/oradata/hanmi/hmp01.dbf ';Set newname for datafile 11 to '/u01/oracle/oradata/hanmi/test01.dbf
table, the age is equal to 25 years old, and the address is Beijing or Shanghai, such people's wages increase 15%5, the Customers table, the city for Beijing's customers, in descending order of wages, and only return the results of the first record 6. Select the information of the customer with the lowest wage c_salary7. Find out the record details of which products have been purchased by customers with a salary greater than 50008. Remove FOREIGN Key restrictions9. Remove Customers primary key
MySQL%Date:~0,4%-%Date:~5,2%-%Date:~8,2% % Time:~0,2%:% Time:~3,2%:% Time:~6,2% >>log.log:: Shut down MySQL service net stop mysql:: Copy data directory xcopy%datapath%%srcpath%\/E/y:: Open mysql service net start MySQLEchoBauckup MySQL finish%Date:~0,4%-%Date:~5,2%-%Date:~8,2% % Time:~0,2%:% Time:~3,2%:% Time:~6,2% >>log.log:: Compress the database file and delete"C:\Program Files\winrar\winrar.exe"A-r-ep2-ibck-inul-DF-T%srcpath%.rar%srcpath%EchoCompress MySQL data finish%Date:~0,4%-%Date:~5,2
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.