If you want to disable binary mysql logs, you can. ini to the log-bin line comment out to clear the binary log, in mysql enabled the binary log state, log on to mysql as root after executing one of the following two commands: PURGEMASTERLOGSbefore202
How to check and analyze logs under Freebsd is still a new topic for me. I haven't processed it before, and I don't even know where the logs are stored or how to record them.
There are some good information on the network. mysql manuals can also
MySQL log-slow query log (slow-query-log)Slow query log: All SQL statements that run longer than long_query_time in MySQL slow query log records help you find slow SQL statements, so that we can optimize these SQL statements. Slow query log
Using mysqlsla to analyze mysql logs bitsCN.com using mysqlsla to analyze mysql logs mysqlsla is a MySQL log analysis tool launched by hackmysql.com. it can be used to analyze mysql slow query logs and analyze slow queries, it can analyze the
Some time ago, my work on the project was very busy. Recently, I have to make department adjustments to start a new project. I am very excited to learn a lot of new knowledge. I came back from work today and checked the VPS status. I found that the
Mysql log type bitsCN.com
1. [Error Log] --- record problems that occur when mysqld is started, running, or stopped
You can use the -- log-error [= file_name] option to specify the location where mysqld saves the error log file. If the file_name
(I) What is it?
Records detailed information about MySQL server startup and shutdown, and severe warnings and errors during running.
mysql> show variables like 'log_error';+---------------+---------------------------------+| Variable_name | Value
MySQL Log File Type
Introduction:
MySQL provides various types of log files that reflect different MySQL information and are necessary to understand them.
1. Error log (Error log)
The error log records all severe warnings and error messages during
Use of MySQL Log and mysqlbinlog Tool
View log-related global variables:Mysql> show global variables like '% log %'
Modify related variables:1. For a function, use set global xxx = xxx.2. For file operations, you can only modify the configuration
Mysql-log-Basic Knowledge
1. log types:
MySQL has the following types of logs:Error Log:-log-errQuery log:-LogSlow query log:-log-Slow-queriesUpdate log:-log-UpdateBinary log:-log-bin
2. Whether logs are enabled
Mysql> show variables like 'Log _ % ';
After installation Lnmpa slowly focus on optimization, the first is to delete the MySQL log, delete mysql-bin.0000* similar files look irritable.View Source code Printing HelpLogin
The code is as follows
Copy Code
1. First confirm that your log is enabled
Mysql>show variables like ' log_bin ';
If enabled, that is, the log file is in the MySQL installation directory in the data directory
2. How to know the current log
Mysql> Show master
LNMP installation of a key install the MySQL default is to open the log file, if the data operation is more frequent will produce a lot of log, under/usr/local/mysql/var/produce mysql-bin.0000* similar files, And generally in dozens of MB to several
LNMP a key package installed MySQL default open MySQL log, if the site on the database read and write more frequently may generate a large number of logs, and occupy disk space, but also may lead to the VPS's hard disk idle space consumption full
00–undo LogUndo log is for the atomicity of transactions, in the MySQL database InnoDB storage engine, also with the undo log to achieve multi-version concurrency control (abbreviation: MVCC). -Atomicity of the transaction (atomicity)All operations
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
MySQL can configure the generation of binary log filesVisible in/ETC/MY.CNFLog-bin=mysql-binFiles visible under the MySQL path:to set the number of saved log files :Modifying/etc/my.cnf in the configuration file requires the restart of MySQL to take
Log in to MySQL terminalLog file pathMysql> Show variables like ' general_log_file ';+------------------+------------------------------------+| variable_name | Value |+------------------+------------------------------------+| General_log_file | /usr/
Mysqlbinlogis what ?The following files are in the data directory: mysql-bin.xxxxxxfunction ?Record database internal additions and deletions to check MySQL database for updated content recordsthree different modes ?statement level mode: 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.