2011年7月3日星期日

wp更换域名替换老域名的sql查询替换法

干净的替换掉老域名需要如下三条sql查询语句:

UPDATE wp_options SET option_value = replace(option_value,’old domain’,’new domain’) WHERE option_name = ‘home’ OR option_name = ‘siteurl’;

UPDATE wp_posts SET post_content = replace(post_content,’old domain’,’new domain’);

UPDATE wp_posts SET guid = replace(guid,’old domain’,’new domain’);

domain格式 http://spoint.babyshoot.cn 最后不要带”/”

另外,直接拷贝以上三行执行sql语句时,别忘记确认下’单引号,可能拷贝下来的会出错,中文格式的单引号是不能正常执行的。。
以上三条是替换数据库中涉及的所有老域名。

openwrt 6300V2 USB无法显示的问题

lsusb and fdisk -l There's a method to turn USB power on which is probably not persistent. I hope this will help you. echo 0 > /sys/c...