MariaDB:登陆报错:mysqladmin: connect to server at 'localhost' failed
见图:
解决办法:
- /etc/init.d/mysqld stop
- mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
- mysql -uroot –p
- mysql> UPDATE user SET Password=PASSWORD('新的密码') where USER='root' and hos t='root' or host='localhost';
- mysql> FLUSH PRIVILEGES;
- mysql> quit;
- /etc/init.d/mysqld start
- mysql -uroot –p 输入新的密码
若是本人原创文章,请标明:本文来自博客园,作者:huiy_小溪,转载请注明原文链接:https://www.cnblogs.com/huiy/p/6905361.html。
反之,请标明原创作者,文章链接,所属平台。