解決linux下mysql忘記密碼的狀況

linux下mysql-5.6忘記root密碼,重置root密碼詳細過程 一、首先中止mysql服務進程: service mysqld stop 二、而後編輯mysql的配置文件my.cnf vim /etc/my.cnf 在my.cnf文件末尾加:skip-grant-tables後保存退出//就能夠直接登陸mysql了 3、啓動mysql: service mysqld st
相關文章
相關標籤/搜索