sudo apt-get install mysql-server sudo apt-get isntall mysql-client sudo apt-get install libmysqlclient-dev 中间会需要设置root密码 netstat -tap | grep mysql 如果看到listen 说明安装成功