title: 1044 - Access denied for user 'user'@'localhost' to database 'db'
body: <p>I tried a lot to import the sql script to create database and tables through phpmyadmin in the new site I hosted. But i'm getting the error,</p>
  
  <blockquote>
    <p>1044 - Access denied for user 'user'@'localhost' to database 'db'</p>
  </blockquote>
  
  <p>I tried to create a sample db directly : create database sampled; I'm getting the same access denied error.</p>
  
  <p>I'm not able to grant privileges to the user also, i'm getting the same access denied error.</p>
  
  <p>Following is the output of show grants command,</p>
  
  <pre><code>show grants;
  GRANT USAGE ON . TO 'someuser'@'localhost' IDENTIFIED BY PASSWORD 'somepw' 
  
  GRANT ALL PRIVILEGES ON someuser\_%.* TO 'someuser'@'localhost' 
  </code></pre>
  
  <p>Any help would be appreciated. thank you.</p>