I'm trying to import articles from a mysql database, that is used by wordpress. Exporting the data to csv file format and using the import utility included in KBPublisher. The export itself have been done, but i have some problems with the linebreaks. I tried to export the data with two commands.. :
select post_title,post_content,post_date into outfile '/tmp/export.csv' FIELDS TERMINATED BY ',' LINES TERMINATED BY '\n' from wp_posts;
mysql -u user -ppass wordpressdb -B -e "select post_content,post_title,post_date from wp_posts;" | sed 's/\t/","/g;s/^/"/;s/$/"/;s/\n//g'; > export.csv
In both cases, importing into kbpublisher, leaving the field options by default, as them look like corrects. The entire articles are imported in one whole big line :D.
Can someone help me?
Cheers,
Rafael
