數據庫練習----root恢復密碼

root恢復密碼 1)修改配置文件/etc/my.cnf -1.添加跳過受權檢測 [mysql] skip-grant-tables -2.重啓服務 systemctl restart mysqld -3.登陸數據庫(須要root權限,隨便輸入密碼) -4.進入後查詢mysql.user表結構,找到字段authentication_string,複製字段名, -5.經過update更改語句,直接修
相關文章
相關標籤/搜索