Recently I was working on a Data Migration Project. For one of the cases, I had to connect to a MySql database through an SSH Tunnel.
Here, I will show you how to get it done quickly.
We will be using ssh2 and mysql2 npm packages. So, make sure to install these.
Let’s get started by writing our database config file.
#ssh #nodejs #database #mysql