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

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 如何让子窗口鼠标滚动独立,不要传递消息给主窗口
  • ¥15 如何能达到用ping0.cc检测成这样?如图
  • ¥15 关于#DMA固件#的问题,请各位专家解答!
  • ¥15 matlab生成的x1图不趋于稳定,之后的图像是稳定的水平线
  • ¥15 请问华为OD岗位的内部职业发展通道都有哪些,以及各个级别晋升的要求
  • ¥20 微信小程序 canvas 问题
  • ¥15 系统 24h2 专业工作站版,浏览文件夹的图库,视频,图片之类的怎样删除?
  • ¥15 怎么把512还原为520格式
  • ¥15 MATLAB的动态模态分解出现错误,以CFX非定常模拟结果为快照
  • ¥15 求高通平台Softsim调试经验