后台学习

MySQL5.7数据库连接报1045[Access denied

2020-01-17  本文已影响0人  菠萝蜜朵弦
image.png
 update user set authentication_string=password('123456')
 where user='root';
image.png

这里要注意的是 mysql5.7以前的密码字段是password,5.7用的是authencation_string字段,如果是5.7以前的版本,要改成

 update user set password=password('123456')
 where user='root';
上一篇 下一篇

猜你喜欢

热点阅读