title: "SQLSTATE[42000] [1044] Access denied for user 'team'@'localhost' to database 'my database''
body: <p>I want upload my Laravel Project in Cpanel. </p>
  
  <p>The first page is the login page for users that when a user logins, he is redirected to another page. </p>
  
  <p>When I want to send the user information to the database, I get this error:</p>
  
  <blockquote>
    <p>"SQLSTATE[42000] [1044] Access denied for user 'team'@'localhost' to database 'my database'"</p>
  </blockquote>
  
  <p>In <code>Cpanel</code> I'm creating a database and a user. </p>
  
  <p>In <code>phpMyAdmin</code> I'm creating my tables. </p>
  
  <p>Alson in <code>env</code> file I Add username and database name,</p>
  
  <p>Where is my mistake? How can I solve it?</p>