cd /tmpwget https://dev.mysql.com/get/mysql-apt-config_0.8.7-1_all.debdpkg -i mysql-apt-config_*.deb选择5.7版本apt updateapt install mysql-community-server -y安装完成登录mysql,设置允许远程连接GRANT ALL PRIVILEGES ON *.* TO ‘root’@’%’ IDENTIFIED BY ‘password’ WITH GRANT OPTION;FLUSH PRIVILEGES;vim mysql.conf.d将bind-address = 127.0.0.1”改为“bind-address = 0.0.0.0