一、下载mysql。
官网下载地址:https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-server_5.7.20-1ubuntu17.04_amd64.deb-bundle.tar
二、上传下载好的包到服务器并解压。
命令:tar -xvf mysql-server_5.7.16-1ubuntu16.04_amd64.deb-bundle.tar
解压后得到如下文件:
libmysqlclient20_5.7.16-1ubuntu16.04_amd64.deb
libmysqlclient-dev_5.7