分类:折腾日期:2012-07-26 - 18:17:34评论:19条作者:老谢
//替换评论者的链接
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
完事了,删除吧!
最新评论
老陳网志:有点高端,像我们整点nas玩玩就够...
springwood:自从 CentOS 不维护之后,我换 U...
大D:难都搞下来了,那就更得YM了
大D:只能是YM了,谢总牛啊
灰常记忆:经济不好 今年我也换了机器 一...
大峰:这是海外服务器嘛?速度挺快的。
大D:只能单走一个6了哈哈哈
zwwooooo:买特斯拉和买iPhone的人群其实相似...
平安家属子痕:一直坚持油车,看你写的心里有...
秦大叔:室内每年能开2万公里电车确实划算 ...