Home  >  Article  >  CMS Tutorial  >  How to delete members in dedecms

How to delete members in dedecms

藏色散人
藏色散人Original
2023-02-17 10:40:251295browse

Dedecms method to delete members: 1. Back up the database; 2. Open the dede backend system, and then use the SQL statement "delete from dede_member where not mid="1"" to delete registered members in batches.

How to delete members in dedecms

The operating environment of this tutorial: Windows 10 system, DedeCMS version 5.10, Dell G3 computer.

dedecmsHow to delete members?

dedecms method of deleting junk members

The specific implementation method is as follows:

Some webmasters must have a headache about members, and some people are idle and bored on the website A lot of members have been registered on the website and a lot of spam information has been posted.

My website is often registered by some registration software and a large number of illegal users. I solved the problem by using dedecms to batch delete members' SQL statements. Now I have a solution here, so I won’t say any more nonsense and go straight to the topic.

1. The database must be backed up before operation.

As shown in the figure below:

How to delete members in dedecms

2. This method is only applicable to the administrator's website.

dedecms uses SQL to batch delete registered members. Member registration information is mainly in the dede_member table. System/SQL command line tool, query how many members there are in the table select * from dede_member

3. Query results: Run the

code as follows:

SQL:select * from dede_member

There are 598 records in total, and the maximum return is 100.

Delete method:

Open dede background system---->sql command line tool

The code is as follows:

delete from dede_member where not mid="1"

(mid: 1 is myself, so I won’t delete it) as Picture:

How to delete members in dedecms

One SQL statement was successfully executed. Look again, there are no more registered users. This is the end.

《Recommended Learning: dedecms Tutorial

The above is the detailed content of How to delete members in dedecms. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn