mysql access denied for user root Mysql用户无权限

net   start   mysql

netstop mysql
打开CMD 输入
mysqld --skip-grant-tables;


新开一个CMD 输入
mysql -uroot

然后输入:
use mysql;
update mysql.user set password=password('123456') where user='root';
然后输入:
flush privileges;

原文地址:https://www.cnblogs.com/ruonanxiao/p/2239342.html