ERROR 1698 (28000): Access denied for user 'root'@'localhost'

后端 未结 17 1911
执笔经年
执笔经年 2020-11-22 10:00

I\'m setting up a new server and keep running into this problem.

When I try to login to the MySQL database with the root user, I get the error:

17条回答
  •  时光说笑
    2020-11-22 10:35

    First step: go to /etc/phpmyadmin/config.inc.php then uncomment lines where you find AllowNoPassword . Second step: login to your mysql default account

    mysql -u root -p
    use mysql;
    update user set plugin="" where user='root';
    flush privilege;
    

    and that's all!

提交回复
热议问题