RHEL6.6 安装mysql5.7.30启动初始化时报错
Loki丶 2020-06-27 02:49:25 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用户执行的启动为啥会没有权限呢?怎么解决?