msyql8修改用户名与密码sql语句报错
Author:zhoulujun Date:
mysql 按照之前修改用户与密码,突然报错了
UPDATE user SET Password = PASSWORD(`123456`) WHERE user = `root`;
报错了,无法修改了
mysql5 升级到mysql8后,修改密码可以用下面的slq语句
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '123456';
刷新数据库
FLUSH PRIVILEGES;
转载本站文章《msyql8修改用户名与密码sql语句报错》,
请注明出处:https://www.zhoulujun.cn/html/DB/mysql/2022_0512_8811.html