我检查了这个页面: http ://dev.mysql.com/doc/refman/5.7/en/mysql-install-db.html
mysql_install_db
被删除,但是,当我使用 mysqld --initialize
时。它促进了这些错误和警告。
[Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
[ERROR] --initialize specified but the data directory has files in it. Aborting.
[ERROR] Aborting
第一个可以根据这个忽略: 如何启用explicit_defaults_for_timestamp?
我不知道如何解决第二个问题。
原文由 Pay C. 发布,翻译遵循 CC BY-SA 4.0 许可协议
请仔细阅读错误:
您的目录不为空。您必须删除它的所有内容或选择另一个。