问题描述
似乎Ubuntu 16.04随MySQL 5.7一起发布,但我需要安装5.6。
当我尝试显式安装它sudo apt-get install mysql-server-5.6时,我收到以下错误:
Package mysql-server-5.6 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-community-server:i386 mysql-common:i386 mysql-community-server mysql-common percona-xtradb-cluster-server-5.6:i386 percona-server-server-5.6:i386 mysql-testsuite-5.7:i386
mariadb-server-10.0:i386 percona-xtradb-cluster-server-5.6 percona-server-server-5.6 mysql-testsuite-5.7 mariadb-server-10.0 mysql-server-core-5.7:i386 mysql-server-5.7:i386 mysql-server-core-5.7
mysql-server-5.7
有没有办法安装5.6?
最佳解决方案
我使用了以下方法:
sudo add-apt-repository 'deb http://archive.ubuntu.com/ubun