分类:折腾日期: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
完事了,删除吧!
最新评论
王光卫博客:以前也喜欢DIY现在玩不动了
大D:大佬!
Sirit:够用就好,不过现在的电子产品是真的...
美樂地:我也想买个mini PC,打算等下一代的...
Mr.Chou:老牌子又不用带独显够用的,如换是...
小熊:评论区全是大佬,就我完全不太懂。
老俍:真是巧了,我也想给苏菲4pro换电池呢,...
空空裤兜:all in one的小主机都有两千的了。...
Pampo:1600组一个12100的不错了,价格压挺低...
无敌风火轮:和索尼没啥关系,这是索尼电脑的...