MyCat login failed, closing the firewall does not work
The port is unreachable:
- To learn MySQL sub-database and sub-table, you need to use the database middleware MyCat to manage the database, and MyCat needs to use port 8066 to connect. When connecting, the port will be blocked. Open the firewall port of centos7 on the virtual machine, and the port will still be blocked when the firewall is closed. Open the firewall to check the opened ports, and ping the opened ports on Windows cannot be pinged (22 and 3306 are ok, I don’t understand).
Solution
-
Log in to MyCat on the host where MyCat is installed, find the whitelist of the firewall in the server.
<firewall> <whitehost> <host host="127.*" user="root"/> </whitehost> <blacklist check="false"> </blacklist> </firewall>
-
Change the MyCat login command from
mysql -h 192.168.1.105 -P8066 -uroot -p123456
-
replace with
mysql -h 127.0.0.1 -P8066 -uroot -p123456
Successfully logged into MyCat
- After MyCat login, port 8066 can be pinged? ? ? i don't understand