Importing Other MySQLbased Sites

To import content from a MySQL-based site that isn't represented on the official importer list, be prepared to get your hands dirty. There are no friendly web interfaces for this; it's a matter of filling in database values in a script. You might also need to set up a second, temporary database for the migration process.

Developer Joost de Valk has written a tutorial on importing content from another MySQL database into WordPress. The article (yoast.com/importing-from-another-mysql-into-wordpress) contains a PHP script (broken into sections) that you can adapt to your own situation. The Codex article on the wp_insert_post function, at codex.wordpress.org/Function_Reference/wp_insert_post, lists all the possible fields you can insert into the database.

0 0

Post a comment