Tag Archives: MySQL

Tune MySQL like a pro with MySQLTuner

I don’t know why I didn’t know about this before (or why I forgot about it, more likely), but I came across MySQLTuner recently and was most pleasantly surprised. It’s a Perl script that only requires your MySQL user and … 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

Catching warnings from the MySQLdb module

The MySQLdb Python module implements the Python DB API for MySQL. I’ve written about its use before. MySQL issues warning messages in a number of circumstances and PEP 249 (which specifies the Python DB API) describes a Warning error message … Continue reading

Posted in Python | Tagged , , | Leave a comment

Editing Trac comments at the DB layer

Today I needed to alter the content of a comment made on a Trac ticket. I didn’t anticipate this would be a difficult task, but I wasn’t too familiar with Trac’s DB schema. So to save you a few consternated … Continue reading

Posted in Web Applications | Tagged , | Leave a comment

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