以前の記事から数年経ってしまったので、再度メモしておきます。
・wp-config.phpを編集
define('DB_NAME', 'データベースの名前');
define('DB_USER', 'データベースのユーザー名');
define('DB_PASSWORD', 'データベースのパスワード');
define('DB_HOST', 'localhost');
define('DB_CHARSET', 'utf8');
・ファイルを新サーバーへアップロードdefine('DB_NAME', 'データベースの名前');
define('DB_USER', 'データベースのユーザー名');
define('DB_PASSWORD', 'データベースのパスワード');
define('DB_HOST', 'localhost');
define('DB_CHARSET', 'utf8');
PHPMyadminで「SQL」をクリック。下記を実行
参考サイト→→http://websae.net/wordpress-backup-without-plugin-20140924/
UPDATE wp_options SET option_value = replace(option_value, 'http://example.old/', 'http://example.new/') WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET guid = replace(guid, 'http://example.old/','http://example.new/');
UPDATE wp_posts SET post_content = replace(post_content, 'http://example.old/', 'http://example.new/');
UPDATE wp_postmeta SET meta_value = replace(meta_value,'http://example.old/','http://example.new/');
参考サイト→→http://websae.net/wordpress-backup-without-plugin-20140924/

