当前位置:网站首页>linux下修改mysql密码: ERROR 1396 (HY000): Operation ALTER USER failed for ‘root‘@‘localhost‘
linux下修改mysql密码: ERROR 1396 (HY000): Operation ALTER USER failed for ‘root‘@‘localhost‘
2022-06-30 15:33:00 【多汁多味】
1. 问题重现
mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'xxxxx';
ERROR 1396 (HY000): Operation ALTER USER failed for 'root'@'localhost'
2. 解决方法
use mysql;
select user,host from user where user='root';
发现 host 列的值是 ‘%’,因此将修改密码语句改为:
ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'xxxxxx';
flush privileges;边栏推荐
- 1137: encrypted medical record
- A. Theatre Square(codefore)
- Bye civil engineering, hello CS, can you change the certificate to the Blue Bridge Cup
- My own opinion on lisp
- Steps for commissioning of vertical machining center
- H - Arctic network (minimum spanning tree)
- Kubernetes: a comprehensive analysis of container choreography
- Is pioneer futures safe? What are the procedures for opening futures accounts? How to reduce the futures commission?
- 1131: genetic correlation
- About pickle module - 6 points that beginners must know
猜你喜欢

Kubernetes: a comprehensive analysis of container choreography

Matlab function for limit, definite integral, first-order derivative, second-order derivative (classic examples)

Zero basic C language learning notes -- first introduction -- 2 data types & variables and constants

Voice codec based on machine learning Agora silver: support high quality voice interaction at ultra-low bit rate

Notes on zero basic C language learning -- first introduction -- 1 notes that mom can understand

Advanced functions of ES6 operation array map (), filter (), reduce()

Explain service idempotency design in detail

Shift operator (detailed)

(Niuke) BFS

Basic literacy - four common software architectures
随机推荐
Webrtc: industrial application based on Internet of things
1058 a+b in Hogwarts (20 points)
Advanced functions of ES6 operation array map (), filter (), reduce()
Super comprehensive redis distributed high availability solution: sentry mechanism
Help you accumulate audio and video knowledge, Agora developer's roaming guide officially set sail
Experiment of the planning group of the West University of technology -- pipeline CPU and data processing Adventure
1062 talent and virtue (25 points)
1136: password translation
Summary of system stability construction practice
At the beginning of the 2022 new year, I will send you hundreds of dry articles
Text matching - [naacl 2021] augsbert
1131: genetic correlation
How to do a good job in high concurrency system design? I have summarized three points
1130: find the first character that appears only once
The short video and live broadcast incubation training camp with goods opens nationwide enrollment!
HD mechanical principle · classic dynamic drawing of mechanical design
Notes on zero basic C language learning -- first introduction -- 1 notes that mom can understand
Is pioneer futures safe? What are the procedures for opening futures accounts? How to reduce the futures commission?
Matlab two-dimensional array example (extract data)
The difference between queue and stack