我正在尝试启动 mysql 的 bin 版本,但我遇到了以下错误。从命令行运行时,我得到以下跟踪。
D:softwaresMySqlbin>mysqld.exe --initialize-insecure
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.
2018-04-11T08:01:15.926038Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2018-04-11T08:01:15.928390Z 0 [ERROR] Cannot open Windows EventLog; check privileges, or start server with --log_syslog=0
2018-04-11T08:01:15.933195Z 0 [ERROR] --initialize specified but the data directory has files in it. Aborting.
2018-04-11T08:01:15.933518Z 0 [ERROR] Aborting
我刚刚遇到了同样的问题。答案是以管理员身份运行cmd.exe以允许访问注册表项。