数据库
首页 > 数据库> > linux – 我想将mysql vertion 5.5.59更新为5.7.21

linux – 我想将mysql vertion 5.5.59更新为5.7.21

作者:互联网

我正在尝试更新我的mysql版本,但它显示错误我正在使用Linux mint 17.3版本

用过的命令

sudo apt-get install mysql-server mysql-client mysql-common mysql-server-core-5.7 mysql-client-core-5.7

它显示了这一点

  Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package mysql-client-core-5.7 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  mysql-cluster-community-client:i386 libmysqlclient-dev:i386
  mysql-community-client:i386 mysql-cluster-community-client
  libmysqlclient-dev mysql-community-client

Package mysql-server-core-5.7 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  mysql-common:i386 mysql-cluster-community-server:i386
  mysql-community-server:i386 mysql-common mysql-cluster-community-server
  mysql-community-server

E: Package 'mysql-server-core-5.7' has no installation candidate
E: Package 'mysql-client-core-5.7' has no installation candidate

mysql -v

mysql  Ver 14.14 Distrib 5.5.59, for debian-linux-gnu (x86_64) using readline 6.3

我怎样才能解决这个问题??

解决方法:

首先,永远不要尝试卸载或清除您的mysql包.您的数据库永远都会从您的系统中删除…

其次,您应该尝试使用apt-cache policy mysql *来检查系统上可用的版本.

第三,你应该对所有数据库进行备份.

如果是简单的更新,你应该尝试sudo apt-get upgrade mysql-client mysql-server mysql-common.

或者更具侵略性的sudo apt-get dist-upgrade mysql-client mysql-server mysql-common

如果没有,请使用apt-cache policy mysql *输出中可用的更新版本.

而且,从我所看到的,你的source.list似乎不包含任何包含mysql-server-core-5.7的repo.所以使用apt-cache策略mysql *.

标签:mysql-5-7,linux
来源: https://codeday.me/bug/20190806/1602733.html