MySQL的下载与安装:https://blog.csdn.net/weixin_42869365/article/details/83472466
在cmd中执行mysqld --initialize --console语句报错
mysqld: Could not create or access the registry key needed for the MySQL application to log to the Windows EventLog. Run the application with sufficient privileges once to create the key, add the key manually, or turn off logging for that application
.)
解决办法:在配置文件mysql.ini中加上
[mysqld]
explicit_defaults_for_timestamp=true
2、报错如下:2
020-08-25T08:40:32.425253Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). 2020-08-25T08:40:32.974813Z 0 [ERROR] --initialize specified but the data directory has files in it. Aborting. 2020-08-25T08:40:33.030731Z 0 [ERROR] Aborting
解决办法:删除和bin在同一目录下的data文件夹
tips:cmd要以管理员的身份运行