2021-04-21T04:35:43.060338Z 0 [ERROR] Fatal error: Can’t open and lock privilege
tables: Table ‘mysql.user’ doesn’t exist
2021-04-21T04:35:43.061239Z 0 [ERROR] Fatal error: Failed to initialize ACL/gran
t/time zones structures or failed to remove temporary table files.
2021-04-21T04:35:43.061821Z 0 [ERROR] Aborting
我是第一次初始化的时候出错的
解决办法:
- 找到my.ini中的datadir=C:/mysql/data
- 把data目录下的文件全部清空
- 执行mysqld --initialize-insecure --user=mysql 初始化
- 执行mysqld --defaults-file=…/my.ini --console,看看是否能够启动