編碼的世界 / 優質文選 / 歷史

安裝mysql時出現應用程序無法正常啟動(0xc000007b)、初始化失敗以及密碼忘記怎樣重置?


2021年12月22日
-   


3、安裝解壓版mysql時,密碼忘記了怎樣重置?
3.1 用戶登錄 mysql -uroot -p (直接點擊回車,密碼為空) 3.2 選擇數據庫 use mysql; 3.3 重置密碼 在5.7版本中不存在password字段,所有我們要用以下修改進行重置密碼 update user set authentication_string=password(‘123456’) where user=‘root’; 3.4 執行 flush privileges;

熱門文章