mysql-5.7.10-winx64html
启动 mysqld.exe,报错:mysql
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.sql
加参数 mysqld.exe --console,查看启动 log app
[ERROR] Cannot open Windows EventLog; check privileges, or start server with --log_syslog=0spa
第一个 [ERROR],关于Windows EventLog,忽略.net
[ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.日志
第二处 [ERROR],mysql.plugincode
第三处 [ERROR],Table 'mysql.user' doesn't exist。能够判断初始化出了问题server
运行:htm
mysqld --initialize-insecure
注:在初始化时若是加上 –initial-insecure,则会建立空密码的 root@localhost 帐号,不然会建立带密码的 root@localhost 帐号,密码直接写在日志文件中(datadir/hostname.err)
问题解决~
参考: