Hi, Right, username can be given after -U parameter and -W can be used to make osm2pgsql to ask for the password. It is not possible to give the password from command line as -W my_password, it makes osm2pgsql to behave oddly. If I remember right it is trying to open an OSM file named "my_password" and stops.
-Jukka Rahkonen- > http://wiki.openstreetmap.org/wiki/Osm2pgsql says > "DB access - There is no way to specify a user's password with > osm2pgsql. So you either have to set your DB's authentication mechanism > to 'trust' for the user/all users or work around it by creating a > password file. See the postgreSQL documentation on how to do this." > > As far as I understood osm2pgsql nowadays supports this feature. Quoting > from osm2pgsql -h: > -U|--username Postgresql user name. > -W|--password Force password prompt. > > Or does the wiki refer with "user's password" to the operating system > users? > > Claudius > > > _______________________________________________ > dev mailing list > [email protected] > http://lists.openstreetmap.org/listinfo/dev > _______________________________________________ dev mailing list [email protected] http://lists.openstreetmap.org/listinfo/dev

