1 頁 (共 1 頁)

[問題]如何刪除大量已註冊會員?

發表於 : 2003-06-11 22:57
earlycat
請問如何以 sql 語法刪除已註冊的會員?

我試過以 delete from `phpbb_users` where userid > 100
(也就是只留前一百個註冊會員)

不過重新進討論區後,文章會變成沒有人的(發表人為空白),而不是以正常
刪除(以系統管理控制台)後,文章變成 Anonymous (訪客)的,而且這些
文章也都無法顯示,點進去會出現"這個主題沒有回覆文章"這樣的訊息.

請問各位前輩,是不是應該以別的方法刪除帳號呢?

發表於 : 2003-06-12 00:02
earlycat
剛解決一個問題了(看admin_users.php才知道要這樣弄)
,大略是要下這些command:

update phpbb_posts set poster_id = -1, post_username = "前代會員";
update phpbb_topics set topic_poster = -1
delete from phpbb_users where user_id > 100

不過出現另一個問題,Admin 無法登入了!! >_<|||
正在找問題點 ...

發表於 : 2003-06-12 00:19
earlycat
上個問題也解決了~ Admin 可以正常登入了..
還要:
delete from phpbb_auth_access where group_id > 100

不知道這有什麼關係? 不過就是可以了 ^^b

說明一下..
這個需求是要保留文章的情形下,請會員重新註冊的時候用的.