I'm brand new to postgreSQL (I'm running v 7.4) and am working on porting a simple mySQL db to postgres, but I'm a unique (uniquely obnoxious) situation:
I'm not the one who installed postgresSQL on the server I'm working on, but the only way its been used in the past is via some GUI tool that does the heavy lifting for specific GIS applications. I, however, need to get right into the command-line application and create two simple applications, and then configure postgres to allow JDBC to manipulate my databases.
The person who installed postgres is long gone, and no one working here now has used it before without the GIS crutch I mentioned above...that's where you all come in.
I do have admin access on the server postgres is installed on. I tried running the command 'psql' only to recieve the following error:
Expand|Select|Wrap|Line Numbers
- no pg_hba.conf entry for host "[local]", user "root", database "root", SSL off
Expand|Select|Wrap|Line Numbers
- local all postgres ident sameuser
- host all all 127.0.0.1/32 md5
- host root root local
My primary questions are:
-How can I modify my configuration appropriately and run postgreSQL from the command-line so I can create my databases?
-What is the correct syntax for running postgreSQL from the command-line?
-Is there any reason I would want to create a new user for me to use (rather than using 'root')? If so, how do I go about doing that?
Thank you very much in advance for your time and effort.