MySQL Data folder appears mysql-bin log file, through my.cnf comment out log, can delete it?ReferenceHttp://database.51cto.com/art/201107/278988.htmThe source and processing method of mysql-bin.000001 file are introduced in detail.In MySQL database ,
Log
Categories of MySQL logs:
Server logs
Records special events during the process startup process, helping to analyze problems that the MySQL service encounters.
Capture specific SQL statements as needed to
MySQL has 4 different logs, namely, binary log, query log, slow query log and error log, these diaries record all aspects of database work, can help us understand the different aspects of the database traces, the following first describes the role
Mysql Log error log: Log mysql server startup, shutdown, and run errors and other informationBinary log: A binary file that records all operations except select in the database (the most important log)Query LOG: Record query informationSlow query
This article is about MySQL database InnoDB storage engine redo log roaming00–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
Preface After the installation of MySQL, there must be some tuning of MySQL's various parameter options. Although the MySQL system is highly scalable, it can run efficiently in a very sufficient hardware resource environment, and can operate well in
MySQL log: (The following are all bit global server variables)MySQL > show global variables like '%log% ';MySQL 6 Class Log Brief introductionQuery log: Default is off (generates a lot of writes) All query-related statements Slow query log: Query
I. Configuration file Classification and parameters
Error log
Error during database start-stop, exception during run.How to Save: fileEnabled by: No switch parameter enabled, default onRelated parametersFile location parameter
MySQL log mainly includes: error log, query log, slow query log, transaction log, binary log;
Log is an important part of MySQL database. The log file records the changes that occurred during the MySQL database operation, that is, the client
Overview
Log files are an important part of the MySQL database. MySQL has several different log files, usually including error log files, binary logs, common logs, slow query logs, and so on. These logs can help us locate events within MYSQLD,
Log in to MySQL terminal log file path mysql> show variables like ' general_log_file '; +------------------+------ ------------------------------+| variable_name | value |+------------------+------------------------
By default, MySQL will keep the mysql-bin file, so that at some point, the disk may be full, whether it is possible to delete these files, whether it can be safely deleted, is a problem.First of all, these files are MySQL log files, if not the
1 , query loglog={on| OFF}: Log information for all statements is logged in the General query log file (General_log);log_output={table| file| None},table and file can appear at the same time, separated by commas.General_log: Whether query logging is
First, the theory:1. Error log:A. Records information about when the mysqld starts and stops and when the error occurs, which can be viewed first when a database failure causes it to fail to start.B. Use--log-error to specify where mysqld save the
ObjectiveAfter the installation of MySQL, there must be some tuning of MySQL's various parameter options. Although the MySQL system is highly scalable, it can run efficiently in a very sufficient hardware resource environment, and can operate well
1. Error log(1) Description of error logError log: Log the error message encountered by the MySQL service process mysqld during Auto/close or travel(2) Adjustment of error logCheck the error log inside the MY.CNF configuration file
Open binary log (binary log content: Change the operation of the database)In the/ETC/MYSQL/MY.CNFRemove the comment from the Log_bin line to open the following is the saved pathThe following expire_logs_days is how long, MySQL automatically deletes
1.error Log
Error log, log the problem that occurs when the MySQL service starts, text file[Mysqld_safe] #注意是写在这里Log-error=/var/log/mysqld/mysql-error.log --mysqld folder to be present and chown mysql The log cannot be turned off2.access
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.