美文网首页
ERROR 1045 (28000): Access denie

ERROR 1045 (28000): Access denie

作者: 朱百万 | 来源:发表于2018-03-08 22:28 被阅读0次

环境:Ubuntu 16.0.4  + mysql-server-5.7

安装Ralph3的时候出现这个问题,1个多小时终于解决了,睡醒到单位再装,这问题没出现 ,抓狂

cat /etc/mysql/debian.cnf

使用[client]节提供的用户名和密码:

# mysql -udebian-sys-maint -p 

Enter password: <输入[client]节的密码> 

mysql> UPDATE user SET authentication_string=password('newpassword') where USER='root';

mysql> FLUSH PRIVILEGES; 

mysql> quit 

# mysql -u root -p 

Enter password: <输入新设的密码newpassword> 

mysql> 

相关文章

网友评论

      本文标题:ERROR 1045 (28000): Access denie

      本文链接:https://www.haomeiwen.com/subject/jajufftx.html