This article describes the MySQL backup and log, because the backup needs to use the log, so before the backup, if the log content is too long, will be the log and backup separately, the first simple introduction of MySQL log related content.MySQL
The SQL standard defines a Class 4 isolation level, which includes specific rules to define which changes within and outside the transaction are visible and which are not. Low-level isolation levels generally support higher concurrency processing
Binary Log incremental backup Database The tools used are: mysqlbinlog;This is available after version 5.1.Simple configuration, go to MySQL directory first: C:\Program files\mysql\mysql Server 5.5 is the directory where My.ini resides;Modify My.ini:
MySQL uses Binlog incremental backup to restore instancesZhang Ying published in 2010-09-29Category directory: MySQLOne, what is incremental backupAn incremental backup is a backup of the newly added data. If you have a database, 10G of data, every
Mysqlbinlog command---parse Mysqlbinlog logs from the MySQL website with toolsWhat is the role of the Binlog log?Used to record MySQL internal additions and deletions to the MySQL database updated content (check is not recorded)How to turn on
As a DBA, careful, calm is the primary basic quality. However, there will always be a distraction or the development of the students in the wrong operation and so on ... This simulates a false update operation and then resumes.If the development of
For the use of Mysqlbinlog tools, you can see the Help manual for MySQL. There's a detailed use in it,In this example, the emphasis is on the use of the--start-position parameter and the--stop-position parameter.--start-position=nStarts reading from
MySQL InnoDB manages and backs up binary logs (I) Importance of binary logs if there is data backup at a certain point in time and all binary logs since then can replay the binary logs since the last full backup and" roll back "all changes (ii)
Mysql binlog3 formats: row, mixed, and statement. Parsing
Mysqlbinlog -- base64-output = DECODE-ROWS-v mysql-bin.000144 | more
-- Base64-output = DECODE-ROWS: displays the SQL changes brought about by row mode.
-V: displays SQL statements in
For the use of the mysqlbinlog tool, you can refer to the MySQL help manual. It has detailed usage,
In this example, the focus is on the use of the -- start-position parameter and -- stop-position parameter.
· -- Start-position = N
Read from the
MySQL uses binary logs to restore the database
1. Introduction to binary logs
MySQL has different types of logs, in which the binary file records all changes to the database. If the database loses data due to improper operations or other reasons, it
Introduction to the one or two binary logMySQL has different types of logs, where binaries record all modifications to the database, and if the database loses data because of improper operation or other reasons, it can be recovered by binary
MySQL Binary log is often said to Bin-log, is the MySQL implementation of changes generated by the binary log file, its main role is two:* Data reply* Master-slave database. For the slave end to perform additions and deletions, keep sync with master.
MySQL binary log is often said to be the Bin-log, is the MySQL implementation of the changes produced by the binary logging file, its main role is two:* Data reply* Master-slave database. For the slave side to perform additions and deletions to
As the volume of business grows, tables may need to be split to improve performance.
The following example splits the Www.jb51.net users table into 10 table ttlsa_user_0-ttlsa_user_9.
The split migration data program looks like this:
1. Create
MySQL binary log is often said to be the Bin-log, is the MySQL implementation of the changes produced by the binary logging file, its main role is two:* Data reply* Master-slave database. For the slave side to perform additions and deletions to
three ways to restore MySQL backup based on mysqldump, LVM2, Xtrabackup, respectivelyFirst, the use of mysqldump implementation of logical backup operations1. In/etc/my.cnf, add the following to open the binary logInnodb-file-per-table = OnSkip-name-
MySQL binary log is often said to be the Bin-log, is the MySQL implementation of the changes produced by the binary logging file, its main role is two:* Data Recovery* Master-slave database. For the slave side to perform additions and deletions to
Mysqlusetest1; ReadingtableinformationforcompletionoftableandcolumnnamesYoucanturnoffthisfeaturetogetaquickerstartupwith-ADatabasechangedmysql
mysql> use test1;Reading table information for completion of table and column namesYou can turn off this
-bash:mysqlbinlog:command not foundFirst you need to know the full path to the MySQL command or mysqldump command, and you can use the Find command to findFind/-name Mysql-printMy MySQL path is:/usr/local/mysql/bin/mysql, then map a link to
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.