Archive for the ‘Geek’ Category

How to be a MySQL DBA and the best MySQL book on the planet.

Recently there was a thread on the mysql mailing list discussing how to become a MySQL DBA. I’m not sure the MySQL DBA role exists in the same capacity that it does in Oracle. Historically the Oracle’s DBAs that I’ve met are focused purely on Oracle. They focus on maintaining Oracle based systems including managing [...]

July 20, 2010 • Posted in: Geek, MySQL • 3 Comments

EMT SVN now on Google code

Jeremy moved the emt svn repository to google code last night. This gives it better integration with the issues tracker, google’s kick ass source browser and gives me the ability to add more commit rights without giving people accounts on servers. Check out the new source tab. Especially the part that lists the field objects. [...]

May 11, 2010 • Posted in: EMT, Geek • No Comments

First post using shap ShapeWriter input method on Android

I must say this is way faster than tapping. It’s surprisingly accurate even after only a few minutes of using it

April 25, 2010 • Posted in: Geek, QFTPWE • No Comments

WordPress on Android

It’s like my own little twitter. I don’t think I will be publishing much from this but it’s great for creating stub posts.

April 11, 2010 • Posted in: Geek • No Comments

Table statistics draft 2, the slow query log

I’ve posted a new table statistics patch which is the next version of the session table/index statistics patch This version of the patch adds slow query log output. If a query is logged to the slow query log it will have row count statistics added to it. I’m not sure about the format of the [...]

January 19, 2010 • Posted in: Geek, MySQL • 6 Comments

First draft of per session table and index statistics

I had some free time over Thanksgiving so I decided to work on something I have been thinking about for quite some time. I hacked up Google’s show table_statistics patch to also track stats per connection. I say this is a first draft hack because I based it off of the v2 patch which uses [...]

January 14, 2010 • Posted in: Geek, MySQL • 2 Comments

pid file directory and a full disk

To continue the pid file theme I’ve found another slight issue. This was unrelated to the testing which I found the previous pid file issues. I was working on an unmonitored development mysql system. While working on it I ran it out of disk space in /. The box has it’s mysql datadir in a [...]

December 9, 2009 • Posted in: MySQL • No Comments

Attempting to unwind the tangled web of pid file creation.

Previously I wrote about how late the mysql pid file is created in the startup process. At first glance it seemed like a relatively easy thing to fix. In main() there is a call to start_signal_handler(). The first instance of static void start_signal_handler() does only one thing. It checks !opt_bootstrap to make sure mysqld isn’t [...]

December 6, 2009 • Posted in: Geek, MySQL • 4 Comments

mysqld_safe and pid file creation race condition

mysql_safe is responsible for restarting mysqld if it crashes and will exit cleanly if mysqld was shutdown. The way it determines if mysqld shutdown correctly is if the pid file is cleaned up correctly. MySQL does quite a few things before creating the pid file like initializing storage engines. It can take quite a while [...]

December 4, 2009 • Posted in: Geek, MySQL • 3 Comments

InnoDB Deadlock Count Patch

InnoDB Deadlock Count Patch Deadlocks are a common occurrence in relational databases. They usually aren’t a problem until they start happening too frequently. Innodb can provide you with information about the latest deadlock in SHOW ENGINE INNODB STATUS. This can be useful for debugging but it’s almost impossible to get the rate at which deadlocks [...]

August 27, 2009 • Posted in: Geek, MySQL • 9 Comments