欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

MySQL 5.7.14 net start mysql 服务无法启动-“NET HELPMSG 3534” 的奇怪问题

程序员文章站 2023-12-16 19:25:40
my.ini 在参考之后 执行mysqld --initialize-insecure出现错误提示 c:\windows\system32>mysqld...

my.ini

在参考之后

执行mysqld --initialize-insecure出现错误提示

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 oft\mysql-5.7.14-winx64\mysql-5.7.14-winx64\share\errmsg.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 

再次执行成功

c:\windows\system32> 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:\windows\system32>net start mysql 

mysql 服务正在启动 . 

mysql 服务已经启动成功。  

c:\windows\system32> 

以上所述是小编给大家介绍的mysql 5.7.14 net start mysql 服务无法启动-“net helpmsg 3534” 的奇怪问题,希望对大家有所帮助

上一篇:

下一篇: