必须先修改my.cnf 添加 skip-grant-tables   然后  执行  update mysql.user set authentication_string=password('123456') where user='root',最后重启MySQL.O了

相关文章: