- UID
- 680417
- 积分
- 0
- 金币
- 13
- 精华
- 0
- 威望
- 0
- 贡献
- 0
- 阅读权限
- 220
- 注册时间
- 2009-1-26
- 最后登录
- 2026-5-3
- 在线时间
- 0 小时
热心网友
- 金币
- 13
- 阅读权限
- 220
- 精华
- 0
- 威望
- 0
- 贡献
- 0
- 在线时间
- 0 小时
- 注册时间
- 2009-1-26
|
第一种方法:UC后台编辑用户,修改用户名。这样如果“通信成功”且“通知成功”的话,新用户名可以登录,但是群组的用户与帖子的作者与最后更新还是旧用户名。此方法能用不是太完美。
第二种方法:直接操作数据,此方法效果较好,需要一定的数据库操作技术。后台开启允许执行数据库,用下面语句执行下,大概需要的语句有
- update `pre_common_member` set `username`=REPLACE(`username`, '原名', '新名');
- update `pre_ucenter_members` set `username`=REPLACE(`username`, '原名', '新名');
- update `pre_forum_groupuser` set `username`=REPLACE(`username`, '原名', '新名');
- update `pre_forum_post` set `author`=REPLACE(`author`, '原名', '新名');
- update `pre_forum_thread` set `author`=REPLACE(`author`, '原名', '新名');
- update `pre_forum_thread` set `lastposter`=REPLACE(`lastposter`, '原名', '新名');
- update `pre_home_feed` set `username`=REPLACE(`username`, '原名', '新名');
此方法已经很完美了,但不排除数据库含用户名的表全部都在,如果发现还有表含有用户名的改下表名称加进去,注意区分username,author和lastposter即可
注:此方法discuzx通用户名, 此方法, 后台, 数据库, Red |
|