Upgrading to Wordpress 2.5
In the end of March Wordpress team introduced a new version of their popular blogging platform and advised all its users to upgrade. Even though any experienced user of Wordpress could probably do it in an ease, it may still get a bit tricky.
New Wordpress can be called a Web 2.0 application. User interface has been renewed and a whole set of tiny features make it highly usable. It looks much better than the previous version:
Upgrading from MySQL 3
Wordpress 2.5 requires MySQL 4 and this is where you might get stuck.
For imperfect | world | 2008 the database dump was above 50 MB yet that much of text is hardly believable for a regular blog. Brief investigation of database records indicated that most of the data was undeleted spam. As it was impossible to import 50 MB database to a new one (MySQL 4), something was to be done about it.
Fortunately the blog had all comments edited and spam comments were marked as spam so it was rather trivial to get rid of them manually with a short SQL command:
DELETE FROM wp_comments WHERE comment_type = 'spam';
That single SQL query made it to 5 MB (from 50MB!) which was usable for importing. If it would have been any bigger it would have been easy to dump those MySQL 3 tables separately and then import one by one to MySQL 4. Given that there are upload restrictions, e.g. 5 MB, by phpMyAdmin or a custom Control Panel by ISP, of course.
Upgrading from 2.3
Flash tekkie blog was running on 2.3 from the beginning and was already on MySQL 5 but there was a bit different trouble in upgrading it to 2.5. On upgrade it simply threw back
500 Internal Server Error and failed. Investigation of Apache logs revealed a bit more:
[Fri Apr 11 13:35:56 2008] [error] [client 18.104.22.168] Premature end of script headers: upgrade.php
As PHP was running in PHP 4 compatibility mode, the catch was there. Turning it off helped. To do that the line of code was added to wp_config.php of a blog:
Given that ISP allows PHP INI settings to be changed on the fly, that should work in all such cases.