Shock Jiang | 3c72318 | 2014-09-10 16:41:18 -0700 | [diff] [blame] | 1 | Database Management Hints |
| 2 | ========================= |
| 3 | |
| 4 | Pre-requisites |
| 5 | -------------- |
| 6 | |
| 7 | ``sqlite3`` installed |
| 8 | |
| 9 | |
| 10 | Create the database |
| 11 | ------------------- |
| 12 | |
| 13 | Set the attribute ``dbfile`` in the NDNS configuration file, e.g., ``${SYSCONFDIR}/ndn/ndns.conf`` (``/etc/ndn/ndns.conf``), to the desired path of the database file. |
| 14 | By default, ``dbfile`` is assigned to ``${LOCALSTATEDIR}/lib/ndns/ndns.db`` (``/var/lib/ndns/ndns.db``). |
| 15 | |
| 16 | When NDNS started, an empty database will be automatically created. |
| 17 | |
| 18 | Reset the database |
| 19 | ------------------ |
| 20 | |
| 21 | Remove the database file. |