【问题标题】:facing error while nstalling mysql in ubuntu在 ubuntu 中安装 mysql 时遇到错误
【发布时间】:2016-11-16 20:48:04
【问题描述】:

我正在尝试安装 mysql-community-server_5.7.13-1ubuntu16.04_amd64.deb。 在此之前我已经运行了命令 sudo apt-get remove --purge mysql* sudo apt-get 自动删除 sudo apt-get 自动清理

之后我面临以下错误。 cn 有人给我解决方案。

testuser@mon-mod:/usr/mysql$ sudo dpkg -i mysql-community-server_5.7.13-1ubuntu16.04_amd64.deb
(Reading database ... 63795 files and directories currently installed.)
Preparing to unpack mysql-community-server_5.7.13-1ubuntu16.04_amd64.deb ...
.
Unpacking mysql-community-server (5.7.13-1ubuntu16.04) over (5.7.13-1ubuntu16.04) ...
dpkg: dependency problems prevent configuration of mysql-community-server:
 mysql-community-server depends on mysql-common (= 5.7.13-1ubuntu16.04); however:
  Package mysql-common is not installed.
 mysql-community-server depends on mysql-client (= 5.7.13-1ubuntu16.04); however:
  Package mysql-client is not installed.
 mysql-community-server depends on libmecab2 (>= 0.996-1.2ubuntu1); however:
  Package libmecab2 is not installed.
 mysql-community-server depends on libstdc++6 (>= 5.2); however:
  Version of libstdc++6:amd64 on system is 4.8.4-2ubuntu1~14.04.1.
 mysql-community-server depends on init-system-helpers (>= 1.18~); however:
  Version of init-system-helpers on system is 1.14.

dpkg: error processing package mysql-community-server (--install):
 dependency problems - leaving unconfigured
Processing triggers for ureadahead (0.100.0-16) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Errors were encountered while processing:
 mysql-community-server
testuser@mon-mod:/usr/mysql$

【问题讨论】:

    标签: mysql linux ubuntu mysqli mysql-error-1064


    【解决方案1】:

    您可以在 Ubuntu 中使用 apt-get 包管理器来安装 MySQL 服务器。它将处理依赖关系。在 Ubuntu 中你可以使用

    sudo apt-get install mysql-server
    

    sudo apt-get install mysql-server-5.7
    

    【讨论】:

    • 服务器没有网络连接。那么你能提供输入如何离线安装
    猜你喜欢
    • 1970-01-01
    • 2015-07-26
    • 1970-01-01
    • 2022-12-09
    • 2015-05-29
    • 2019-05-06
    • 2017-06-04
    • 1970-01-01
    • 2018-08-28
    相关资源
    最近更新 更多