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

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日