I finally decided to move my greek blog from drupal to wordpress. Since there was no migration script, I wrote a couple of sql statements that moved all posts, comments and categories from my drupal tables to the (new) wordpress 1.5 tables.
Here is the proccess in short:
WARNING!!! This may delete your DATA!!! Make sure you backup EVERYTHING before starting the procedure!!!
1. setup a fresh wordpress installation.
2. make sure term_data term_hierarchy node term_node comments (drupal tables) are in the same DB you use from WP.
3. Run the following SQL statements:
delete from weblog_wp_categories ;
delete from weblog_wp_posts;
delete from weblog_wp_post2cat ;
delete from weblog_wp_comments ;
insert into weblog_wp_categories(cat_ID,cat_name, category_nicename, category_description, category_parent) select term_data.tid, name, name, description, parent from term_data, term_hierarchy where term_data.tid=term_hierarchy.tid ;
INSERT INTO weblog_wp_posts(
ID, post_date, post_content, post_title, post_excerpt, post_name, post_modified
)
SELECT nid, FROM_UNIXTIME(created), body, title, teaser, concat('OLD',nid), FROM_UNIXTIME(changed) FROM node WHERE type='blog' OR type='page' ;
INSERT INTO weblog_wp_post2cat (post_id,category_id) SELECT nid,tid FROM term_node ;
INSERT INTO weblog_wp_comments (
comment_post_ID, comment_date, comment_content, comment_parent
)
SELECT nid, FROM_UNIXTIME(timestamp), concat('',subject, '<br />', comment), thread FROM comments ;
You should now have all your posts and comments and categories in WP. Go to the admin interface and make sure everything is in place…
Notes: This is not the perfect way to migrate. Comments are not nested in the right way. A lot of things may not work. On the other hand if, like me, made a really simple use of Drupal, this should move most of your data to WP…

Migration from Drupal to WordPress complete
Well, I finally made the move and migrated the site from Drupal to WordPress. I finished everything up yesterday and I’m now only finding some time to write about how the process went. I saw some commentary and references to the ideas I placed forth i…
Migrating from Drupal to WordPress-?Drupal???Wordpress
WordPress???Drupal???WordPress?????????????????????
[??]??????????
I finally decided to move my greek blog from drupal to WordPress. Since there was no migration script, I …
Mal wieder alles anders
Nach einem halben Jahr mit drupal bin ich gestern wieder auf WordPress umgestiegen. Einer der Grnde: Ich brauche fr meine private Seite, die eigentlich doch nur ein Weblog sein soll, kein Community-System.
Der Umstieg ging mit kleineren Problemche…
[...] I found a handful of sites that documented their migration from Drupal to WordPress and I want to give them props for helping me get along my way: Tom Markiewicz, miscellaneous factZ, Vrypan|Net|Log, and Spindrop were all great resources. Props. [...]
[...] So, I’m just in the process of converting the site, which has been made significantly easier using the post I found on vrypan.net. [...]
[...] 2 nearly 2 weeks ago. The process wasn’t as painful as I thought it would be, thanks to a handy howto via vrypan.net. Another resource I refer to every time I get into tweaking MySQL rows is UrbanMainframe’s [...]
[...] a few weeks ago and detailed it all on his blog. He made generous use of Panayotis’s detailed instructions, so it was actually a group effort. The SQL applied surprisingly cleanly, though I found that all [...]
[...] for help with the migration and i truly found a few sites — keyboardsamurais.de, vrypan.net and Tom Markiewicz — to be very helpful. (THANK YOU!) however, as much of a help they were [...]
[...] creou un ficheiro de texto con tdolos scripts necesarios para face-la migracin, baseandose na guia de vrypan ampliada por D’arcy [...]
[...] un fichero de texto con todos los scripts necesarios para hacer la migracin, basndose en la gua de vrypan ampliada por Darcy [...]
[...] http://www.tmarkiewicz.com/migration-from-drupal-to-wordpress-complete/ http://vrypan.net/log/2005/03/10/migrating-from-drupal-to-wordpress/ http://www.darcynorman.net/2007/05/15/how-to-migrate-from-drupal-5-to-wordpress-2/ Possibly related [...]
[...] пару ссылок по переносу сайта с Друпала на Вордпресс: http://vrypan.net/log/2005/03/10/migrating-from-drupal-to-wordpress/ http://www.darcynorman.net/2007/05/15/how-to-migrate-from-drupal-5-to-wordpress-2/ [...]