From: Thomas Markwalder Date: Fri, 4 Apr 2014 10:21:05 +0000 (-0400) Subject: [master] Corrected typos in bind10-guide for Postgresql setup X-Git-Tag: bind10-1.2.0rc1-release~12 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bc97e4255c17c34adc9d7e7f87201133a6c32df1;p=thirdparty%2Fkea.git [master] Corrected typos in bind10-guide for Postgresql setup --- diff --git a/doc/guide/bind10-guide.xml b/doc/guide/bind10-guide.xml index c59ac29bd5..a92bf7139a 100644 --- a/doc/guide/bind10-guide.xml +++ b/doc/guide/bind10-guide.xml @@ -3660,16 +3660,23 @@ postgres=# 2. Create the database: - postgres=# CREATE DATABASE database-name; + +postgres=# CREATE DATABASE database-name; +CREATE DATABASE +postgres=# + ... database-name is the name you have chosen for the database. - 3. Create the user under which Kea will access the database (and give it a password), then grant it access to the database: - postgres=# CREATE USER user-name WITH PASSWORD password; -postgres=#> GRANT ALL PRIVILEGES ON DATABASE database-name TO user-name; +postgres=# CREATE USER user-name WITH PASSWORD 'password'; +CREATE ROLE +postgres=# +postgres=# GRANT ALL PRIVILEGES ON DATABASE database-name TO user-name; +GRANT +postgres=# + - 4. Exit PostgreSQL: postgres=# \q @@ -3681,7 +3688,7 @@ $ After entering the following command, you will be prompted for the new user's password. When the command completes you will be returned to the shell prompt. You should see output similiar to following: -$ psql -d database-name -U user-name -f path-to-bind10/share/bind10/dhcpdb_create.pgsql; +$ psql -d database-name -U user-name -f path-to-bind10/share/bind10/dhcpdb_create.pgsql Password for user user-name: CREATE TABLE CREATE INDEX @@ -3715,7 +3722,9 @@ psql: FATAL: no pg_hba.conf entry for host "[local]", user "user-n server. The precise path may vary but the default location for Postgres 9.3 on Centos 6.5 is: /var/lib/pgsql/9.3/data/pg_hba.conf. - Adding lines similiar to following should be sufficient: + Assuming Kea is running on the same host as Postgresql, adding lines similiar + to following should be sufficient to provide password-authenticated access to + Kea's database: local database-name user-name password