AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 1012214
Accepted
Matti Kiviharju
Matti Kiviharju
Asked: 2020-04-15 00:51:06 +0800 CST2020-04-15 00:51:06 +0800 CST 2020-04-15 00:51:06 +0800 CST

将系统从 14.04 升级到 16.04 后,我无法安装 MySQL

  • 772

将系统从 14.04 升级到 16.04 后,我无法安装 MySQL

我试图让 MySQL 工作的所有内容都会产生类似的错误,如下所示:

   root@alm:~# sudo dpkg --configure -a
   Setting up mysql-server-5.7 (5.7.29-0ubuntu0.16.04.1) ...
   Renaming removed key_buffer and myisam-recover options (if present)
   Job for mysql.service failed because the control process exited with error code. See "systemctl      status mysql.service" and "journalctl -xe" for details.
invoke-rc.d: initscript mysql, action "start" failed.
     mysql.service - MySQL Community Server
     Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: enabled)
     Active: activating (auto-restart) (Result: exit-code) since Tue 2020-04-14 11:41:44 EEST; 7ms ago
    Process: 1711 ExecStartPost=/usr/share/mysql/mysql-systemd-start post (code=exited, status=0/SUCCESS)

   Process: 1710 ExecStart=/usr/sbin/mysqld (code=exited, status=1/FAILURE)
   Process: 1700 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exited,   status=0/SUCCESS)
   Main PID: 1710 (code=exited, status=1/FAILURE)

   Apr 14 11:41:44 alm.i4ware.fi systemd[1]: Failed to start MySQL Community Se....
   Apr 14 11:41:44 alm.i4ware.fi systemd[1]: mysql.service: Unit entered failed....
   Apr 14 11:41:44 alm.i4ware.fi systemd[1]: mysql.service: Failed with result ....
   Hint: Some lines were ellipsized, use -l to show in full.
   dpkg: error processing package mysql-server-5.7 (--configure):
   subprocess installed post-installation script returned error exit status 1
   dpkg: dependency problems prevent configuration of mysql-server:
   mysql-server depends on mysql-server-5.7; however:
   Package mysql-server-5.7 is not configured yet.

   dpkg: error processing package mysql-server (--configure):
   dependency problems - leaving unconfigured
   Errors were encountered while processing:
   mysql-server-5.7
   mysql-server

systemctl status mysql.service说:

mysql.service - MySQL Community Server
   Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: en
   Active: activating (start-post) (Result: exit-code) since Tue 2020-04-14 12:2
  Process: 15717 ExecStart=/usr/sbin/mysqld (code=exited, status=1/FAILURE)
  Process: 15709 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exi
 Main PID: 15717 (code=exited, status=1/FAILURE);         : 15718 (mysql-systemd
   CGroup: /system.slice/mysql.service
           └─control
             ├─15718 /bin/bash /usr/share/mysql/mysql-systemd-start post
             └─15750 sleep 1

Apr 14 12:26:22 alm.i4ware.fi systemd[1]: mysql.service: Service hold-off time o
Apr 14 12:26:22 alm.i4ware.fi systemd[1]: Stopped MySQL Community Server.
Apr 14 12:26:22 alm.i4ware.fi systemd[1]: Starting MySQL Community Server...
Apr 14 12:26:24 alm.i4ware.fi systemd[1]: mysql.service: Main process exited, co
...skipping...
● mysql.service - MySQL Community Server
   Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset: en
   Active: activating (start-post) (Result: exit-code) since Tue 2020-04-14 12:2
  Process: 15717 ExecStart=/usr/sbin/mysqld (code=exited, status=1/FAILURE)
  Process: 15709 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=exi
 Main PID: 15717 (code=exited, status=1/FAILURE);         : 15718 (mysql-systemd
   CGroup: /system.slice/mysql.service
           └─control
             ├─15718 /bin/bash /usr/share/mysql/mysql-systemd-start post
             └─15750 sleep 1

Apr 14 12:26:22 alm.i4ware.fi systemd[1]: mysql.service: Service hold-off time o
Apr 14 12:26:22 alm.i4ware.fi systemd[1]: Stopped MySQL Community Server.
Apr 14 12:26:22 alm.i4ware.fi systemd[1]: Starting MySQL Community Server...
Apr 14 12:26:24 alm.i4ware.fi systemd[1]: mysql.service: Main process exited, co

该怎么办?

ubuntu mysql ubuntu-16.04 ubuntu-14.04
  • 1 1 个回答
  • 1107 Views

1 个回答

  • Voted
  1. Best Answer
    Janne Pikkarainen
    2020-04-15T03:59:00+08:002020-04-15T03:59:00+08:00

    如果没有其他帮助,请尝试

    • 将您的 MySQL 数据文件复制到某个安全的地方(外部硬盘驱动器等)
    • 将 Ubuntu 14.04 安装到临时虚拟机
    • 将您的 MySQL 数据文件复制到这个新的虚拟机
    • 使用 mysqldump 或类似工具执行数据库转储
    • 将转储复制到升级后的 Ubuntu 机器
    • 导入转储
    • 0

相关问题

  • 无法通过 Ubuntu VPN 访问外部网络

  • ubuntu apt-get upgrade - 如何在 shell 中单击确定?

  • VirtualBox 上 Ubuntu 的访客优化技巧 [关闭]

  • 外部硬盘上的 virtualbox 虚拟硬盘驱动器(Vista 主机上的 ubuntu 客户机)

  • 如何在 Ubuntu 上挂载 LVM 分区?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve