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 | |
Shock Jiang | 3c72318 | 2014-09-10 16:41:18 -0700 | [diff] [blame] | 9 | Create the database |
| 10 | ------------------- |
| 11 | |
Davide Pesavento | d01c1a4 | 2019-01-21 21:42:45 -0500 | [diff] [blame] | 12 | Set the attribute ``dbFile`` in the NDNS configuration file, e.g., ``${SYSCONFDIR}/ndn/ndns/ndns.conf`` |
| 13 | (``/etc/ndn/ndns/ndns.conf``), to the desired path of the database file. By default, ``dbFile`` is equal |
| 14 | to ``${LOCALSTATEDIR}/lib/ndn/ndns/ndns.db`` (``/var/lib/ndn/ndns/ndns.db``). |
Shock Jiang | 3c72318 | 2014-09-10 16:41:18 -0700 | [diff] [blame] | 15 | |
| 16 | When NDNS started, an empty database will be automatically created. |
| 17 | |
| 18 | Reset the database |
| 19 | ------------------ |
| 20 | |
| 21 | Remove the database file. |