title: Osmosis: java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES). How not to use a password?
body: <p>I want to implement a task of Osmosis, I want to read <code>.osm.pbf</code> file and to write it to a db:</p>
  
  <pre><code>C:\osmosis-latest\bin&gt;osmosis --read-pbf file="C:\sbox\maps\UA.osm.pbf" --write-apidb host="localhost" database="newb" user="root" dbType="mysql"
  </code></pre>
  
  <p>But I experience the following error:</p>
  
  <pre><code>org.openstreetmap.osmosis.core.OsmosisRuntimeException: Unable to establish a database connection.
  Caused by: java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)
  </code></pre>
  
  <p>My MySQL on Windows XP doesn't have a password. It is just blank. When I want to connect to a server I just provide a username, no any password:</p>
  
  <pre><code>C:\&gt;mysql -u root -h localhost
  </code></pre>
  
  <p>But it seems that Osmosis force to use a password. But I don't want to set my MySQL to use a password. How may I change Osmosis settings not to use a password to connect to MySQL?</p>
  
  <p>I tried to provide <code>password=""</code>, <code>password=null</code>. Both do not work, Osmosis doesn't accept it.</p>