安装MySQL 5.7
sudo apt-get install software-properties-common
sudo add-apt-repository -y ppa:ondrej/mysql-5.7
sudo apt-get update
sudo apt-get install mysql-server
安装MySQL 5.6
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
安装MySQL 5.5
sudo apt-get install software-properties-common
sudo add-apt-repository -y ppa:ondrej/mysql-5.5
sudo apt-get update
sudo apt-get install mysql-server
显示版本号
mysql --version