分类:折腾日期: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
完事了,删除吧!
最新评论
zwwooooo:买特斯拉和买iPhone的人群其实相似...
平安家属子痕:一直坚持油车,看你写的心里有...
秦大叔:室内每年能开2万公里电车确实划算 ...
灰常记忆:尊贵的特斯拉车主啊,对了一直对单...
拳废神域界:我的车现在平常跑不了啥,就放假...
大峰:电车起步超级快,我油车反正是跟不上,...
Mr.Chou:电车高速上真120和油车120真的有区...
Mr.Chou:18 19年入手的房子现在死的心都有了...
老何:不至于跌得这么狠吧
Andy烧麦:这些大厂都能提供必要的售后