phpbb users 表条目删除及其影响。删除用户之前有哪些清理工作
我正在编写一个将从系统托盘运行的窗口程序。 这将 ping 我的 phpbb board 站点以获取新用户注册信息。 因此,通过结果我可以检查用户是否是垃圾邮件用户。
如果我觉得它是垃圾邮件用户,那么我将从用户表中删除该条目。
在删除用户表之前,我应该删除所有其他表。
这样就不会出现任何未链接的引用,这些引用在适当的时候会变得大量并浪费磁盘空间。
所以我想知道在删除用户之前我应该做什么,以便在删除用户之前清除他的所有其他活动。
I am writing a window program which will run from the system tray.
which will ping my phpbb board site to fetch new users registration information.
So with the result i can check whether the user is spam user or not.
if i feel it is a spam user then i will delete that entry from the users table.
before deleting the users table what are all the other table that i should delete.
so that there will not be any unlinked references which will then in due course of time gets numerous and waste of disk space.
so i want to know what i should do before deleting an user so that all his other activities should be cleaned off before i deleting a user.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您查看引用
user_id
的表的 phpBB 数据库架构,您应该能够使用DELETE FROM ... WHERE user_id = #
确定要清除哪些表。请注意,已建立phpBB 垃圾邮件预防工具 可以节省您的时间(和头痛) )手动审查每个新注册。
If you review the phpBB Database Schema for tables which reference a
user_id
, you should be able to determine which tables to purge with aDELETE FROM ... WHERE user_id = #
Note that there are established phpBB spam prevention tools which could save you the time (and headaches) of manually reviewing every new registration.