我正在将网站从共享托管迁移到VPS,但是由于我的网站出现500错误,因此无法正确导入数据库。我将在下面列出我所采取的步骤,请您检查一下我是否有任何遗漏,谢谢。
通过终端上的mysql访问新数据库并运行以下命令;
更新sw13_options SET option_value = replace(option_value,'https://olddomain.co.uk','http://newdomainIP')WHERE option_name ='home'或option_name ='siteurl';
UPDATE sw13_posts SET guid = replace(guid,'https://olddomain.co.uk','http://newdomainIP');
UPDATE sw13_posts SET post_content = replace(post_content,'https://olddomain.co.uk','http://newdomainIP');
更新sw13_postmeta SET meta_value = replace(meta_value,'https://olddomain.co.uk','http://newdomainIP');
更新sw13_options SET option_value = replace(option_value,'https://olddomain.co.uk','http://newdomainIP')WHERE option_name ='home'或option_name ='siteurl';
UPDATE sw13_posts SET guid = replace(guid,'https://olddomain.co.uk','http://newdomainIP');
UPDATE sw13_posts SET post_content = replace(post_content,'https://olddomain.co.uk','http://newdomainIP');
更新sw13_postmeta SET meta_value = replace(meta_value,'https://olddomain.co.uk','http://newdomainIP');
我犯了一个错误还是没有做某事?