In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the solution to the failure of adding users to mysql. It is very detailed and has a certain reference value. Friends who are interested must finish it!
The solution to mysql's failure to add users: first find the bin folder in the mysql installation directory; then cmd go to that directory and log in; then start creating users and grant permissions; and finally log out and log back in.
Solution to mysql's failure to add users:
1. Find the bin folder under the mysql installation directory
2. Change cmd to this directory
C:\ Program Files\ MySQL\ MySQL Server 8.0\ bin >
3. Login: (enter password)
C:\ Program Files\ MySQL\ MySQL Server 8.0\ bin > mysql-uroot-pEnter password: *
4. Start creating users and grant permissions
Mysql > use mysql;Database changedmysql > delete from user where user='gao'; # delete once in a regular way to prevent successful Query OK creation caused by previously established hidden users, 1 row affected (0.30 sec) mysql > flush privileges;Query OK, 0 rows affected (0.04 sec) mysql > create user gao@localhost identified by '1998 users # start to create user Query OK, 0 rows affected (0.09 sec) mysql > flush privileges;# refresh right Query OK, 0 rows affected (0.04 sec) mysql > quitBye
5. Just log out and log in again
The above is all the contents of the solution to the failure of adding users to mysql. Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
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.