1、修改源
sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup //备份源
sudo vim /etc/apt/sources.list
修改源地址为:
deb http://ports.ubuntu.com/ubuntu-ports/ trusty main universe
deb-src http://ports.ubuntu.com/ubuntu-ports/ trusty main universe
2、更新源,sudo apt-get update
3、搜索数据的包
apt-cache search mysql
搜索包之后,会把mysql的包都列下来。更新需求下载所需要的包,还有图形界面版客户端可供下载
4、从源下载并且安装mysql
在线安装mysql默认版本
apt-get install mysql-client
apt-get install mysql-server
MySQL的详细配置方法:请参考
http://cms163.iteye.com/blog/2048360