MySQL 8.0.19 supports locking the account after entering the wrong password three times example: >CREATE USER 'hechunyang'@'localhost' IDENTIFIED BY '123456' FAILED_LOGIN_ATTEMPTS 3 PASSWORD_LOCK_TIME 3; FAILED_LOGIN_ATTEMPTS: represents the number of failed attempts PASSWORD_LOCK_TIME: represents the lock time, in days. Here it is locked for 3 days. If UNBOUNDED is set, it means the lock is permanent until manually unlocked. If you intentionally enter the wrong password more than 3 times, your account will be locked as shown below: # mysql -hlocalhost -uhechunyang -p123456789 -S /tmp/mysql_hcy.sock mysql: [Warning] Using a password on the command line interface can be insecure. ERROR 3955 (HY000): Access denied for user 'hechunyang'@'localhost'. Account is blocked for 3 day(s) (3 day(s) remaining) due to 3 consecutive failed logins. ps: Let's take a look at the mysql 8.0.19 update unable to log in problem cd /usr/local//mysql/bin mysqld --initialize --console Don't panic when reporting errors Initial setup here You will get a temporary password mysql -uroot -p Change password after login Summarize The above is the editor's introduction to the MySQL 8.0.19 support for locking the account after entering the wrong password three times. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website! You may also be interested in:
|
<<: Detailed explanation of Docker cross-host container communication overlay implementation process
>>: An article teaches you how to use js to achieve the barrage effect
Nginx is configured with the same domain name, wh...
Table of contents 1. Purpose 2. Grammar 3. Practi...
Mirroring is also one of the core components of D...
Table of contents Initial Vue Building a Vue deve...
Without further ado, I'll go straight to the ...
Because we were going to build a website, in addi...
Nginx is a powerful, high-performance web and rev...
Technical Background Latex is an indispensable to...
1. Download the repository image docker pull regi...
1. Shut down the mysql service # service mysqld s...
MySQL replace and replace into are both frequentl...
The specific code is as follows: package epoint.m...
Today, I fell into the trap again. I have encount...
Table of contents Working principle: What does th...
A master once said that you should know the datab...