Note:
I used tunnel-ssh npm package to creating a tunnel and then successfully created mysql connection.
Later, when I deployed my app to Heroku, everything was working fine.