mysql丟失root密碼的解決辦法

一、  關閉mysqld進程 /etc/init.d/mysqld stop 二、跳過權限表的限制登陸mysql啓動mysqld進程 /etc/init.d/mysqld start --skip-grant-tables --skip-grant-tables:數據庫啓動的時候 跳躍權限表的限制,不用驗證密碼,直接登陸mysql 三、  登陸mysql mysql -uroot -p 注:密碼輸
相關文章
相關標籤/搜索