In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly explains "how to solve the problem of Mysql users forgetting passwords and password expiration". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to solve the problem of Mysql users forgetting passwords and password expiration.
Forget your password:
Step 1: now find the installation directory of MySQL and change the my-default.ini name of the installation directory to my.ini (D:\ Mysql\ mysql-5.7.13-winx64)
Step 2: add skip-grant-tables to the last line of the my.ini file and save it (this is to remove the security check)
Step 3: restart the MySQL service in the service
Step 4: enter the cmd command to enter mysql-uroot-p in the bin directory of the Mysql installation, and press enter. (here, take the account root as an example)
Step 5: the 'Enter password',' will appear and press enter to enter mysql >
Step 6: enter the command 'use mysql' enter, and then enter the change password sql statement:
Update user set password=password ("new_pass") where user= "root"
Then remove the skip-grant-tables from the my.ini file, restart mysql, and OK.
Note: if it is a MySQL5.7.13 version, an error such as ERROR 1054 (42S22): Unknown column 'password' in' field list' will be reported.
So let's change the sql statement to:
Update user set authentication_string=password ('root') where user='root'
Password expired:
Step 1: enter mysql first through "Mysql forgot password method"
Step 2: change the password_ bonus value of the user table under the mysql database to N
At this point, I believe that "Mysql users forget password and password expiration problem how to solve" have a deeper understanding, might as well come to the actual operation of it! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
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.