首页 > 数据库 > MySQL > 正文

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

2024-07-24 12:53:06
字体:
来源:转载
供稿:网友

my.ini

在参考//www.Vevb.com/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>

以上所述是小编给大家介绍的MySQL 5.7.14 net start mysql 服务无法启动-“NET HELPMSG 3534” 的奇怪问题,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对错新站长站网站的支持!

您可能感兴趣的文章:

mysql 5.7.14 安装配置方法图文教程mysql 5.7以上版本安装配置方法图文教程(mysql 5.7.12/mysql 5.7.13/mysql 5.7.14)MySql 5.7.14 解压版安装步骤详解MySql 5.7.14 服务没有报告任何错误的解决方法(推荐)mysql 5.7.14 安装配置方法图文详细教程mysql 5.7.14 安装配置简单教程Centos6.5编译安装mysql 5.7.14详细教程mysql 5.7.14 安装配置图文教程mysql 5.7.14 安装配置代码分享mysql5.7.14 解压版安装配置方法图文教程(win10)
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表