Commit bc97e425 authored by Thomas Markwalder's avatar Thomas Markwalder
Browse files

[master] Corrected typos in bind10-guide for Postgresql setup

parent 0ba3a232
...@@ -3660,16 +3660,23 @@ postgres=#</screen> ...@@ -3660,16 +3660,23 @@ postgres=#</screen>
</para> </para>
<para> <para>
2. Create the database: 2. Create the database:
<screen>postgres=# <userinput>CREATE DATABASE <replaceable>database-name</replaceable>;</userinput></screen> <screen>
postgres=#<userinput> CREATE DATABASE <replaceable>database-name</replaceable>;</userinput>
CREATE DATABASE
postgres=#
</screen>
... <replaceable>database-name</replaceable> is the name you have chosen for the database. ... <replaceable>database-name</replaceable> is the name you have chosen for the database.
</para> </para>
<para> <para>
3. Create the user under which Kea will access the database (and give it a password), then grant it access to 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:
<screen>postgres=# <userinput>CREATE USER <replaceable>user-name</replaceable> WITH PASSWORD <replaceable>password</replaceable>;</userinput> <screen>postgres=#<userinput> CREATE USER <replaceable>user-name</replaceable> WITH PASSWORD '<replaceable>password</replaceable>';</userinput>
postgres=#> <userinput>GRANT ALL PRIVILEGES ON DATABASE <replaceable>database-name</replaceable> TO <replaceable>user-name</replaceable>;</userinput></screen> CREATE ROLE
postgres=#
postgres=#<userinput> GRANT ALL PRIVILEGES ON DATABASE <replaceable>database-name</replaceable> TO <replaceable>user-name</replaceable>;</userinput>
GRANT
postgres=#
</screen>
</para> </para>
<para> <para>
4. Exit PostgreSQL: 4. Exit PostgreSQL:
<screen>postgres=# <userinput>\q</userinput> <screen>postgres=# <userinput>\q</userinput>
...@@ -3681,7 +3688,7 @@ $</screen> ...@@ -3681,7 +3688,7 @@ $</screen>
After entering the following command, you will be prompted for the new After entering the following command, you will be prompted for the new
user's password. When the command completes you will be returned to user's password. When the command completes you will be returned to
the shell prompt. You should see output similiar to following: the shell prompt. You should see output similiar to following:
<screen>$ <userinput>psql -d <replaceable>database-name</replaceable> -U <replaceable>user-name</replaceable> -f <replaceable>path-to-bind10</replaceable>/share/bind10/dhcpdb_create.pgsql;</userinput> <screen>$ <userinput>psql -d <replaceable>database-name</replaceable> -U <replaceable>user-name</replaceable> -f <replaceable>path-to-bind10</replaceable>/share/bind10/dhcpdb_create.pgsql</userinput>
Password for user <replaceable>user-name</replaceable>: Password for user <replaceable>user-name</replaceable>:
CREATE TABLE CREATE TABLE
CREATE INDEX CREATE INDEX
...@@ -3715,7 +3722,9 @@ psql: FATAL: no pg_hba.conf entry for host "[local]", user "<replaceable>user-n ...@@ -3715,7 +3722,9 @@ psql: FATAL: no pg_hba.conf entry for host "[local]", user "<replaceable>user-n
server. The precise path may vary but the default location for Postgres 9.3 server. The precise path may vary but the default location for Postgres 9.3
on Centos 6.5 is: on Centos 6.5 is:
<filename>/var/lib/pgsql/9.3/data/pg_hba.conf</filename>. <filename>/var/lib/pgsql/9.3/data/pg_hba.conf</filename>.
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:
</para> </para>
<screen> <screen>
local <replaceable>database-name</replaceable> <replaceable>user-name</replaceable> password local <replaceable>database-name</replaceable> <replaceable>user-name</replaceable> password
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment