How to create mysql login-path

In MySQL by Aurimas Mikalauskas0 Comments

This is just a note to myself. I don’t do this often enough to remember the command, but whenever I’m searching for this, it takes half a minute to find it in MySQL manual, so hopefully this gets indexed better (in my memory as well as in Google). Read More

View Post

Advanced MySQL Slow Query Logging Part 2: pt-query-digest report

In MySQL by Aurimas Mikalauskas1 Comment

Proper MySQL Query Optimization starts with a proper Slow Query Logging session. And MySQL Query Optimization is where I spend 70-80% of my time when doing MySQL performance optimization.

In part 2 here, we will go over the pt-query-digest report, that we have prepared in part 1.

Here’s links to the other two parts:

View Post

Advanced MySQL Slow Query Logging

In MySQL by Aurimas Mikalauskas3 Comments

Proper MySQL Query Optimization starts with a proper Slow Query Logging session. And MySQL Query Optimization is where I spend 70-80% of my time when doing MySQL performance optimization. In this short series I will show you how to do Slow Query Logging the right way. Read More

View Post

How To Speed Up MySQL Restart (hint: just like before, but this time for real)

In MySQL by Aurimas Mikalauskas2 Comments

Restating MySQL can be really annoying. You just want to disable the goddamn query cache and it takes forever (read 5-10 minutes) to shutdown, not to mention the warm-up time. Yes, with MySQL 5.7 you can do many changes online, so you won’t necessarily be restarting that often, but you still need to do upgrades, occasionally increase redo log size and, admit it, enable skip-grant-tables. Here’s how you can make this process way less painful. Read More