Mysql logs are stored in all kinds of logs in any database, recording all aspects of the database's work, to help the database administrator track various events that have occurred in the database. In mysql, there are four different types of logs,
MySQL Log managementError logInformation in the server startup and shutdown processError message during server runInformation generated when the event Scheduler runs an eventInformation generated from the server process when it is started from the
MySQL Log managementError logInformation in the server startup and shutdown processError message during server runInformation generated when the event Scheduler runs an eventInformation generated from the server process when it is started from the
Briefly:The method of analyzing the performance of MySQL statement query in addition to using the EXPLAIN output execution plan, you can also let the MySQL record query over a specified time of the statement, we will exceed the specified time of the
MySQL has a function is log down to run the slower SQL statement, the default is not this log, in order to open this function, to modify the my.cnf or in the MySQL boot when the add some parameters. If you modify inside the MY.CNF, add the following
Open a common query logthe general log will not open for performance reasons. Slow log can locate some performance-related SQL, and general log logs all of the SQL.
mysql5.0 version, if you want to open slow log, general log, need to restart,
Technical preparationHosted under the Ubuntu14.04.2 platform, based on the MYSQL5.5.46 version.Log files record the various types of MySQL database activities, as a daily location problem of the most common analysis means, MySQL database commonly
Database is a very important part of information system, it is very important to manage it reasonably and efficiently. Typically, the total administrator creates different administrative accounts, and then assigns different operational permissions
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
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
The MySQL log file is divided into 4 types: error log, universal query log, slow query log, and binary log.1. Error log: Log The problem that occurs when the MySQL server starts, runs, or stops.(1) Start and set error logThe error log feature is
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
Mysql Log, where is the mysql Log File?
Mysql logs are classified into binary logs, error logs, general query logs, and slow query logs. Binary log: records database operations in the form of binary files, but does not record query statements. Error
Mysql Log learning SummaryI. Log introduction mysql logs are mainly divided into four types. Using these log files, you can view what happened in mysql. These four types of logs are: error logs record problems that occur when mysql service is
One, using the MySQL slow query log location to execute inefficient SQL statements.When MySQL uses the slow query log to locate those SQL statements that perform less efficiently, and start with the--log-slow-queries[=file_name] option, Mysqld
Objective:
Keep Empty cup spirit, use performance analysis, focus on measuring server time spent where, think 1, how to confirm that the server has reached the best performance state, 2, why a statement is not fast enough, the diagnosis is
The essence of indexing is to filter out the final desired results by shrinking the range of data that you want to get, and to turn random events into sequential events, that is, with this indexing mechanism, we can always use the same lookup method
An introduction
The principle of two indexes
Three-indexed data structures
Three MySQL index management
Four Test indexes
Five correct use index
Six query optimization artifact-explain
The basic steps of seven-slow query
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.