MySQL數據庫忘記密碼

1.停止mysql服務進程 service mysqld stop 2.編輯MySQL的配置文件my.cnf vim /etc/my.cnf 3.重啓MySQL服務 systemctl restart mysqld 4.登錄數據庫,執行以下命令 mysql -u root  use mysql; update user set password=password("test12") where u
相關文章
相關標籤/搜索