MySQL安裝失敗後

2021-08-25 18:55:34 字數 593 閱讀 6134

相信有朋友遇到過這個問題,特別是不是第一次安裝mysql的朋友。

1、將原來的mysql解除安裝掉,然後把安裝目錄手動清除

2、在登錄檔中查詢mysql,刪除登錄檔資訊

4. 建立乙個 txt檔案 (例如 c:\mysqlpassword.txt)),檔案內容如下: update mysql.user set password=password(』mypassword』) where user=』root』; flush privileges;

5.開啟命令列視窗並且執行如下命令 「c:\program files\mysql\mysql server5.1\bin\mysqld」 –defaults-file=」c:\program files\mysql\mysql server 5.1\my.ini」 –init-file=c:\mysqlpassword.txt –standalone –console 執行完後,保持視窗不關閉

6.開啟另外乙個命令列視窗,執行如下命令 「c:\program files\mysql\mysql server 5.1\bin\mysqladmin」 -u root -p shutdown (輸入在 mysqlpassword.txt 中指定的密碼)

mysql轉移後,啟動失敗問題

今天將mysql從c盤轉移到d盤,結果怎麼都啟動不了,檢視發現是因為執行檔案路徑還是之前的。mysql可執行檔案路徑和安裝目錄不一致,導致mysql服務啟動失敗,所以此時需要修改可執行路徑。然後網上找了一些方法,通過下面方法解決了。1,cmd,輸入regedit,開啟登錄檔編輯器。2,hkey lo...

安裝MySQL 5 6失敗

安裝mysql 5.6報這個錯誤 the installer has encountered an unexpected error installing this package.this may indicate a problem with this package.the error cod...

unbantu安裝mysql登入失敗

忘記了mysql密碼,當我輸入mysql u root p時,系統會要求你輸入密碼,沒有密碼就回車,結果出現了錯誤 error 1698 28000 access denied for user root localhost 方法一 使用高許可權進入 參考文章裡說由於使用sudo apt get i...