问题
以管理员身份中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文件夹,成功。