I'm running PostgreSQL on mt Windows 7 machine. To run a database I type:
C:\psql -Upostgres mydb
and this works, but it would be nice if I could leave off the -U
stuff, but then Postgres thinks I'm trying to log in as 'Eric', since that is my user profile.
So I need to add a user to Postgres, obviously. But how? If I try:
C:\createuser Eric
Postgres thinks I'm trying to add a user Eric as the user Eric which fails. Adding the -U
flag doesn't seem to work here.
What am I missing? My command window is in administrator mode, and there is no sudo
available, obviously.