title: Get error connect ECONNREFUSED 127.0.0.1:3306 when start my node.js app
body: <p>When I start my node.js app I get this error:</p>
  
  <pre><code>SequelizeConnectionRefusedError: connect ECONNREFUSED 127.0.0.1:3306
  </code></pre>
  
  <p>What I was doing:</p>
  
  <pre><code> - create a user:
  CREATE USER 'main'@'localhost' IDENTIFIED BY 'myPass';
  
   - give this user all privileges
  GRANT ALL PRIVILEGES ON *.* TO 'main'@'localhost' WITH GRANT OPTION;
  FLUSH PRIVILEGES;
  </code></pre>
  
  <p>I then try to connect through my code on production and it gives me an error: connect ECONNREFUSED 127.0.0.1:3306.</p>
  
  <p>But in my localhost environment it connects well. And when I try to connect to DB using command line on VPS it works too:
  <code>mysql -umain -p</code></p>
  
  <p>I can't connect with code. But on my localhost it connects. Double checked my loggin and pass for DB user in .env.</p>