my.ini
在參考https://www.jb51.net/article/100284.htm之后
執(zhí)行mysqld --initialize-insecure出現(xiàn)錯(cuò)誤提示
C:\WINDOWS\system32>mysqld --initialize-insecure
mysqld: Can't create directory 'D:\Program Files oft\mysql-5.7.14-winx64\mysql-5.7.14-winx64\data\' (Errcode: 2 - No such file or directory)
2016-12-16T02:12:53.583901Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2016-12-16T02:12:53.583901Z 0 [Warning] 'NO_ZERO_DATE', 'NO_ZERO_IN_DATE' and 'ERROR_FOR_DIVISION_BY_ZERO' sql modes should be used with strict mode. They will be merged with strict mode in a future release.
2016-12-16T02:12:53.583901Z 0 [Warning] 'NO_AUTO_CREATE_USER' sql mode was not set.
2016-12-16T02:12:53.583901Z 0 [ERROR] Can't find error-message file 'D:\Program Files oftmysql-5.7.14-winx64mysql-5.7.14-winx64shareerrmsg.sys'. Check error-message file location and 'lc-messages-dir' configuration directive.
2016-12-16T02:12:53.583901Z 0 [ERROR] Aborting
只好把目錄改成反斜杠
[client]
port=3306
default-character-set=utf8
[mysqld]
port=3306
character_set_server=utf8
basedir=D:/Program Files/soft/mysql-5.7.14-winx64/mysql-5.7.14-winx64
#解壓目錄
datadir=D:/Program Files/soft/mysql-5.7.14-winx64/mysql-5.7.14-winx64/data
#解壓目錄下data目錄
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
[WinMySQLAdmin]
D:/Program Files/soft/mysql-5.7.14-winx64/mysql-5.7.14-winx64/bin/mysqld.exe
再次執(zhí)行成功
C:\WINDOWSsystem32> mysqld install MySQL --defaults-file="D:\Program Files\soft\mysql-5.7.14-winx64\mysql-5.7.14-winx64\my.ini"
Service successfully installed.
C:\WINDOWSsystem32>net start mysql
MySQL 服務(wù)正在啟動(dòng) .
MySQL 服務(wù)已經(jīng)啟動(dòng)成功。
以上所述是小編給大家介紹的MySQL 5.7.14 net start mysql 服務(wù)無法啟動(dòng)-“NET HELPMSG 3534” 的奇怪問題,希望對(duì)大家有所幫助,如果大家有任何疑問請給我留言,小編會(huì)及時(shí)回復(fù)大家的。在此也非常感謝大家對(duì)腳本之家網(wǎng)站的支持!
您可能感興趣的文章:- MySQL 5.7.9 服務(wù)無法啟動(dòng)-“NET HELPMSG 3534”的解決方法
- MySQL8.0無法啟動(dòng)3534的解決方法