Linux
我想將 mysql 版本 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
. 所以使用apt-cache policy mysql*
.