title: How to connect to laravel forge database via SSH tunnel using HeidiSQL
body: <p>I'm trying to do the above. HeidiSQL has a load of settings and I have a load of possible values, but I'm not sure exactly what goes where. Here are the different places I can put values</p>
  
  <p><a href="https://i.stack.imgur.com/HSc6V.png" rel="nofollow noreferrer">Settings screen</a></p>
  
  <p><a href="https://i.stack.imgur.com/qeEU3.png" rel="nofollow noreferrer">SSH screen</a></p>
  
  <p>And the values I have are as follows:</p>
  
  <ul>
  <li>The IP address of the database (v)</li>
  <li>The port the database uses (w)</li>
  <li>The database username and password (x)</li>
  <li>My ssh private key (y)</li>
  <li>The port I'm going to use on my computer (z)</li>
  </ul>
  
  <p>I've tried many combinations, but generally get the response:</p>
  
  <p>PLink exited unexpected. Command line was: C:\Program Files\PuTTY\plink.exe -ssh [ip address] -P [database port] -i [private key location] -N -L [my port]:[id address]:[database port]</p>
  
  <p>Thank you for your time.</p>