--initialize specified but the data directory has files in it. Aborting.
错误产生环境安装mysql7 时,执行mysqld --initialize命令产生错误描述D:\mysql\mysql-5.7.30-winx64\bin>mysqld --initialize2021-03-01T12:45:30.784253Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please
·
错误产生环境
安装mysql7 时,执行mysqld --initialize命令产生
错误描述
D:\mysql\mysql-5.7.30-winx64\bin>mysqld --initialize
2021-03-01T12:45:30.784253Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2021-03-01T12:45:30.786533Z 0 [ERROR] --initialize specified but the data directory has files in it. Aborting.
2021-03-01T12:45:30.786945Z 0 [ERROR] Aborting
错误原因
因为mysql的目录下已经存在data文件夹
解决办法
把data文件夹删除再执行mysqld --initialize语句
更多推荐
所有评论(0)