此文章為多處文章整合
出現這個問題很無語,以為安裝錯了或者目錄設定錯了,或者my.ini少了\\,或者初始化錯了,最後搞了一下午,發現直接輸入mysqld --console服務端就開好了:c:\web\mysql-8.0.17-winx64\bin>mysqld --console
2019-08-22t11:13:12.118311z 0 [system] [my-010116] [server] c:\web\mysql-8.0.17-
winx64\bin\mysqld.exe (mysqld 8.0.17) starting as process 4200
2019-08-22t11:13:12.125312z 0 [warning] [my-013242] [server] --character-set-ser
ver: '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-08-22t11:13:16.860582z 0 [warning] [my-010068] [server] ca certificate ca.p
em is self signed.
2019-08-22t11:13:17.482618z 0 [system] [my-010931] [server] c:\web\mysql-8.0.17-
winx64\bin\mysqld.exe: ready for connections. version: '8.0.17' socket: '' por
t: 3306 mysql community server - gpl.
2019-08-22t11:13:17.571623z 0 [system] [my-011323] [server] x plugin ready for c
onnections. bind-address: '::' port: 33060
接著客戶端就可以連線了:
c:\users\administrator>cd c:\web\mysql-8.0.17-winx64\bin
c:\web\mysql-8.0.17-winx64\bin>mysql -u root -p
enter password: ************
welcome to the mysql monitor. commands end with ; or \g.
your mysql connection id is 8
server version: 8.0.17
oracle is a registered trademark of oracle corporation and/or its
affiliates. other names may be trademarks of their respective
owners.
type 'help;' or '\h' for help. type '\c' to clear the current input statement.
mysql>
來自1、啟動成功後登入mysql輸入:mysql –u root –p
2.之後輸入密碼(開啟mysql根目錄下的data資料夾,找到字尾是.err的檔案以文字開啟找到password臨時密碼(可以ctrl+f搜尋)然後在cmd中輸入該臨時密碼。)
3.進入資料庫就可以修改密碼了
alter user 『root』@』localhost』 identified by 『你的新密碼』;
MySQL安裝教程
一 mysql的安裝 安裝完成了,出現如下介面將進入mysql配置嚮導。選擇配置方式,detailed configuration 手動精確配置 standard configuration 標準配置 我們選擇 detailed configuration 方便熟悉配置過程。選擇伺服器型別,deve...
MySQL安裝教程
自定義安裝超長動態圖 很詳細呀!安裝完成後,使用管理員方式 開啟windows powershell注意是 管理員模式 mysql uroot p 登陸enter password welcome to the mysql monitor.commands end with or g.your my...
MySQL安裝教程
將zip包解壓縮到要安裝的路徑,比如如下路徑 d mysql在系統變數中配置mysql的路徑,新增變數mysql home 在path路徑中配置mysql,如下圖 在安裝目錄下新建檔案my.ini,檔案內容如下 mysql 設定mysql客戶端預設字符集 default character set ...