RHEL6.6 安裝mysql5.7.30啟動初始化時報錯
2020-06-26T17:53:51.084401Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2020-06-26T17:53:51.428940Z 0 [Warning] InnoDB: New log files created, LSN=45790
2020-06-26T17:53:51.461518Z 0 [Warning] InnoDB: Creating foreign key constraint system tables.
2020-06-26T17:53:51.612631Z 0 [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: fea15ba5-b7d5-11ea-bb9a-000c2997db7d.
2020-06-26T17:53:51.613631Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened.
2020-06-26T17:53:51.662444Z 0 [ERROR] Could not generate RSA private key required for X509 certificate.
2020-06-26T17:53:51.662469Z 0 [ERROR] Aborting
其中 Could not generate RSA private key required for X509 certificate. 這一條報錯不知道怎么解決,求各位大佬指點
mysql5.7.30是從官網下的rpm包安裝,其中的mysql-community-test-5.7.30-1.el6.x86_64.rpm包未安裝
-----------------------------------------------
手動執行資料庫初始化后
mysqld --initialize --user=mysql
又提示一下報錯
2020-06-27T19:02:31.077294Z 0 [ERROR] InnoDB: Operating system error number 13 in a file operation.
2020-06-27T19:02:31.077311Z 0 [ERROR] InnoDB: The error means mysqld does not have the access rights to the directory.
2020-06-27T19:02:31.077315Z 0 [ERROR] InnoDB: os_file_get_status() failed on './ibdata1'. Can't determine file permissions
2020-06-27T19:02:31.077318Z 0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error
2020-06-27T19:02:31.678847Z 0 [ERROR] Plugin 'InnoDB' init function returned error.
2020-06-27T19:02:31.678879Z 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2020-06-27T19:02:31.678885Z 0 [ERROR] Failed to initialize builtin plugins.
他是要訪問哪個目錄沒有權限? 我是用root用戶執行的啟動為啥會沒有權限呢?怎么解決?
uj5u.com熱心網友回復:
問題解決了,因為新裝的系統沒有禁用selinux導致,把selinux禁用后重啟就好了。轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/20980.html
標籤:專題技術討論區
上一篇:關于linux解析度設定問題
