欢迎来到代码驿站!

Mysql

当前位置:首页 > 数据库 > Mysql

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

时间:2021-05-04 10:49:51|栏目:Mysql|点击:

my.ini

在参考https://www.jb51.net/article/100284.htm之后

执行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> 

上一篇:Win10下mysql 8.0.15 安装配置方法图文教程

栏    目:Mysql

下一篇:mysql5.7.22 下载过程图解

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

本文地址:http://www.codeinn.net/misctech/114499.html

推荐教程

广告投放 | 联系我们 | 版权申明

重要申明:本站所有的文章、图片、评论等,均由网友发表或上传并维护或收集自网络,属个人行为,与本站立场无关。

如果侵犯了您的权利,请与我们联系,我们将在24小时内进行处理、任何非本站因素导致的法律后果,本站均不负任何责任。

联系QQ:914707363 | 邮箱:codeinn#126.com(#换成@)

Copyright © 2020 代码驿站 版权所有