MySQL 5.7.* 啓動問題

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] Fatal error: Can't open and lock privilege table s: Table 'mysql.user' doesn't exist 

第三處 [ERROR],Table 'mysql.user' doesn't exist。能夠判斷初始化出了問題server

 運行:htm

mysqld  --initialize-insecure
注:在初始化時若是加上 –initial-insecure,則會建立空密碼的 root@localhost 帳號,不然會建立帶密碼的 root@localhost 帳號,密碼直接寫在日誌文件中(datadir/hostname.err)

問題解決~

 參考:

相關文章
相關標籤/搜索