Mysql connection tunnel through xshell

  Previously convenience is through direct, malpractice is unsafe, production databases are generally not allowed outside the network directly connected, they are able to connect on the specified server, like many cloud database, really inconvenient. Later learned methods of tunnel mapping xshell doing, what a lot of convenience, record it.

  Simulation scenario, the machine, the server A (IP 202.101.172.1), database (on another server)

  The steps are simple

  1, the installation xshell, here a little, Personal Edition is sufficient.

  2, Xshell connect the server A 

  

 

3, click the tunnel, configure port mapping, random local port, destination port is the port, destination host is configured mysql database where the host address, I show that the direct address cloud database

  

 

 

   4, navicate connection

  

 

   

  Get, should be noted that, xshell connection interface can not be closed.

 

Guess you like

Origin www.cnblogs.com/jolins/p/11519268.html