Log in to the database of Discuz Forum and execute the following MySQL commands:
1 2 |
|
Use the database of Discuz Forum
1 2 |
|
View the table structure in the database of Discuz Forum
1 |
|
QueryDiscuz forum administrator account login password
1 |
|
Set a new password and use md5 to generate a key
1 2 3 4 5 6 |
|
According to the md5 value set above, change the password of the forum administrator user
1 2 3 4 5 |
|
Next, clean up the cache of MySQL database
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
|
and then , now log in to the forum, enter the user name admin, new password, you can log in successfully
The method of clearing the cache mainly uses the flush command. In order to execute FLUSH, you must have reload permission
flush hosts is mainly used to clear the host cache table
flush logs is mainly used to close the current binary log file and create a new file
flush privileges is mainly used to update the host cache table after re-authorization. Just in case, let the new permissions take effect immediately
flush tables mainly closes all open tables, and this operation will clear the contents of the query cache
flush tables with read lock mainly closes All open tables add a read lock to all tables in the database at the same time
flush status resets most statusVariables to 0
flush master deletes all binary log files in the binary log index file
flush query cacheReorganizes the query cache to eliminate fragments and improve performance
flush slave is similar to resetting replication, allowing Forgot the replication location of the master database from the database
[Related recommendations]
1. Special recommendation:"php program "Employee Toolbox" V0.1 version download
2. Free mysql online video tutorial
##3.The above is the detailed content of Detailed explanation on clearing MySQL database cache and changing forum password. For more information, please follow other related articles on the PHP Chinese website!