Implementation principle of mysqldump and implementation principle of mysqldump
MySQL backup can be divided into the following two types:
1. Cold backup
2. Hot Standby
Among them, cold backup, as its name implies, is to turn off the database and use
MySQL replication is asynchronous, that is, non-synchronous. It does not verify data consistency in the database, as long as the SQL syntax is correct and there is no error, it can be successfully executed.
MySQL replication is asynchronous, that is,
We can understand the rationale behind mysqldump by opening the general log and looking at the commands executed during mysqldump full library backup.Open General Logmysql> set global general_log=on;Where the general log's storage path can be viewed
MySQL can specify the Auto_increment property on the column when the table is created, and the IDENTITY property in SQL Server, and Oracle is implemented in sequence way. In MySQL, the system variable Auto_increment_increment,auto_increment_offset
Mysqldump Backup is convenient, easy to read, feature rich, I believe everyone has used this command for backup, but this command in the process of the backup did write what, the following open General_log to view: 1. Log in to the MySQL
MySQL replication is asynchronous, that is, a unsynchronized process that does not validate the consistency of data in the database, as long as the SQL syntax is correct and there is no error to execute successfully
Mastertest 12:20:40>create Table
I. Logs and their descriptions1. Error logPrimary record server startup and shutdown information during server run error message, the transaction scheduler runs an event that is generated by the log information that starts from the server from the
For MySQL backup, it can be divided into the following two kinds:1. Cold Standby2. Hot standbyAmong them, cold, as the name implies, is to turn off the database, using operating system commands to copy database related files. The hot standby refers
The binlog of mysql database is garbled as follows: BINLOG 'logs + UpA. if-v
We found that the binlog of # wiki/1160.html "target =" _ blank "> mysql database is garbled, as shown below:
Backup and restore are most important when you are transporting a database. Today, we tested backup and restore using Pg_dumpall.
Backup Restore method: Pg_dump and Pg_restore, first carefully explain these two commands
Back up the database,
Mysqldump backup principle mysqldump in the backup process, is to use the query to back up the relevant table data, and then export, stitching into the form of INSERT statements for backup. about the--single-transaction
Really did not think, has been the user of PostgreSQL, suddenly need a library transplant has become the first trick! Originally it was quite different from the MySQL command line operation.Don't be afraid, but be careful, because database operation
Using Mysqlbinlog to recover data2009-04-05 12:47:05Tags: mysql mysqlbinlog restore Database Data original works, allow reprint, when reproduced please be sure to use hyperlinks in the form of the original source of the article, author information
Mysqlbinlog parsing binlog garbled issue decryption
The binlog of mysql database is garbled as follows: Binlog'Ixzqvhniaaaalqaaagcbaaaaahoaaaaaeabhrlc3qaano0aaedaabuocnyIxzqvh5iaaaakaaaai8baaaaahoaaaaaeaagab // 4 BAAAAcu + UpA =. If you use-v to
Using Mysqlbinlog to recover data2009-04-05 12:47:05Tags: mysql mysqlbinlog restore Database Data original works, allow reprint, when reproduced please be sure to use hyperlinks in the form of the original source of the article, author information
A sample that can jump directly to the last face to view Really did not think, has been the user of PostgreSQL, suddenly need a library transplant has become the first trick! Originally it was quite different from the MySQL command line
Like most relational databases, log files are an important part of the MySQL database. MySQL has several different log files, usually including error log files, binary logs, generic logs, slow query logs, and so on. These logs can help us locate
MySQL Backup and recoveryTypes of data backups1. Physical BackupCold backup: A backup operation performed in a database shutdown state.Hot backup: A backup operation when the database is in a running state, which relies on the log files of the
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.