<p>My guess would be the important parameters to resolve your issues are the following:</p>

<p>"-U osm -W -H localhost -P 5432" </p>

<p>-W forces a password promt where you can specify the password for the user osm. However, you have to make sure that postgresql is set up for password authentication and that you have set the appropriate password for the osm user in postgresql.</p>

<p>QGis should not be affected by any of this, as it simply uses an existing postgis db, no matter how you created it.</p>

<p>I have not heard of OSM Tool GUI before, so I don't know what it does. (And google doesn't seem to give me anything useful either) But assuming it is a wrapper around osm2pgsql to make sure you don't have to work with the command line, then you would simply have to extend OSM Tool GUI to set the appropriate parameters of osm2pgsql.</p>

<p>Oh, reading your message again, I see OSM Tool GUI is something / a plugin of QGis. But the same should still apply, that the integration module needs to be adapted to set the correct parameters when calling osm2pgsql. Just that it then does effect QGis... ;-)</p>

<p>You probably want to test it on the command line first. Make sure it works, and then contact the developers of the tool gui.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href='https://github.com/openstreetmap/osm2pgsql/issues/17#issuecomment-16245581'>view it on GitHub</a>.<img src='https://github.com/notifications/beacon/g8smGCFOcVLF28Q-xX3zcW-d33n4r8WrCNydIU1a3QHb59J4XCGJD3Vp-vhb4A2K.gif' height='1' width='1'></p>