执行 mysqld --initialize
[ERROR] --initialize specified but the data directory has files in it. Aborting.
[错误]--指定了初始化,但数据目录中有文件。正在中止
清除掉 数据文件。
对应的目录 : /usr/local/mysql/data
查看现在目录内容:
把这些都删除掉。
然后重新执行:
mysqld --initialize
文章来源:https://www.toymoban.com/news/detail-794761.html
可以正常执行了。文章来源地址https://www.toymoban.com/news/detail-794761.html
到了这里,关于【mysql】[ERROR] --initialize specified but the data directory has files in it. Aborting.的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!