Home > other >  Centos 6.5 Docker container mysql, remote connection, please answer
Centos 6.5 Docker container mysql, remote connection, please answer

Time:09-16

Outside machine access Tomcat can access, when the access database, a connection is not on?



Docker in mysql and Tomcat are running


Mysql also opens a remote access

CodePudding user response:

1. Check to see if centos opens the port and open port
Firewall - CMD - zone=public - add - port=3306/TCP - permanent
2. Using grant all privileges on *. * 'root' @ '%'), Try
3. May be a wrong password, try to modify mysql login password
  • Related