1.卸载 sudo apt purge mysql-* 2.安装 sudo apt-get install mysql-server -y sudo apt install mysql-client -y sudo apt install libmysqlclient-dev -y