I can connect to mysql with Navicat through SSH tunnel but can not connet using shell or java
问题 in Navicat General TAB serverType:MySQL serverName/IP Address:ABC port:3306 Encoding="65001" username:user1 password:password1 SSH TAB SSH serverName/IP Address:xx.xx.xx.xx port:22 username:user2 password:password2 using the command line ssh client, I type the following command from my local machine: ssh -L 1234:localhost:3306 user2@xx.xx.xx.xx This account is currently not available. Connection to xx.xx.xx.xx closed. besides, I can not ping ABC(MySQL server name) 回答1: void initDB() throws