Running programs on the local machine can connect to the database, and the database uses mySQL. Put the program on a machine that does not have mySQL installed. After my test, I found that the ip address is correct, because when I run the program on the local machine, setting the ip address as the ip address of this network can be connected, and using localhost can also be connected. On other hosts, I use the local ip address, but cannot connect to it. Many people say that mySQL cannot be remotely by default. So I opened Port 3306 on the local firewall and set mySQL User permissions. as a result, I still cannot connect to the database on other hosts. For more information, see the figure .! [Image] (img. ask. csdn. ne... mysqljava
Running programs on the local machine can connect to the database, and the database uses mySQL. Put the program on a machine that does not have mySQL installed. After my test, I found that the ip address is correct, because when I run the program on the local machine, setting the ip address as the ip address of this network can be connected, and using localhost can also be connected. On other hosts, I use the local ip address, but cannot connect to it. Many people say that mySQL cannot be remotely by default. So I opened Port 3306 on the local firewall and set mySQL User permissions. as a result, I still cannot connect to the database on other hosts. For more information, see the figure.