Category Archives: MySQL

Scripts, queries, gotchas and more about MySQL databases

Troubleshooting MySQL queries: a useful workflow

Configuring and optimizing MySQL servers, from the underlying hardware to the instance settings on up to the application queries, is a multi-faceted and complex process. Here I’d like to assume you’ve got a well-configured physical server (it’s at least functioning … Continue reading

Posted in MySQL | Tagged , , | Leave a comment

Debugging bottlenecks with the MySQL Query Profiler

I was throughly pleased to discover the MySQL Query Profiler facility recently. Somehow I hadn’t heard about it (or recalled anyway) until now. In short it provides a very easy way to view how much time (down to the microsecond) … Continue reading

Posted in MySQL | Tagged , , | 2 Comments

Tune MySQL like a pro with MySQLTuner

I came across MySQLTuner recently and was most pleasantly surprised. It’s a Perl script that only requires your MySQL user and password to provide detailed and useful checks of a running MySQL instance. First though, check out the awesome URL … Continue reading

Posted in MySQL | Tagged , , , | Leave a comment

Better access to MySQL create view statements

I’ve found that I often create several views that are variations on an initial one, providing a slightly different convenient slice of the data as the need arises. But when a view is created the syntax actually stored can be … Continue reading

Posted in MySQL | Tagged | 2 Comments

Advanced ordering of MySQL results

MySQL’s “order by” keyword allows the order in which result rows are returned to be defined. This is quite useful in a wide variety of circumstances. You can specify any number of columns whose values you want to order the … Continue reading

Posted in MySQL | Tagged , | Leave a comment