分类:折腾日期:2012-07-26 - 18:17:34评论:23条作者:老谢
//替换评论者的链接
UPDATE wp_comments SET comment_author_url = REPLACE( comment_author_url, ’http://oldurl’, ’http://newurl’ );
//替换文章中的链接
UPDATE wp_posts SET post_content = REPLACE( post_content, ’http://oldurl’, ’http://newurl’ );
//替换评论者的电子邮箱地址
UPDATE wp_comments SET comment_author_email = REPLACE( comment_author_email, ’old-email@address.com’, ’new-email@address.com’ );
//替换评论者的昵称
UPDATE wp_comments SET comment_author = REPLACE( comment_author, ’old_author’, ’new_author’ ); |
//替换评论者的链接
UPDATE wp_comments SET comment_author_url = REPLACE( comment_author_url, ’http://oldurl’, ’http://newurl’ );
//替换文章中的链接
UPDATE wp_posts SET post_content = REPLACE( post_content, ’http://oldurl’, ’http://newurl’ );
//替换评论者的电子邮箱地址
UPDATE wp_comments SET comment_author_email = REPLACE( comment_author_email, ’old-email@address.com’, ’new-email@address.com’ );
//替换评论者的昵称
UPDATE wp_comments SET comment_author = REPLACE( comment_author, ’old_author’, ’new_author’ );
PS:出处实在找不到了,这里向原作者表示抱歉,之前保存到本地,为了方便查阅就贴到了博客。
分类:linux日期:2012-07-05 - 18:52:05评论:13条作者:老谢
我是root,删文件居然提斯和无操作权限,系统是要逆天么?
用ll命令查看权限,看似正常,但是我们不能只看表面。。用lsattr命令,就找到不正常的地方了。。
[root@aples fcgi-bin]# lsattr
—-i——– ./php5.fcgi
有个i属性,属性的含义如下(谷歌之):
i:设定文件不能被删除、改名、设定链接关系,同时不能写入或新增内容。i参数对于文件 系统的安全设置有很大帮助。
找到怎么回事了,那就能解决了,搜搜怎么取消这个i属性就完了,操作如下:
chattr -i php5.fcgi
完事了,删除吧!
最新评论
随遇而安:你好咱们这个站做的挺好,有没有出...
Andy烧麦:少说也是13代处理器,性价比很高啊
harries:“仔细想想自己单身一个,还是搞个公...
山野愚人居:价格还可以,话说我好多年没用过...
adamfei:好久不见
kn007:好久不见,没想到离职创业!!!
王光卫博客:以前也喜欢DIY现在玩不动了
大D:大佬!
Sirit:够用就好,不过现在的电子产品是真的...
美樂地:我也想买个mini PC,打算等下一代的...