linux [1045] Access denied for user 'root'@'localhost' (using password: YES)

打开网站的时候报错:mysql

[1045] Access denied for user 'root'@'localhost' (using password: YES)sql

解决方案:网站

systemctl stop mariadb.service #中止MariaDBui

[root@localhost ~]# mysql
mysql>use mysql
mysql>update user set password=password("123456") where user="root";
mysql>flush privileges;spa

mysql>quit;.net

而后启动:systemctl start mariadbget

相关文章
相关标签/搜索