discuz一些常用SQL语句
修改用户短信提示音(设置为第一个)UPDATE `cdb_members` SET `pmsound` = '1';
所有板块开启media代码
UPDATE `cdb_forums` SET `allowmediacode` = '1';
所有板块允许应许版主编辑版规
UPDATE `cdb_forums` SET `alloweditrules` = '2';
批量修改用户组允许上传附件类型
UPDATE `cdb_usergroups` SET `attachextensions` = 'rar, zip, jpg, jpeg, png, gif, swf, bmp, torrent, mp3, wma, txt, doc';
批量将所有用户头像改成120*120
UPDATE `cdb_memberfields` SET `avatarwidth` = '120';
UPDATE `cdb_memberfields` SET `avatarheight` = '80';
批量修改附件为远程附件
UPDATE `cdb_attachments` SET `remote` = '1';
批量删除未审核通过的帖子和主题
delete from cdb_threadswhere displayorder=-2;
delete from cdb_postswhere invisible=-2;
做这些动作之前记得要备份数据库!
提示:
quickqueries.inc.php
把这些脚本写到上面文件
在后台可以直接选择
页:
[1]