Search code examples
mysqlsshamazon-ec2ssh-tunnel

How to connect to MySQL using ssh tunnel with perl


I am using Amazon EC2 instance of MySQL and need to modify my perl scripts to connect to the database using ssh tunnel (instead of the plain old hostname:port). Any help is appreciated

Thanks


Solution

  • well after establishing SSH tunnel connection differs only with hostname and it's 127.0.0.1 (localhost) in that moment