大数据基础(七) Ubuntu 14.04安装MySQL 5.7.14

Ubuntu 14.04安装MySQL5.7.14


以下默认root账户,sudo可以省略
1.下载集成包bundle
http://dev.mysql.com/downloads/file/?id=464486
http://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-server_5.7.14-1ubuntu14.04_amd64.deb-bundle.tar
2.解压
mkdir mysql
copy deb to mysql
tar xf mysql-server_5.7.14-1ubuntu14.04_amd64.deb-bundle.tar 
root@py-server:/server/mysql# ll
总用量 515744
drwxr-xr-x 2 root root       4096  8月  1 09:10 ./
drwxr-xr-x 8 root root       4096  8月  1 09:10 ../
-rw-r--r-- 1 7155 31415    827408  7月 12 19:46 libmysqlclient20_5.7.14-1ubuntu14.04_amd64.deb
-rw-r--r-- 1 7155 31415   1171060  7月 12 19:44 libmysqlclient-dev_5.7.14-1ubuntu14.04_amd64.deb
-rw-r--r-- 1 7155 31415  16892310  7月 12 19:45 libmysqld-dev_5.7.14-1ubuntu14.04_amd64.deb
-rw-r--r-- 1 7155 31415     12658  7月 12 19:47 mysql-client_5.7.14-1ubuntu14.04_amd64.deb
-rw-r--r-- 1 7155 31415     79820  7月 12 19:47 mysql-common_5.7.14-1ubuntu14.04_amd64.deb
-rw-r--r-- 1 7155 31415      6823  7月 12 19:44 mysql-community_5.7.14-1ubuntu14.04_amd64.changes
-rw-r--r-- 1 7155 31415   7606214  7月 12 19:46 mysql-community-client_5.7.14-1ubuntu14.04_amd64.deb
-rw-r--r-- 1 7155 31415  20324064  7月 12 19:44 mysql-community-server_5.7.14-1ubuntu14.04_amd64.deb
-rw-r--r-- 1 7155 31415 193773508  7月 12 19:47 mysql-community-source_5.7.14-1ubuntu14.04_amd64.deb
-rw-r--r-- 1 7155 31415  23317078  7月 12 19:46 mysql-community-test_5.7.14-1ubuntu14.04_amd64.deb
-rw-r--r-- 1 7155 31415     12648  7月 12 19:47 mysql-server_5.7.14-1ubuntu14.04_amd64.deb
-rw-r--r-- 1 root root  264048640  8月  1 09:06 mysql-server_5.7.14-1ubuntu14.04_amd64.deb-bundle.tar
-rw-r--r-- 1 7155 31415     12668  7月 12 19:44 mysql-tests
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
mysql官网上下载mysql-server_5.7.21-1ubuntu14.04_amd64.deb-bundle.tar,然后进行离线安装,解压该安装包,会出现11个依赖包,按照顺序依次使用sudo dpkg -i 进行安装,中间会报错,显示缺少相应的依赖,具体如下: *******@ubuntu:/opt/mysql$ sudo dpkg -i mysql-community-client_5.7.21-1ubuntu14.04_amd64.deb Selecting previously unselected package mysql-community-client. (Reading database ... 208518 files and directories currently installed.) Preparing to unpack mysql-community-client_5.7.21-1ubuntu14.04_amd64.deb ... Unpacking mysql-community-client (5.7.21-1ubuntu14.04) ... dpkg: dependency problems prevent configuration of mysql-community-client: mysql-community-client depends on libaio1 (>= 0.3.93); however: Package libaio1 is not installed. dpkg: error processing package mysql-community-client (--install): dependency problems - leaving unconfigured Processing triggers for man-db (2.6.7.1-1ubuntu1) ... Errors were encountered while processing: mysql-community-client 和 ********@ubuntu:/opt/mysql$ sudo dpkg -i mysql-community-server_5.7.21-1ubuntu14.04_amd64.deb Selecting previously unselected package mysql-community-server. (Reading database ... 208598 files and directories currently installed.) Preparing to unpack mysql-community-server_5.7.21-1ubuntu14.04_amd64.deb ... Unpacking mysql-community-server (5.7.21-1ubuntu14.04) ... dpkg: dependency problems prevent configuration of mysql-community-server: mysql-community-server depends on libmecab2 (>= 0.996-1.1); however: Package libmecab2 is not installed. dpkg: error processing package mysql-community-server (--install): dependency problems - leaving unconfigured Processing triggers for man-db (2.6.7.1-1ubuntu1) ... Processing triggers for ureadahead (0.100.0-16) ... ureadahead will be reprofiled on next reboot Errors were encountered while processing: mysql-community-server 附上依赖包安装顺序: 1.mysql-common_5.7.21-1ubuntu14.04_amd64.deb 2.libmysqlclient20_5.7.21-1ubuntu14.04_amd64.deb 3.libmysqlclient-dev_5.7.21-1ubuntu14.04_amd64.deb 4.libmysqld-dev_5.7.21-1ubuntu14.04_amd64.deb

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值