【发布时间】:2019-10-23 10:41:30
【问题描述】:
以下是我的安装步骤:
- sudo wget -c https://dev.mysql.com/get/mysql-apt-config_0.8.13-1_all.deb
- sudo dpkg -i mysql-apt-config_0.8.13-1_all.deb
- 在Configuration GUI中,选择mysql 8.0,输入OK退出GUI
- sudo apt-get install mysql-server
然后我收到了一些消息:
The following additional packages will be installed:
libaio1 libevent-core-2.1-6 mysql-client-5.7 mysql-client-core-5.7 mysql-common mysql-server-5.7
mysql-server-core-5.7
Suggested packages:
mailx tinyca
Recommended packages:
libhtml-template-perl
The following NEW packages will be installed:
libaio1 libevent-core-2.1-6 mysql-client-5.7 mysql-client-core-5.7 mysql-common mysql-server
mysql-server-5.7 mysql-server-core-5.7
0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/20.6 MB of archives.
After this operation, 159 MB of additional disk space will be used.
Do you want to continue? [Y/n]
如果我输入Y,apt会安装mysql5.7,而不是8.0的版本,正如消息所说的那样。
我怎样才能安装预期的版本?
【问题讨论】:
-
我认为this 可能会有所帮助...
-
该文档指出了 2 种安装 mysql 的方法。我已经尝试了第一个(MySQL APT 存储库)但失败了,我应该尝试第二个:“MySQL 开发者专区的下载区”吗?
-
我发现了这个:Installing MySQL on Linux Using the MySQL APT Repository,好像mysql8.0不支持ubuntu18.10?