首页 MySql php – 初始化mysql目录错误

php – 初始化mysql目录错误

我查看了这个页面:http://dev.mysql.com/doc/refman/5.7/en/mysql-install-db.html但是,当我使用mysqld –initialize时,mysql_install_db被删除了.它会促进这些错误和警告.[Warning] TIMESTAMP with implicit DEFAULT value is

我查看了这个页面:
http://dev.mysql.com/doc/refman/5.7/en/mysql-install-db.html

但是,当我使用mysqld –initialize时,mysql_install_db被删除了.它会促进这些错误和警告.

[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

根据这个可以忽略第一个:How to enable explicit_defaults_for_timestamp?

我不知道如何解决第二个问题.

最佳答案
请仔细阅读错误:

[ERROR] –initialize specified but the data directory has files in it. Aborting.

您的目录不为空.您必须删除它的所有内容或选择另一个.

本文来自网络,不代表青岛站长网立场。转载请注明出处: https://www.0532zz.com/html/shujuku/mysql/20210111/15752.html
上一篇
下一篇

作者: dawei

【声明】:青岛站长网内容转载自互联网,其相关言论仅代表作者个人观点绝非权威,不代表本站立场。如您发现内容存在版权问题,请提交相关链接至邮箱:bqsm@foxmail.com,我们将及时予以处理。

为您推荐

返回顶部