Greymatter Import
-
Some users [including yours truly] have been wondering how to import old Greymatter entries into WP.
Careful readers will note that WP 0.72 Gold has gm-2-b2.php back in the mix.
*IF* you have the guts and patience to do it right, here’s how to go about it:
Grab a copy of b2 and install it.
Run gm-2-b2.php in b2.
Run an ALTER TABLE session with the five b2 tables, renaming them to wp_$tablename before starting. [e.g. ALTER TABLE b2categeories RENAME wp_categories;] The b2-2-wp.php upgrade script is not currently noticing and renaming those tables properly, but if you go in and make that change yourself, it’ll be happy.
Grab a copy of WP 0.72 and install it.
Run the b2-2-wp.php conversion script.
Delete b2, as you simply used it as a stepping stone.
Last step to make you happier [although this is really only applicable for one-poster logs]: run UPDATE wp_posts SET post_author=1 to change all posts to your admin account. You can then delete any users that b2’s GM-conversion script had created, as this has consolidated everything into one account for you. If you have multiple loggers that you’re trying to get, you probably want to go in and run something like:
UPDATE wp_posts SET post_author=M WHERE post_author=N
… where M is the old GM author and N is the desired author’s number. [If you have more than one GM log to import, you’ll want to do this.]
This all seems like a long process, but from grabbing b2 to clearing running UPDATE wp_posts … last night, I spent all of 25 minutes importing 990 GM posts. Worth it to me!
- The topic ‘Greymatter Import’ is closed to new replies.