cd /tmp
wget https://dev.mysql.com/get/mysql-apt-config_0.8.7-1_all.deb
dpkg -i mysql-apt-config_*.deb
选择5.7版本
apt update
apt 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

相关文章:

  • 2022-01-08
  • 2022-12-23
  • 2022-12-23
  • 2022-02-07
  • 2022-12-23
  • 2022-01-22
  • 2021-04-17
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-11
  • 2022-12-23
  • 2021-09-06
  • 2021-09-20
  • 2021-07-15
  • 2021-09-27
相关资源
相似解决方案