Today, developers continue to develop and deploy applications that use lamp (linux®, Apache, MySQL, and Php/perl) architectures. However, server administrators often have little control over the application itself, because the application is written
MySQL slow log?MySQL's slow query log is a log record provided by MySQL, which is used to record a statement in MySQL that has a response time exceeding the threshold, which refers to SQL that runs longer than the Long_query_time value, and is
Files in MySQLParameter file: MySQL configuration file, save the configuration information of MySQL. File name my.cnfBy default, the MySQL instance reads the configuration file in a certain order in the specified file, and the user canMySQL--help |
PrefaceThis article summarizes several MySQL database logs, for the daily maintenance process problem solving and performance optimization, a slightly more basic, daily accumulation of use.Part of the article will be the MySQL database and the SQL
2.3 configure the query log output path starting from 5.1.6. MySQL provides a more flexible way to control the output and output paths of log files. MySQL standard logs (specifically general_log and slow_log) can be output to files and stored in the
Mysql Study Notes (log management), mysql Study Notes
Logs: mysql logs that record the running status, daily operations, and error information of the database: Binary logs, error logs, and query logs. Binary log: records database operations in
Generally, query logs and slow query logs can be written to the OS file system or as a log table of the MySQL system!
The log strap brings a lot of convenience, and of course it will bring a certain amount of system load to MySQL! Need to weigh.
MYSQL log analysis bitsCN. comMYSQL log analysis
Reprinted from: http://blog.chinaunix.net/uid-10565106-id-223928.html
A log file is a list of tracking records. it helps us keep abreast of the status of system and application services, and provides
Mysql Log Files and log types
Log File Type
MySQL has several different log files to help you find out what happened inside mysqld:
Log Files
Types of information recorded in files
Error Log
Record the
1 Slow query definition
MySQL records all SQL statements that execute a time threshold that exceeds the Long_query_time parameter setting. The slow query log is the log that logs these SQL.
2 Open Slow query log
Locate the MySQL configuration
Use MySQL 5.7.9 as the monitoring database for Zabbix 2.4.7. Some time ago opened a slow query log, and later found that the slow query log expanded to 700M
See the last 100 most of them are 0.1 seconds later want to change, previously is the
Today, database operations are increasingly becoming a performance bottleneck for the entire application, especially for Web applications. As for the performance of the database, this is not just something that DBAs need to worry about, and that's
One to avoid Web Access errors1 database Connection timeout produces page 5xx error2 slow query causes page not to load3 blocking causes data not to be committedSecond, increase the stability of the databaseThree optimized user experience1 Smooth
I. Overview of optimizationThe MySQL database is a common two bottleneck that is CPU and I/O bottlenecks, when the CPU is saturated when the data is loaded into memory or read from disk. Disk I/O bottlenecks occur when the load data is much larger
The recent project on the DB relies on more heavy, combing this period of time using MySQL encountered 8 more representative problems, the answer is also more biased development practice, no DBA professional and in-depth, please make hard to shoot
The MySQL logs have the following six types:
Error logs: Server startup, shutdown, error messages generated during operation, and information generated when an event (event dispatch) is run, and information generated from server processes
MySQL is a complex system that requires many tools to repair, diagnose and optimize it. Fortunately for administrators, MySQL has attracted many software developers to launch high-quality open source tools to address the complexities, performance
Error log the log service started offQuerying logs query log
Normal query log General query log client link and SQL
Slow query log slow query log execution time exceeds specified value
Binary log binary logs information about the
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
First, performance detection and bottleneck analysis
1 common commands for performance detection
Show status
Display status information, reference: Mysql Show status Command detailed
Show Processlist
View current SQL execution, including
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.