MySQL Troubleshooting Tip of the Day
One of our EC2–hosted database servers had to be rebooted last night, and when it came back up some of our database-driven sites were working, others weren’t. Upon further investigation I found the following message cropping up in mongrel_rails and phpMyAdmin logs:
Error No. 1033 Incorrect information in file: ‘<filename>’
A peek at phpMyAdmin’s database list showed that in many of the databases, some tables showed up fine while others were marked as “in use”. Attempting to view those tables produced the above message.
After a bit of poking around I realised that the my.cnf configuration file had been overwritten by some startup script, and now contained the line skip-innodb. This meant that the server couldn’t load any tables that used the InnoDB storage engine. Removing this line from my.cnf and restarting the mysqld service fixed the problem.
Incidentally, make sure you’re editing the right my.cnf file — there were a few on our system and it took a couple of tries to figure out which one MySQL was actually using.
Thought I’d post this in case any other EC2 users run into this issue. I think the startup script in question belonged to WHM/cPanel, so this might be of interest to users of those packages too. Phew.
![]()
For the curious few: a smattering of detail on what went into this new theme.
For one reason or another I decided that I wanted to create a theme that emulated a newspaper layout (a small one, granted). That called for a columnar layout — not the most straightforward thing to achieve in HTML. Support does exist in CSS3, but it’s not pervasive enough for me to be completely comfortable using it, and I didn’t feel convinced it would give me the control I wanted. I ended up with a custom solution that works well for multiple posts but struggles a bit when distributing a single post across multiple columns — I’d like to think it copes in most situations, however.
Flying Moses, what the devil’s going on?
Ahem, yes. So I got a bit carried away on a train the other day and decided to do a complete redesign of the good old blog. As always, it’s been terribly neglected of late, so I decided to change things up once again in an attempt to zap a bit of life into my blogging activities as a whole.
There are a quite a few changes, as you’ll no doubt observe, but the main shift is to a format that favours shorter, more punchy posts — hopefully delivered at more frequent intervals — presented in such as way as to encourage bite-size, convenient consumption. I’ll be trying to post more often while writing less; hopefully less waffle and more hilarity. Oh yes.
![]()
ASP.NET Sucks Huge Balls, And I Hate It
Now that I’ve got your attention…
Full disclosure: I make my living as a PHP programmer. So I can cough to the tribal bias right off the bat. I’m also a big fan of Open Source. That aside, I’ve had the misfortune to have worked briefly on ASP.NET projects in the past, and am currently contracting for a company — a PHP shop — whose own super-fine PHP-based website is being redeveloped externally for political reasons, by a sister company versed only in ASP.NET. We’re about to take custody of that site as it if were our own spawn; needless to say the fireworks have already begun in earnest. So here’s my take on some of the problems with ASP.NET.
Why I Won’t Be Trying Thunderbird 3
(or how I learned to stop worrying and love Apple Mail)
Yesterday saw the release of Thunderbird 3 (UK-specific link), the first major update to Mozilla’s email application in nearly three years. I’ve been a staunch supporter of Firefox, their flagship web browser, since it was first released in 2004. Thunderbird and I, by contrast, have enjoyed only the briefest of relationships (a fling sometime during the summer of 2005), so I thought I’d explore why this is, and why — sadly — I don’t feel at all compelled to give its latest version a try.
![]()
Reuniting SXC.hu Photos With Their Authors
I’ve been using a lot of stock photos in recent projects, and a good deal of them come from the fantastic SXC.hu. One issue I ran into, however, was that after downloading several dozen, making selections, then eventually using them, I’d usually lost track of where they came from on the site.
![]()
Also: Portable Fear and Loathing