MySQL改密码

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

原文地址:https://www.cnblogs.com/iyoume2008/p/10097345.html