Ubuntu 16.04.2 LTS 安装 mysql-server_5.7.18-1ubuntu16.10_amd64.deb-bundle.tar
#
创建root用户,sudo passwd root
#
sudo apt-get update
sudo apt-get upgrade
(更新源是外国官网,可以改源更新)
#
https://www.mysql.com/ 下载mysql
Downloads-->Community-->MySQL Community Server 下拉
#
把包黏贴到虚拟机,目录自定义
#
解压包
tar -xvf mysql-server_5.7.18-1ubuntu16.10_amd64.deb-bundle.tar
sudo apt-get install libaio1
sudo dpkg -i mysql-common_5.7.18-1ubuntu16.10_amd64.deb
sudo dpkg -i libmysqlclient20_5.7.18-1ubuntu16.10_amd64.deb
sudo dpkg -i libmysqlclient-dev_5.7.18-1ubuntu16.10_amd64.deb
sudo dpkg -i libmysqld-dev_5.7.18-1ubuntu16.10_amd64.deb
sudo dpkg -i mysql-commu