MySQL5.7 初始化启动报错:initialize specified but the data directory has files in it. Aborting

今天安装好mysql5.7启动是报下面的错误,然后想到需要初始化mysql  使用 mysqld --initialize

2019-10-31T07:52:53.807647Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use –explicit_defaults_for_timestamp server option (see documentation for more details).
2019-10-31T07:52:53.809065Z 0 [ERROR] –initialize specified but the data directory has files in it. Aborting.
2019-10-31T07:52:53.809095Z 0 [ERROR] Aborting

MySQL5.7 初始化启动报错:initialize specified but the data directory has files in it. Aborting

MySQL5.7 初始化启动报错:initialize specified but the data directory has files in it. Aborting

最后仔细看了报错的原因,是因为第一次初始化的时候没初始化好,产生乐data目录,删除data目录重新初始化即可,顺便提一下如果mysqld -install注册失败,首先要使用管理员权限的命令提示符,然后便可注册成功,正常使用mysql

相关文章:

  • 2021-12-05
  • 2022-12-23
  • 2021-07-11
  • 2022-12-23
  • 2022-01-18
  • 2022-12-23
  • 2022-12-23
  • 2022-02-13
猜你喜欢
  • 2021-12-25
  • 2022-12-23
  • 2021-06-03
  • 2022-01-15
  • 2021-11-29
相关资源
相似解决方案