title: [PDOException]- SQLSTATE[HY000] [1045] Access denied for user 'root'@'ip' (using password: YES)
body: <p>I am trying to connect to AWS through ssh in order to migrate some files. I connected successfully using the following command:</p>
  
  <pre><code>ssh -i ~/Downloads/key.pem ec2-user@myuser
  </code></pre>
  
  <p>Then, I tried to run the following :</p>
  
  <pre><code>php artisan migrate
  </code></pre>
  
  <p>I got the following:</p>
  
  <pre><code>[PDOException]                                                               
    SQLSTATE[HY000] [1045] Access denied for user 'user'@'ip' (using password: YES)
  </code></pre>
  
  <p>What could be preventing me from accessing my DB in order to migrate?!</p>