mysql 因忘記密碼沒法登錄的辦法 1045錯誤

建立一個新文件,內容以下mysql   SET PASSWORD FOR 'root'@'localhost' = PASSWORD('MyNewPassword');sql 文件名爲 test.sql數據庫  而後命令行 net stop mysqlit mysqld --init-file d:/test.sqltest   這個時候mysql -u root -p date 用新密碼登錄.f
相關文章
相關標籤/搜索