0)apt-get update
1)通过apt-get安装
更新设置到最新系统:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install mysql-server
sudo apt-get install mysql-clientsudo apt-get install libmysqlclient-dev
2)通过tar.gz安装
参见:http://blog.csdn.net/finish_dream/article/details/53239710