通过安装包安装mysql ,首先要下载mysql的安装包。下载地址mysql-server_5.7.16-1ubuntu14.04_amd64.deb-bundle.tar。解压缩,进入解压目录如下
root@ubuntu:/usr/mysql# tar -xf mysql-server_5.7.16-1ubuntu14.04_amd64.deb-bundle.tar
root@ubuntu:/usr/mysql# ll
total 517072
drwxr-xr-x 2 root root 4096 Nov 26 14:26 ./
drwxr-xr-x 30 root root 4096 Nov 26 14:02 ../
-rw-r--r-- 1 root root 6364 Nov 10 16:45 libaio1_0.3.109-4_amd64.deb
-rw-r--r-- 1 root root 243908 Nov 11 00:10 libmecab2_0.996-1.1_amd64.deb
-rw-r--r-- 1 7155 31415 1174550 Sep 29 00:03 libmysqlclient-dev_5.7.16-1ubuntu14.04_amd64.deb
-rw-r--r-- 1 7155 31415 828454 Sep 29 00:03 libmysqlclient20_5.7.16-1ubuntu14.04_amd64.deb
-rw-r--r-- 1 7155 31415 16974998 Sep 29 00:03 libmysqld-dev_5.7.16-1ubuntu14.04_amd64.deb
-rw-r--r-- 1 7155 31415 12628 Sep 29 00:03 mysql-client_5.7.16-1ubuntu14.04_amd64.deb
-rw-r--r-- 1 7155 31415 31124 Sep 29 00:03 mysql-common_5.7.16-1ubuntu14.04_amd64.deb
-rw-r--r-- 1 7155 31415 7049544 Sep 29 00:03 mysql-community-client_5.7.16-1ubuntu14.04_amd64.deb
-rw-r--r-- 1 7155 31415 20368932 Sep 29 00:03 mysql-community-server_5.7.16-1ubuntu14.04_amd64.deb
-rw-r--r-- 1 7155 31415 194167434 Sep 29 00:03 mysql-community-source_5.7.16-1ubuntu14.04_amd64.deb
-rw-r--r-- 1 7155 31415 23943094 Sep 29 00:03 mysql-community-test_5.7.16-1ubuntu14.04_amd64.deb
-rw-r--r-- 1 7155 31415 6823 Sep 29 00:03 mysql-community_5.7.16-1ubuntu14.04_amd64.changes
-rw-r--r-- 1 7155 31415 12624 Sep 29 00:03 mysql-server_5.