June 19, 2013

Post: Does Slow query log logs all slow queries ?

… may use MySQL Slow query log to log all slow queries to catch problematic queries or for audit purposes. In fact however not all the queries are logged. I already mentioned mysql slave queries

Post: Visualization tools for pt-query-digest tables

When you process MySQL slow query logs using pt-query-digest you can store samples of each query into query_review table and historical values for… explain queries, see their stats and post reviews. Box Anemometer Anemometer is a tool for visualizing collected data from the MySQL Slow Query Log. The name comes from the instrument in a weather station that measures wind speed. SQL queries are like…

Post: Hidden columns of query_review_history table

… can use pt-query-digest to process a MySQL slow query log and store historical values for review trend analysis into query_review_history table… you copied slow query log from the another server. Having hostname set might be useful for filtering queries in the database aggregating slow queries from…

Post: Slow Query Log analyzes tools

… log all queries slow query log may be growing too rapidly to follow, so we implemented slow query log filter (based on parse_mysql_slow_log by… across same slow query log first to fix worse queries and then come to find more optimization candidates. So “tail -f mysql-slow.log | mysql_slow_log…

Post: Analyzing Slow Query Table in MySQL 5.6

… the query time and lock time as floating-point numerics to microsecond scale: sql/log.cc, MYSQL_QUERY_LOG::write(): 1945 /* For slow query log */ 1946 sprintf(query_time_buff, “%.6f”, ulonglong2double(query_utime)/1000000.0); 1947 sprintf…

Post: Identifying the load with the help of pt-query-digest and Percona Server

… have enabled slow query logging and set a low enough value for long_query_time. We normally use a value of long_query_time… you were using the vanilla MySQL server, you would see an entry like this in the slow query log: # Time: 111229 3:02… pt-query-digest Using pt-query-digest is pretty straight forward: pt-query-digest /path/to/slow-query.log Note that executing pt-query-digest can…

Post: Ultimate MySQL variable and status reference list

… to the amazing MySQL manual, especially the option and variable reference table…_conversionsblogpercona.commanual Slow_launch_threadsblogpercona.commanual slow_launch_timeblogpercona.commanual Slow_queriesblogpercona.commanual slow_query_logblogpercona.commanual slow_query_log_fileblogpercona…

Post: Logging MySQL queries from the client instead of the server

The “slow query log” is the single most valuable way to examine query execution on your MySQL server. Queries are logged with timing information, and… time the queries and write a query log. I suggest writing out something in a standard logging format such as the slow-query-log… “–type=tcpdump” option to mk-query-digest. You can even make it print out a “slow query log file” format with the “–print…

Post: Managing Slave Lag with MySQL Replication

… execution time of queries being replicated. Unfortunately MySQL Slow Query Log does not log replication queries. Though this is one of few slow query logging improvements you can get with our Slow Query Log…