centos7 mysql忘記密碼重置密碼

1.添加配置 vim /etc/my.cnf 添加如下內容: 添加一條:skip-grant-tables :wq保存退出 2.重啓mysql:service mysqld start 3.直接輸入:mysql,無密碼的登陸進去 4.use mysql 5.update mysql.user set authentication_string=password('這裏輸入你的密碼') where
相關文章
相關標籤/搜索