MySQL异常:TIMESTAMP with implicit DEFAULT value is deprecated

来源:互联网 发布:db2导入数据库命令 编辑:程序博客网 时间:2024/05/29 11:33

问题:

D:\software\mysql\mysql-5.7.17-winx64\mysql-5.7.17-winx64\bin>mysqld --initialize
2017-12-13T07:08:35.613357Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2017-12-13T07:08:35.615357Z 0 [ERROR] -- --initialize specified but the data directory has files in it. Aborting..
2017-12-13T07:08:35.616357Z 0 [ERROR] Aborting




原因:data文件夹已经存在



解决办法:删除该bin目录下的该文件夹,删除后重新执行该命令该文件夹会重新生成(如果删除不了可以下载文件粉碎机进行粉碎)



阅读全文
0 0