Archive for the ‘MySQL’ Category
mysqlreport v3.4 released, bug fix
mysqlreport v3.4 is ready which primarily fixes a bug in v3.3 concerning infiles for relative reports.
Changes in v3.4 are:
- Fixed bug: –relative infiles wouldn’t work unless the SHOW STATUS values were prefixed with a line matching: /Variable_name[\s|]+Value/. Now mysqlreport looks for Aborted_clients which should always be present. (thanks Debbie)
- Fixed formatting problem: Created Temp Table Size was too small for >99M
- Removed redundant %Total: column label from Slow line
- Added more debug info
mysqlreport v3.3 released
mysqlreport v3.3 is ready. Changes:
- –all is now the default option and all the sub-report options like –dms, –sas, etc. have been removed. All reports that can be made are made automatically.
- Slow line now displays long_query_time and log_slow_queries
- Created Temp Table line now displays tmp_table_size
- The mysqlreport tgz and zip now extract into their own directory
The mysqlreport Documentation and The Guide To Understanding mysqlreport have been updated to reflect these changes.
mysqlreport v3.2 released
mysqlreport v3.2 has been released. Mark Leith’s post, Aggregating SHOW STATUS Output, reminded me that a user had asked me a few months ago to do this for mysqlreport. I forgot until Mark’s post.
I have finished implementing this feature with mysqlreport. The new version has three new command line options: –relative (-r), –report-count (-c), and –detach. All of these are explained in the doc. This feature required substantial alterations to the script, so please tell me if anything doesn’t work.
mysqlreport v3.1 released
Yesterday I released mysqlreport v3.1. No large changes:
- Added support for table_open_cache system var (MySQL 5.1.3+).
- Removed default assignments for $mycnf{‘host’}, $mycnf{‘port’}, and $mycnf{‘socket’}.
- Connecting to MySQL now tries socket if one is given and actually a socket, else TCP/IP host if one is given, else generic “host=localhost” which relies on the MySQL client lib to do something useful.
- Updated help for clarity.
- Fixed bug: spelled “fsync” wrong.
I also updated The Guide To Understanding mysqlreport to include InnoDB reports and the mysqlreport documentation.
Updated: Non-technical Guide to Isolating Slow MySQL Queries
It’s strange what articles on one’s site become “popular.” I wrote Non-technical Guide to Isolating Slow MySQL Queries some time ago when I was an internal system admin at a data center. I wasn’t “customer-facing” but I still got requests from customers who wanted me to look at their MySQL server. Since that wasn’t my primary responsibility, I had to enlist their help to save me time. Hence, I wrote this article to help not-technically-inclined customers through the first few steps.
My webstats have shown this page to be hit more often than I would have expected. Consequently, I felt that I should update it, so I did.
