mysqld --initialize 执行失败

版权声明:版权所有,拷贝请留言 https://blog.csdn.net/u014044032/article/details/86520769

mysqld --initialize 执行失败

D:\mysql-5.7.21-winx64\bin>mysqld  --initialize
2018-01-17T06:18:31.733713Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is
 deprecated. Please use --explicit_defaults_for_timestamp server option (see doc
umentation for more details).
2018-01-17T06:18:31.738714Z 0 [ERROR] --initialize specified but the data direct
ory has files in it. Aborting.

2018-01-17T06:18:31.739714Z 0 [ERROR] Aborting

原因是因为data目录已经存在导致的,删除data目录重新执行初始化命令即可

猜你喜欢

转载自blog.csdn.net/u014044032/article/details/86520769