Mysql 密码重置

Centos 上的mysql 忘记密码,重置步骤如下: 1、 whereis my.cnf 可以找到my.cnf 的文件位置,在最底下输入 : skip-grant-tables 。表示跳过校验密码的步骤; 2、 重启mysqld。 service mysqld restart 3、登录并修改MySQL的root密码 #mysql Welcome to the MySQL monitor. Com
相关文章
相关标签/搜索