赞
踩
- mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'xxxxx';
- ERROR 1396 (HY000): Operation ALTER USER failed for 'root'@'localhost'
- use mysql;
- select user,host from user where user='root';
- 发现 host 列的值是 ‘%’,因此将修改密码语句改为:
-
- ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'xxxxxx';
- flush privileges;
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。