title: ERROR 1045 (28000): Access denied for user (using password: YES)
body: <p>I am trying to have a simple mysql Database on a server and another database on another server that connects to it. </p>
  
  <p>I have done the following : </p>
  
  <ol>
  <li>Installed mysql-server</li>
  <li>Created the database</li>
  <li><p>Created the user with : </p>
  
  <p>CREATE USER admin@'localhost' IDENTIFIED BY 'admin';</p></li>
  <li><p>Given the privileges to this user with : </p>
  
  <p>GRANT ALL PRIVILEGES ON confWeb.* TO admin@'';</p></li>
  <li><p>Opened the bind-adress</p></li>
  </ol>
  
  <p>Now when I launch the command <code>mysql -u admin -p -h &lt;address&gt;</code> from another server, it just tells me again and again :</p>
  
  <pre><code>ERROR 1045 (28000): Access denied for user 'admin'@'X.X.X.X' (using password: YES)
  </code></pre>
  
  <p>I really have no idea what to do at this point. I think I've tried everything. 
  I tried putting <code>GRANT OPTION</code> in the end of the GRANT line, I tried allowing a lot of different addresses but nothing worked. </p>