谁动了我的数据库! 2022-06-30 10:40 采纳率: 55.6%
浏览 103
已结题

linux系统rpm方式安装的mysql启动失败

linux系统rpm方式安装的mysql启动失败

安装过程

 [root@iZuf60qvqthaf6xcz6b4h2Z mysql]# rpm -ivh mysql-community-common-5.7.26-1.el7.x86_64.rpm 
warning: mysql-community-common-5.7.26-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Preparing...                          ################################# [100%]
        package mysql-community-common-5.7.26-1.el7.x86_64 is already installed
[root@iZuf60qvqthaf6xcz6b4h2Z mysql]# 
[root@iZuf60qvqthaf6xcz6b4h2Z mysql]# rpm -ivh mysql-community-libs-5.7.26-1.el7.x86_64.rpm 
warning: mysql-community-libs-5.7.26-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Preparing...                          ################################# [100%]
        package mysql-community-libs-5.7.26-1.el7.x86_64 is already installed
[root@iZuf60qvqthaf6xcz6b4h2Z mysql]# 
[root@iZuf60qvqthaf6xcz6b4h2Z mysql]# rpm -ivh mysql-community-client-5.7.26-1.el7.x86_64.rpm 
warning: mysql-community-client-5.7.26-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Preparing...                          ################################# [100%]
        package mysql-community-client-5.7.26-1.el7.x86_64 is already installed
[root@iZuf60qvqthaf6xcz6b4h2Z mysql]# 
[root@iZuf60qvqthaf6xcz6b4h2Z mysql]# rpm -ivh mysql-community-server-5.7.26-1.el7.x86_64.rpm 
warning: mysql-community-server-5.7.26-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
error: Failed dependencies:
        libaio.so.1()(64bit) is needed by mysql-community-server-5.7.26-1.el7.x86_64
        libaio.so.1(LIBAIO_0.1)(64bit) is needed by mysql-community-server-5.7.26-1.el7.x86_64
        libaio.so.1(LIBAIO_0.4)(64bit) is needed by mysql-community-server-5.7.26-1.el7.x86_64
[root@iZuf60qvqthaf6xcz6b4h2Z mysql]# rpm -ivh mysql-community-server-5.7.26-1.el7.x86_64.rpm  --force --nodeps
warning: mysql-community-server-5.7.26-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Preparing...                          ################################# [100%]
Updating / installing...
   1:mysql-community-server-5.7.26-1.e################################# [100%]
[root@iZuf60qvqthaf6xcz6b4h2Z mysql]# systemctl start mysqld
Job for mysqld.service failed because the control process exited with error code. See "systemctl status mysqld.service" and "journalctl -xe" for details.

状态信息


● mysqld.service - MySQL Server
   Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled; vendor preset: disabled)
   Active: failed (Result: start-limit) since Thu 2022-06-30 10:23:20 CST; 2min 16s ago
     Docs: man:mysqld(8)
           http://dev.mysql.com/doc/refman/en/using-systemd.html
  Process: 2491 ExecStart=/usr/sbin/mysqld --daemonize --pid-file=/var/run/mysqld/mysqld.pid $MYSQLD_OPTS (code=exited, status=127)
  Process: 2468 ExecStartPre=/usr/bin/mysqld_pre_systemd (code=exited, status=0/SUCCESS)

Jun 30 10:23:19 iZuf60qvqthaf6xcz6b4h2Z systemd[1]: mysqld.service: control process exited, code=exited status=127
Jun 30 10:23:19 iZuf60qvqthaf6xcz6b4h2Z systemd[1]: Failed to start MySQL Server.
Jun 30 10:23:19 iZuf60qvqthaf6xcz6b4h2Z systemd[1]: Unit mysqld.service entered failed state.
Jun 30 10:23:19 iZuf60qvqthaf6xcz6b4h2Z systemd[1]: mysqld.service failed.
Jun 30 10:23:20 iZuf60qvqthaf6xcz6b4h2Z systemd[1]: mysqld.service holdoff time over, scheduling restart.
Jun 30 10:23:20 iZuf60qvqthaf6xcz6b4h2Z systemd[1]: Stopped MySQL Server.
Jun 30 10:23:20 iZuf60qvqthaf6xcz6b4h2Z systemd[1]: start request repeated too quickly for mysqld.service
Jun 30 10:23:20 iZuf60qvqthaf6xcz6b4h2Z systemd[1]: Failed to start MySQL Server.
Jun 30 10:23:20 iZuf60qvqthaf6xcz6b4h2Z systemd[1]: Unit mysqld.service entered failed state.
Jun 30 10:23:20 iZuf60qvqthaf6xcz6b4h2Z systemd[1]: mysqld.service failed.

版本信息


 mysql --version
mysql  Ver 14.14 Distrib 5.7.26, for Linux (x86_64) using  EditLine wrapper
  • 写回答

3条回答 默认 最新

查看更多回答(2条)

报告相同问题?

问题事件

  • 系统已结题 7月8日
  • 已采纳回答 6月30日
  • 创建了问题 6月30日

悬赏问题

  • ¥15 有两个非常“自以为是”烦人的问题急期待大家解决!
  • ¥30 STM32 INMP441无法读取数据
  • ¥15 R语言绘制密度图,一个密度曲线内fill不同颜色如何实现
  • ¥100 求汇川机器人IRCB300控制器和示教器同版本升级固件文件升级包
  • ¥15 用visualstudio2022创建vue项目后无法启动
  • ¥15 x趋于0时tanx-sinx极限可以拆开算吗
  • ¥15 pyqt信号槽连接写法
  • ¥500 把面具戴到人脸上,请大家贡献智慧,别用大模型回答,大模型的答案没啥用
  • ¥15 任意一个散点图自己下载其js脚本文件并做成独立的案例页面,不要作在线的,要离线状态。
  • ¥15 各位 帮我看看如何写代码,打出来的图形要和如下图呈现的一样,急