title: Access denied for user 'user'@'localhost' (using password: yes)
body: <p>I'd found too many questions related to this problem still I'm having the same problem.</p>
  
  <p>I've installed <code>MySQL Server</code> from <a href="http://dev.mysql.com/downloads/installer/" rel="nofollow">MYSQL::Download MYSQL Installer</a>. Also, I've running <code>xampp</code> on my <code>localhost</code>.  </p>
  
  <p><code>http://localhost/phpmyadmin</code> and <code>MySQL Command Line Client</code> are working fine and I'm able to login as well as execute <code>SQL</code> queries. But the problem is, if I'm using <code>jdbc</code> to connect to <code>MySQL</code> then the error comes <code>Access denied for 'root'@'localhost' (using password:yes)</code>.<br>
  The connection string I'm using for jdbc is </p>
  
  <pre><code>DriverManager.getConnection("jdbc:mysql://localhost:3306/mydb", "root", "root");
  </code></pre>
  
  <p>but it's not working. I tried removing the port number (3306), still the same problem.<br>
  I also tried to start <code>MySQL Workbench</code> installed with the installer and getting the same error for connection.  </p>
  
  <p>If anybody could help? <code>phpmyadmin</code> working fine and I'm able to run sql queries from a <code>php</code> program. But its not working fine with <code>java</code>.</p>