説明†MySQLのようにpsqlコマンドでPostgreSQLサーバーへ接続するための手順です。 PostgreSQLサーバー側†# su - postgresql $ cd data/ $ cp -p pg_hba.conf pg_hba.conf.`date +%Y%m%d` $ vi pg_hba.conf 192.168.1.100 trust $ pg_ctl reload 接続元側†# yum install postgresql # psql -h ホストのIPアドレス -d データベース名 -U ユーザー名 上記pg_hba.confでtrustにしていると、パス無しでログインできます。 passwordにしているとパスワードが必要です。 |