打开网站的时候报错:
[1045] Access denied for user 'root'@'localhost' (using password: YES)
解决方案:
systemctl stop mariadb.service #停止MariaDB
[root@localhost ~]# mysql
mysql>use mysql
mysql>update user set password=password("123456") where user="root";
mysql>flush privileges;
mysql>quit;
然后启动:systemctl start mariadb