Clockwise

by Caleb Jaffa


Mephisto 0.8 to WordPress 2.5.1 Ruby Script

Not long ago I converted from Mephisto to WordPress for my wife’s blog and a blog I keep for my family. At the time I couldn’t find any scripts to automate the process. I did find someone had written a controller to put into the Mephisto code to convert, but it was the controller only and didn’t include the models. I wanted something simpler to run anyway. I’ve put the rough code up on Pastie.

Some notes about how to use it. First off you’ll need to run it on a computer that can access your Mephisto MySQL server and your target WordPress. You’ll need a default WordPress database to point at, I suggest clearing out the “Hello World” type stuff first. It does Mysql.quote on some fields, but not all, these were the fields that caused problems not being quoted for the two test blogs. It uses REPLACE INTO so in case a problem arises you can fix the script to handle the exception and re-run without worrying about duplicate data.

One Response to “Mephisto 0.8 to WordPress 2.5.1 Ruby Script”

  1. hathhoict Says:

    Very nice!!