Shell script batch export MYSQL database logs automatically export MYSQL binary logs locally, backed up by day
Mysqlbinlog
A tool that reads statements from binary logs. Logs of executed statements contained in the binary log file can be used to
Mysql-14-mysql log management, mysql-14-mysql logs
1. Introduction
The log file records the changes that occur during the running of the mysql database, such as the client connection status of the mysql database, SQL statement execution status, and
MysqlbinlogA tool that reads statements from binary logs. Logs of executed statements contained in the binary log file can be used to help recover from a crash. I. MYSQL database logs:1. error log:-log-error2. query logs:-log3. slow query
Actually:
First, use Windows as the environment:
Logs in Windows
Overview of log file types:1.The error log records the problems that occur when you start, run, or stop mysqld.My. ini configuration information:# Enter a name for the error log file.
A basic tutorial on querying logs and slow query logs in MySQL,
I. query logs
Query all the queries in MySQL by using "-- log [= file_name. Because all the queries, including all the select statements, are recorded, and the size is relatively large,
Mysql logs start and view the following types of mysql logs:
Error log:-log-err
Query log:-log
Slow query log:-log-slow-queries
Update log:-log-update
Binary log:-log-bin
By default, all logs are created in the mysqld data directory. By refreshing
This article describes how to query logs and slow query logs in MySQL. It also describes how to use the Mysqldumpslow log analysis tool that comes with MySQL. For more information, see
I. query logs
Query all the queries in MySQL by using "-- log [=
This article describes how to view and import and export MySQL logs in Windows, if you need it, you can refer to MYSQL with different types of log files (each storing different types of logs), from which you can find out what MYSQL has done, these
MySQL backup solution-amp; gt; (using mysqldump and binlog binary logs) mysqldump
BitsCN.com
MySQL backup solution --> (using mysqldump and binlog binary logs)
As data increases and the innodb storage engine is compatible with the future, 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.