Install MySQL 5.7.5-m15 on Ubuntu Server 14.04 LTS

 Install libaio

MySQL depends on the libaio library. If you have not the libaio installed on your system, then install it first.

apt-get install libaio1

If the command above prompts that you need insert the disc labled "Ubuntu Server 14.04 LTS ...", just do it if you have the disc. Or comment out the line begin with "deb cdrom:" in /etc/apt/sources.list. Or download the libaio1 .deb package from archive.ubuntu.com, and then install the .deb with dpkg -i.

mkdir ./libaio
wget http://archive.ubuntu.com/ubuntu/pool/main/liba/libaio/libaio1_0.3.109-4_amd64.deb
dpkg -i libaio1_0.3.109-4_amd64.deb

Besides downloading the .deb, if you have the Ubuntu Server .ISO file, you can get the libaio1 .deb package from the ISO file.

mount -o loop ubuntu-14.04.1-server-amd64.iso /media/cdrom/
mkdir ./libaio
cp /media/cdrom/pool/main/liba/libaio/* ./libaio/

 

Install MySQL

Download MySQL .deb bundle tarball and install MySQL common files first, then community server, client, shared client library.

mkdir ./mysql
wget http://cdn.mysql.com/Downloads/MySQL-5.7/mysql-server_5.7.5-m15-1ubuntu14.04_amd64.deb-bundle.tar
tar xvf mysql-server_5.7.5-m15-1ubuntu14.04_amd64.deb-bundle.tar
dpkg -i mysql-common_5.7.5-m15-1ubuntu14.04_amd64.deb
dpkg -i mysql-community-server_5.7.5-m15-1ubuntu14.04_amd64.deb
dpkg -i mysql-community-client_5.7.5-m15-1ubuntu14.04_amd64.deb
dpkg -i libmysqlclient18_5.7.5-m15-1ubuntu14.04_amd64.deb


 

 

转载于:https://www.cnblogs.com/jeffreyf/p/install-mysql-on-ubuntu-server.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值