赞
踩
环境:
Ubuntu 18.04.1 LTS
mysql 5.7(初次安装,没有数据)
目标:将mysql升级到8.0;不考虑数据问题;
https://dev.mysql.com/downloads/
将下载的mysql-apt-config_0.8.15-1_all.deb文件复制到服务器;
dpkg -i mysql-apt-config_0.8.15-1_all.deb
Configuration file '/etc/mysql/mysql.conf.d/mysqld.cnf'
==> Modified (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** mysqld.cnf (Y/I/N/O/D/Z) [default=N] ? Y
apt update
apt install mysql-server
查看版本
mysql -V
mysql Ver 8.0.25 for Linux on x86_64 (MySQL Community Server - GPL)
Mysql已成功升级!
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。