i am new in postgresql, can anyone tell me how to connect to postgresql database in linux server by using the data environment . i have installed the postgresql odbc driver but i have no idea how to use the data environment to connect to database.
In the /var/lib/pgsql/data directory, for my RedHat Linux 7.3, make sure that the pg_hda.conf file is set to trust, instead of password for example. You should be able to connect directly to the database server like:
psql template1 postgres
This assume that the postmaster service is running.
You should setup a password for the postgres user. After doing so, you should edit the /var/lib/pgsql/data/pg_dba.conf file and make access to the databases server more restrictive, maybe by requiring passwords to access postgres, so a user would need a password to talk to the database server by issuing psql commands.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.