MySQL 服務無法啟動

2021-09-03 00:27:23 字數 1544 閱讀 3798

輸入mysqld -install

定位到錯誤為:

unknown variable 'default-character-set=utf8'

找到配置檔案:

設定[server]下的'default-character-set=utf8'改為:

刪除目錄下的data資料夾

重新進入dos的命令列,一定要用administrator進入,執行:

mysqld --initialize --user=root --console
初始化了以後,可以看到mysql目錄下,多了data目錄

d:\program files\mysql\bin>net start mysql

mysql 服務正在啟動 .

mysql 服務已經啟動成功。

d:\program files\mysql\bin>mysql -u root -p

enter password: ************

welcome to the mysql monitor. commands end with ; or \g.

your mysql connection id is 4

server version: 5.7.10

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>

mysql> set password = password('root') ;
這個時候,windows下的mysql環境就已經安裝好了。

MySQL 服務無法啟動

mysql 安裝啟動問題 使用mdi全裝就少很多問題,今天使用壓縮包zip解壓安裝遇到乙個問題,順便記錄一下 在配置好環境變數後,修改了my default.ini檔案後 需要啟動mysql,使用命令 net start mysql 但是在控制台出現 mysql 服務正在啟動。mysql服務無法啟動...

mysql 服務無法啟動

mysql 無法啟動 沒有任何服務錯誤 把 my.ini 一定要放到 bin 目錄下面 然後在 bin 目錄下面操作 先刪除 data 資料夾 再執行 然後輸入如下命令回車即可 mysqld initialize insecure user mysql 執行完上面命令後,mysql會自建乙個data...

mysql 服務無法啟動

mysql 服務正在啟動 mysql 服務無法啟動。服務沒有報告任何錯誤。請鍵入 net helpmsg 3534 以獲得更多的幫助。又找了半天其他人解決這個問題的辦法,照著做沒搞定。然後 mysql console 2019 01 24t02 27 27.237200z 0 error my 00...