Richard Mendes wrote:
> The problem we experiencing is that the command line creation of a
> database without a password runs on unix but on windows it seems as if
> a password is obligated. To prevent to create databases threw the
> command line i was wondering if there is a method to create a db with
> username and password in pygresql. This should give us the solution we
> we're looking for.

The only thing is that you must be logged in as a database user with
sufficient privileges to create a database, for instance as the postgres
user. Under Unix, if you are the postgres OS user, then you usually can
automatically login as the postgres DB user on the console. Under
Windows, this will probably also work if you login as the postgres user
or start psql as the postgres user with "runas".

See also:
http://www.postgresql.org/docs/8.2/interactive/manage-ag-createdb.html

-- Chris
_______________________________________________
PyGreSQL mailing list
[email protected]
http://mailman.vex.net/mailman/listinfo/pygresql

Reply via email to