Only perform a search and replace on the wp_posts table.Use the Search and Replace for WordPress Databases Script to safely change all instances. ( If you are a developer, use this option. It is a one step process as opposed to the 15-step procedure below )
第一种我认为他只修改了日志的链接,效果不好,于是我采用了第二种方案。
首先下载相应php脚本http://interconnectit.com/124/search-and-replace-for-wordpress-databases/ ,解压后得到searchreplacedb2.php,放置在你的wordpress根目录下(和wp-config.php)同级。
然后通过浏览器访问对应的searchreplacedb2,如www.example.com/wordpress/searchreplacedb2.php,如下图。
让你选择获取数据库信息的方法,点击下一步:
确认无误后,点击下一步:
选择你要替换字段的表名,这里全选即可:点击下一步:
在查找和替换中分别输入你要查找和替换的名字,下一步则ok,
ok,记得吧searchreplacedb2.php这个文件给删除掉啊,免得误操作了。
标签:WordPress
相关阅读 >>
wordpress 部署 minify方法 自动压缩合并 js 和 css
php版本升级到7.x后wordpress的一些修改及wordpress技巧
详解wordpress中用于合成数组的wp_parse_args()函数
linux xampp下启用wordpress的自定义文件名(伪静态)功能
更多相关阅读请进入《wordpress》频道 >>