问题
以管理员身份中DOS窗口中执行:mysqld –initialize-insecure
遇到下面的错误:
2021-04-22T14:59:56.379230Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use –explicit_defaults_for_timestamp server option (see documentation for more details).
2021-04-22T14:59:56.390754Z 0 [ERROR] –initialize specified but the data directory has files in it. Aborting.
2021-04-22T14:59:56.391177Z 0 [ERROR] Aborting
解决:
重命名datadir下的data文件夹,即另外备份。
再次执行,重新创建新的data文件夹,成功。
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
文章由极客之家整理,本文链接:https://www.bmabk.com/index.php/post/155763.html