MySQL 忘记密码

# vim /etc/my.cnf
skip-grant-tables


# /etc/init.d/mysqld restart


#mysql -uroot
UPDATE user SET Password = password ('R5GK8B2XdxGrx2dC') WHERE User = 'root' ;
posted @ 2018-04-20 17:49  消磨_时间  阅读(84)  评论(0)    收藏  举报