錯誤1:wizard安裝最后一頁,出現cannot create Windows service for mysql.error:0 錯誤
解決方法:打開命令行 輸入 sc delete mysql 命令即
C:>sc delete mysql
[SC] DeleteService SUCCESS
重起電腦,或者卸載后重啟再安裝,這樣就好了。我是卸載后重啟的。
卸載重新安裝要注意一個問題,在控制面板中卸載后,要去c:/Documents and Settings/All Users/Application Data目錄下把Mysql文件夾刪掉。里面可能記載了你卸載的配置信息,下次安裝時會有影響。
錯誤2:在讓輸入管理員輸入密碼時除了password和confirm password之外還有一行current password。
這說明你安裝之前沒有把我第1條中說的目錄下把Mysql文件夾刪除。不知道是否影響后續使用,可能記得密碼的話沒關系。另附帶一句,管理員密碼是自己設的,用戶名則為默認root。
安裝成功后可測試如下:打開mysql command line client,輸入密碼,出現
Welcome to the MySQL monitor. Commands end with ; or /g.
Your MySQL connection id is 3
Server version: 5.1.33-community MySQL Community Server (GPL)
Type 'help;' or '/h' for help. Type '/c' to clear the buffer.
mysql>
則安裝成功!
錯誤3:mysql server configuration失敗。
在配置向導中查看錯誤提示有如下語句:
mysql-server-5.5-win32:60 - Adding firewall rule for MySQL55 on port 3306.
mysql-server-5.5-win32:66 - Adding firewall rule failed.
表示防火墻安裝失敗。
查看安裝日志能找到以下語句:
mysql-installer Information: 10 : Attempting to create firewall rule with command: netsh.exe firewall add portopening protocol=TCP port=3306 profile=ALL name=MySQL55 mode=ENABLE scope=ALL
mysql-installer Information: 10 : Unexpected response from netsh: 確定。
mysql-installer Information: 10 : Attempting to create firewall rule with command: netsh.exe advfirewall firewall add rule name=”Port 3306” protocol=TCP localport=3306 dir=in action=allow
mysql-installer Information: 10 : Unexpected response from netsh: 下列命令沒有找到: advfirewall firewall add rule name=”Port 3306” protocol=TCP localport=3306 dir=in action=allow。
這種情況說明mysql的安裝對中文系統支持得不好,不能識別 netsh.exe返回的“確定”信息,繼而運行能在其他windows平臺上運行的netsh.exe advfirewall命令(該命令xp不支持,所以報找不到該命令的錯誤。
解決辦法有兩個:
①將自己的操作系統的語言設置為英文,然后重新安裝mysql 。具體的可以進入控制面板->區域和語言 中去更改;另外,檢查當前用戶是否有啟動防火墻的權限,在計算機服務中查看Application Layer Gateway Service的屬性,查看登錄選項卡中的用戶是否是當前用戶。
新聞熱點
疑難解答