Ubuntu数据库不能远程访问

需要修改 的是  /etc/mysql/mysql.conf.d/mysqld.cnf

   使用sudovim /etc/mysql/mysql.conf.d/mysqld.cnf

   修改bind_address = 0.0.0.0 

   然后重启mysql服务即可: sudo /etc/init.d/mysql restart

猜你喜欢

转载自blog.csdn.net/qq_37668945/article/details/81365313