Posted on January 25, 2011, 9:00 pm, by Rhys, under
DBA,
Linux,
MySQL.
Today I wanted a quick and easy way to generate a backup of the structure of all MySQL databases in one easy hit. Here’s a couple of ways you can do this with the tools you’re likely to find everywhere. Firstly, we can use the following query to generate a list of mysqldump commands. The [...]
Posted on August 10, 2010, 8:36 pm, by Rhys, under
DBA,
MySQL.
Here’s a bash script that you can use to parse multiple MySQL Slow Query Log files, in one sweep, into something much more understandable. The script uses the handy utility mysqlsla so make sure this is in your path. mysqlsla parses, filters, analyzes and sorts MySQL slow, general, binary and microslow patched logs in order [...]
Posted on May 18, 2010, 7:34 pm, by Rhys, under
DBA,
Linux.
Now I’m working mainly with Linux and MySQL I’ve had to learn how to accomplish basic tasks in entirely new ways. As a DBA I like to keep an eye on disk space. I wanted something like my Check disk space with Powershell script, but this only works with Windows, so naturally I turned to [...]
Posted on April 22, 2009, 7:48 pm, by Rhys, under
Powershell.
Here are a few Powershell nuggets for beginners to digest. First thing that might trip you up is the Execution Policy built into Powershell. I’ve turned this off on my development machine but it’s obviously advised to have it enabled on production machines. That aside, it’s easy to turn off… If you’re using Vista you [...]