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
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.
If you are a web developer and want to debug your application or improve its performance, you need to refer to various log files. Logs are the best choice for troubleshooting. For the famous MySql database server, you need to refer to the following
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,
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 [=
Detailed explanation of the correct deletion method of MYSQL logs and detailed explanation of mysql logs
This article describes how to delete MYSQL logs in detail. We will share this with you for your reference. The details are as follows:
1. Search:
If you are a web developer. If you want to debug your app or improve its performance, you need to go to a variety of log files. Logging is the best choice to start troubleshooting. As far as the famous MYSQL database server is concerned, you need to
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
If you are a web developer, if you want to debug your app or improve its performance, then you need to refer to various log files. Logging is the best choice to start troubleshooting. As far as the famous MYSQL database server is concerned, you need
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.