码迷,mamicode.com
首页 > 数据库 > 详细

mysql报错--initialize specified but the data directory has files in it. Aborting.

时间:2019-12-25 13:16:40      阅读:94      评论:0      收藏:0      [点我收藏+]

标签:time   cto   命令   please   imp   tin   ecif   初始   default   

初始化msyql时出现报错

C:\mysql-5.7.19-winx64> C:\mysql-5.7.19-winx64\bin\mysqld --initialize-insecure
2019-12-25T01:59:21.234788Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2019-12-25T01:59:21.237781Z 0 [ERROR] --initialize specified but the data directory has files in it. Aborting.
2019-12-25T01:59:21.239775Z 0 [ERROR] Aborting

 

原因是data文件夹已经创建

解决办法:删除该目录下的data文件夹,删除后重新执行该命令该文件夹会重新生成,成功初始化

 

mysql报错--initialize specified but the data directory has files in it. Aborting.

标签:time   cto   命令   please   imp   tin   ecif   初始   default   

原文地址:https://www.cnblogs.com/z-x-y/p/12095838.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!