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用户执行的启动为啥会没有权限呢?怎么解决?
...全文
694 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
Loki丶 2020-06-27
  • 打赏
  • 举报
回复
问题解决了,因为新装的系统没有禁用selinux导致,把selinux禁用后重启就好了。

18,771

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 专题技术讨论区
社区管理员
  • 专题技术讨论区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧