In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Mysql > update user set password=password ("new password") where user= "user name"; error ERROR 1054 (42S22) Unknown column 'password' in' field list' after execution
The reason for the error is that the password field is no longer available in the mysql database in version 5.7, and the password field has been changed to authentication_string.
So please use the following command:
Mysql-u root-pEnter password: * Welcome to the MySQL monitor. Commands end with; or\ g.Your MySQL connection id is 12Server version: 5.7.18-log MySQL Community Server (GPL) * * Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved.Oracle is a registered trademark of Oracle Corporation and/or itsaffiliates. Other names may be trademarks of their respectiveowners.Type 'help;' or'\ h' for help. Type'\ c' to clear the current input statement.mysql > use mysql;Database changedmysql > select User from user; # here is the query user command-| User |-| * | mysql.sys | | root | * rows in set (0.00 sec) mysql > update user set password=password ("*") where user= "*" # change password error ERROR 1054 (42S22): Unknown column 'password' in' field list'mysql > update mysql.user set authentication_string=password ('*') where user='*'; # change password successfully Query OK, 1 row affected, 1 warning (0.00 sec) Rows matched: 1 Changed: 1 Warnings: 1
Mysql > flush privileges; # effective immediately
Query OK, 0 rows affected (0.00 sec)
Mysql > quit
Bye
N > mysql-u *-p # successfully logged in with this user.
Enter password:
...
Mysql >
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
Cat / app/redis/config/redis_6380.conf # INCLUDES # include / p
© 2024 shulou.com SLNews company. All rights reserved.