title: Access denied for user 'someuser'@'localhost' (using password: YES)
body: <p>I have created a database by name 'somedatabase' in mysql  </p>
  
  <pre><code>CREATE DATABASE somedatabase;  
  GRANT ALL ON somedatabase.* TO 'someuser'@'localhost' IDENTIFIED BY 'somepassword';
  </code></pre>
  
  <p>but when i try to access this database using php application i get the following error </p>
  
  <blockquote>
    <p>"<strong>mysql_connect() [function.mysql-connect]: Access
    denied for user 'someuser'@'localhost' (using password: YES)</strong>"</p>
  </blockquote>
  
  <p>The Mysql query browser does allow me to login to this database using username : someuser and password : somepassword. Then why is that i am not able to connect to database through application.</p>
  
  <p>php code :   </p>
  
  <pre><code>$db_url = 'mysql://someuser:*somepassword*@localhost/somedatabase';
  </code></pre>