Ubuntu升级MySQL 5.7到8.0

下载MySQL APT Repository

https://dev.mysql.com/get/mysql-apt-config_0.8.22-1_all.deb

wget https://dev.mysql.com/get/mysql-apt-config_0.8.22-1_all.deb

安装MySQL APT Repository

sudo dpkg -i mysql-apt-config_0.8.22-1_all.deb

选择当前MySQL版本5.7

选择新版本8.0

选择OK

安装新版本MySQL

sudo apt-get update
sudo apt-get install mysql-server

官方文档

https://dev.mysql.com/doc/mysql-apt-repo-quick-guide/en/#repo-qg-apt-upgrading

https://dev.mysql.com/doc/mysql-apt-repo-quick-guide/en/#apt-repo-setup