操作步驟參考網上某博客https://www.runoob.com/mysql/mysql-install.html
在官網下載windows版本MYSQL 版本8.0.18
解壓至C盤\web檔案內
新建檔案,復制粘貼博客里的代碼,改檔案名為my.ini
使用win+x打開管理員權限的cmd
依次輸入cd C:\web\mysql -8.0.18\bin
mysqld --initialize --console
電腦顯示如下:
Microsoft Windows [版本 10.0.14393]
(c) 2016 Microsoft Corporation。保留所有權利。
C:\WINDOWS\system32>cd C:\web\mysql-8.0.18\bin
C:\web\mysql-8.0.18\bin>mysqld - -initialize - -console
2019-12-23T03:50:26.156170Z 0 [System] [MY-010116] [Server] C:\web\mysql-8.0.18\bin\mysqld.exe (mysqld 8.0.18) starting as process 3768
2019-12-23T03:50:26.156423Z 0 [ERROR] [MY-010338] [Server] Can't find error-message file 'C:\web\mysql-8.0.11\share\errmsg.sys'. Check error-message file location and 'lc-messages-dir' configuration directive.
2019-12-23T03:50:26.157606Z 0 [Warning] [MY-013242] [Server] --character-set-server: 'utf8' is currently an alias for the character set UTF8MB3, but will be an alias for UTF8MB4 in a future release. Please consider using UTF8MB4 in order to be unambiguous.
2019-12-23T03:50:26.160402Z 0 [Warning] [MY-010091] [Server] Can't create test file C:\web\mysql-8.0.11\data\mysqld_tmp_file_case_insensitive_test.lower-test
2019-12-23T03:50:26.160891Z 0 [Warning] [MY-010091] [Server] Can't create test file C:\web\mysql-8.0.11\data\mysqld_tmp_file_case_insensitive_test.lower-test
2019-12-23T03:50:26.161907Z 0 [ERROR] [MY-013276] [Server] Failed to set datadir to 'C:\web\mysql-8.0.11\data\' (OS errno: 2 - No such file or directory)
2019-12-23T03:50:26.165220Z 0 [ERROR] [MY-010119] [Server] Aborting
2019-12-23T03:50:26.165607Z 0 [System] [MY-010910] [Server] C:\web\mysql-8.0.18\bin\mysqld.exe: Shutdown complete (mysqld 8.0.18) MySQL Community Server - GPL.
C:\web\mysql-8.0.18\bin>mysqld install
Service successfully installed.
C:\web\mysql-8.0.18\bin>net start mysql
MySQL 服務正在啟動 .
MySQL 服務無法啟動。
服務沒有報告任何錯誤。
請鍵入 NET HELPMSG 3534 以獲得更多的幫助。
C:\web\mysql-8.0.18\bin>net helpmsg 3534
服務沒有報告任何錯誤。
C:\web\mysql-8.0.18\bin>NET HELPMSG 2524
系統無法在訊息檔案中為 NETMSG 找到訊息號為 0x9dc 的訊息文本。
C:\web\mysql-8.0.18\bin>NET HELPMSG 3534
服務沒有報告任何錯誤。
C:\web\mysql-8.0.18\bin>net start mysql
MySQL 服務正在啟動 .
MySQL 服務無法啟動。
服務沒有報告任何錯誤。
請鍵入 NET HELPMSG 3534 以獲得更多的幫助。
C:\web\mysql-8.0.18\bin>NET HELPMSG 3534
服務沒有報告任何錯誤。
C:\web\mysql-8.0.18\bin>
請問為何無法成功安裝,感謝
uj5u.com熱心網友回復:
看這個errorC:\web\mysql-8.0.11\data\' (OS errno: 2 - No such file or directory)
你一開始是cd C:\web\mysql -8.0.18\bin
2個目錄不一樣
my.ini的datadir修改下
uj5u.com熱心網友回復:
輸入密碼后,顯示無法連接本地服務器不懂是什么意思
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/31653.html
標籤:MySQL
上一篇:PGadmin未回應求解
