In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
MySQL 8.0.19 supports entering incorrect passwords for 3 times and locking accounts.
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 that the lock is permanent until it is manually unlocked.
Deliberately enter the wrong password more than 3 times, and the account is locked, as shown below:
# mysql-hlocalhost-uhechunyang-p123456789-S / tmp/mysql_hcy.sockmysql: [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
Cd / usr/local//mysql/binmysqld-initialize-console
Do not panic when you report a mistake
/ usr/local/var/mysql delete the files inside
Set up this initial setting
Mysqld-initialize-console
You'll get a temporary password.
Change password after mysql-uroot-p login
Alter user 'root'@'localhost' identified by' 123456'
Summary
The above is the function of MySQL 8.0.19 that Xiaobian introduced to you. I hope it will be helpful to you. If you have any questions, please leave me a message and the editor will reply you in time. Thank you very much for your support to the website!
If you think this article is helpful to you, you are welcome to reprint it, please indicate the source, thank you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.