title: Why is mysql connection not working with dotenv variables
body: <p>Good evening,</p>
  <p>I have been trying to connect to my database by using dotenv variables.
  It worked perfectly before i used it.</p>
  <p>I have 2files: 1 file mysqlConfig, where i put my settings for my database, and .env where i put my variables.</p>
  <p>I don't see what i am doing wrong here:</p>
  <pre><code>SOCKET_PATH='/Applications/MAMP/tmp/mysql/mysql.sock'
  USER='root'
  PASSWORD='root'
  HOST='localhost'
  DATABASE='Groupomania'
  </code></pre>
  <p>MysqlConfig :</p>
  <pre><code>require('dotenv').config();
  var mysql = require('mysql');
  
  // Connexion à MYSQL
  var bdd = mysql.createConnection({
    socketPath : process.env.SOCKET_PATH,
    user : process.env.USER,
    password : process.env.PASSWORD,
    host : process.env.HOST,
    database : process.env.DATABASE
  });
  
  module.exports = bdd;
  </code></pre>
  <p>Thank you for your help</p>
  <p>Have a nice evening</p>