]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#362,!182] Example of hosts-database added.
authorTomek Mrugalski <tomasz@isc.org>
Fri, 22 Feb 2019 12:57:10 +0000 (13:57 +0100)
committerTomek Mrugalski <tomasz@isc.org>
Thu, 28 Feb 2019 14:52:13 +0000 (15:52 +0100)
doc/guide/dhcp6-srv.xml

index 290e480fdb4160cda940e2789ad5c687472ae56b..c31a629f3f2c9b610d1e3850607646f852d958c3 100644 (file)
@@ -557,6 +557,22 @@ linkend="cassandra-database-configuration4"/> for details.</para>
     supported hosts database types are MySQL and PostgreSQL; the Cassandra
     backend does not yet support host reservations.</para>
 
+    <para>For example, the following configuration can be used to
+    configure connection to MySQL:
+    <screen>
+"Dhcp6": {
+    <userinput>"hosts-database": {
+        "type": "mysql",
+        "name": "kea",
+        "user": "kea",
+        "password": "secret123",
+        "host": "localhost",
+        "port": 3306
+    }</userinput>
+}</screen> Note that depending on your database configuration, many of
+    the parameters may be optional.</para>
+
+
     <para>Please note that usage of hosts storage is optional. A user can define
     all host reservations in the configuration file, and that is the recommended way
     if the number of reservations is small. However, when the number of