mysql-5.7.17-winx64免安装版环境配置 问题小记

安装版问题请自行百度或google

这里总结几个免安装版mysql-5.7.17-winx64配置后,出现问题的解决方法。

具体的环境配置请先参考mysql-5.7.17-winx64免安装版,win10环境下安装配置进行配置。配置完成后可能会出现的几个问题以及解决方法:

1、在mysql的bin目录下面执行: mysqld --install

     报错信息如下:Install/Remove of the Service Denied

     解决方法:打开cmd.exe程序的时候选择“用管理员身份打开”。

     另外,此解决方法对于错误“发生系统错误5”也可以解决。

2、出现TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details)

     出现原因:从 5.6开始,timestamp 的默认行为已经是 deprecated 了

     解决方法:在[mysqld]下添加参数

详情参考MySQL 5.6 中TIMESTAMP with implicit DEFAULT value is deprecated错误

3、出现initialize specified but the data directory in it. Aborting

     解决方法:数据文件目录不应该有其他的文件,这个data目录应该是一个空目录,所以清空data文件夹后重新初始化。在此之前,如果没有data文件夹,要新建一个。

原文地址:https://www.cnblogs.com/hitfredrick/p/6403005.html