估计用了用户表优化后出问题的人很多吧!比如我的问题就是很久没登录的用户重新登录后积分什么的都没了,哪怕重新发帖回帖,积分也不会变,用户组还会变成初始的用户组!
论坛后台升级数据库:站长》数据库》升级
👩🧦🦯😒🤟
- insert into pre_common_member select * from pre_common_member_archive;
- insert into pre_common_member_count select * from pre_common_member_count_archive;
- insert into pre_common_member_field_forum select * from pre_common_member_field_forum_archive;
- insert into pre_common_member_field_home select * from pre_common_member_field_home_archive;
- insert into pre_common_member_profile select * from pre_common_member_profile_archive;
🧠💈🫖®🕊 - insert into pre_common_member_status select * from pre_common_member_status_archive;
复制代码
以上六条的意思就是把六个存档表中的东西合并到主表中。
然后再使用如下升级数据库:
- TRUNCATE TABLE `pre_common_member_archive`;
✊🌕🍊❓🐮 - TRUNCATE TABLE `pre_common_member_count_archive`;
- TRUNCATE TABLE `pre_common_member_field_forum_archive`;
- TRUNCATE TABLE `pre_common_member_field_home_archive`;
- TRUNCATE TABLE `pre_common_member_profile_archive`;
- TRUNCATE TABLE `pre_common_member_status_archive`;
复制代码
👏🌞🍚📳🐺以上六条的意思就是把六个存档表数据全部清空。
重申:使用这个方法导致论坛出问题的话,本人概不负责,也无法提供其他解决方法,使用前请备份数据和数据库!
👵👜📐😋👀