如果使用PHP myadmin,则应导出所有表的sql转储,然后导入相同的sql。
如果我理解正确(也许我错了),您可以尝试将CSV导入SQL转储。。这在直接sql转储中不起作用。
完成sql转储后,请使用以下命令:
/**
UPDATE wp_options SET option_value = REPLACE(option_value, \'http://www.old-domain.com\', \'http://www.new-domain.com\') WHERE option_name = \'home\' OR option_name = \'siteurl\';
/**
After that you will need to fix URLs of the WordPress posts and pages, which translated from post slug, and stored in database wp_posts table as guid field. The URL values in this field are stored as abolute URLs instead of relative URLs, so it needs to be changed with the following SQL query:
**/
UPDATE wp_posts SET guid = REPLACE(guid, \'http://www.old-domain.com\',\'http://www.new-domain.com\');
/**
If you have linked internally within blog posts or pages with absolute URLs, these links will point to wrong locations after you move the blog location. Use the following SQL commands to fix all internal links to own blog in all WordPress posts and pages:
**/
UPDATE wp_posts SET post_content = REPLACE(post_content, \'http://www.old-domain.com\', \'http://www.new-domain.com\');