1、安装python开发包:sudo apt-get install python-dev
2、安装mysql服务端、客户端及扩展包:
sudo apt-get install mysql-server mysql-client libmysqlclient-dev
3、安装python第三方库管理工具:sudo apt-get install python-setuptools
4、安装Mysql-python库:sudo easy_install mysql-python
5、安装服务启动工具:sudo apt-get install sysv-rc-conf
6、修改mysql开机启动:sudo sysv-rc-conf --level 2345 mysql off