title: MySQL - 'Permission denied' when trying to connect from webapp
body: <p>when I am trying to connect database to my web application I get error 'Permission denied'. Which is quite wierd because I am using root (and password is correct).</p>
  
  <p>I can connect manually from terminal without a problem. </p>
  
  <p>Another wierd thing is when I try to connect using mysql -hHOST -uUSER -p and press <code>show databases;</code> it only show 2 of 6 databases (information schema and teampass where I want to connect the web app to.</p>
  
  <pre><code>+--------------------+
  | Database           |
  +--------------------+
  | information_schema |
  | teampass           |
  +--------------------+
  </code></pre>
  
  <p>when connecting from terminal using mysql -u root -p:</p>
  
  <pre><code>+---------------------+
  | Database            |
  +---------------------+
  | information_schema  |
  | mysql               |
  | db2                 |
  | teampass            |
  | db4                 |
  | db3                 |
  +---------------------+
  </code></pre>
  
  <p>any idea where could be a problem?</p>