Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: Rien Kok on June 09, 2003, 06:18:29 PM
-
Hi,
I've downloaded PostgreSQL from: http://www.star-support.com/downloads/mitel/contrib/postgresql
After installing, I created users as su Postgres and allowed them to create databases etc.
When I log on as "root" I am able to create databases, inquire databases, define triggers and so on (with psql). This works fine.
Questions:
1)
Now I must start PostgreSQL manually by typing the command: "service postgresql start". How can I make PostgreSQL to start automatically every time I reboot the server.
2)
I can't approach the database from a Windows client. (ODBC, PgAdminII). I remember that I've read somewhere that I than have to start "Postmaster" with the "i" option but I'm not sure, nor do I know how to do that.
The installation uses automatically the directories: var/lib/pqsql/data and usr/lib/pgsql
Thanks,
Rien Kok
-
1. add a symbolic link in /etc/rc.d/rc7.d/99postgresql pointing to /etc/rc.d/init.d/postgresql
2. sorry can't help you
regards,
guestHH
-
1. As above
2. http://gborg.postgresql.org/project/psqlodbc/genpage.php?howto-redhat
explains how to get postgreSQL listening to ODBC calls.
Barry
-
2. add this line to your pg_hba.conf file. It allows access from within your own network to the postgresql server
host all 192.168.0.0 255.255.255.0 password
Stop and restart the postgres service with the -i switch and you will then be able to connect using odbc, and native calls such as pgaccess, pgadmin, psql (cygwin).
read the pg_hba.conf file - it has extensive documentation within it