似乎 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
Run Code Online (Sandbox Code Playgroud)
有没有办法安装5.6?
小智 74
我使用了以下方法:
sudo add-apt-repository 'deb http://archive.ubuntu.com/ubuntu trusty universe'
sudo apt-get update
sudo apt install mysql-server-5.6 mysql-client-5.6
Run Code Online (Sandbox Code Playgroud)
如果在执行最后一个命令期间发生错误,请查看此答案的评论部分。
Tar*_*log 10
看起来我设法做到了。
在软件和更新/其他软件中添加了 14.04 存储库:
deb http://archive.ubuntu.com/ubuntu trusty main
Run Code Online (Sandbox Code Playgroud)安装mysql客户端和服务器:
sudo apt install mysql-server-5.6
sudo apt install mysql-client-5.6
Run Code Online (Sandbox Code Playgroud)更新:在安装 5.6 之前,请确保不存在其他 mysql 包:
dpkg -l | grep mysql - 返回 mysql 包列表。
使用apt-get purge <package name>清除它们。
我遇到了同样的问题,我已经执行了以下简单的步骤:
sudo apt-get install software-properties-common
$ sudo add-apt-repository -y ppa:ondrej/mysql-5.6
$ sudo apt-get update
$ sudo apt-get install mysql-server-5.6
Run Code Online (Sandbox Code Playgroud)
解决方案对我有用 干杯!!
| 归档时间: |
|
| 查看次数: |
200925 次 |
| 最近记录: |