Skip to content
This repository has been archived by the owner on Apr 21, 2022. It is now read-only.

Storage

danthe1st edited this page May 21, 2020 · 1 revision

Nightdream Wiki


Storage

Properties/default

By default, Nightdream stores all it's data in property files inside a directory named NightDream.

SQL

If you want to use a sql database instead, open the file Nightdream.properties in the directory NightDream and add the URL to NightDream.properties after DBUrl=. If the Database requires username and password, you should put it in this file as well, after DBUsr= and DBPw=.

A database URL should look like this: jdbc:<Database name>://<URL>/<schema>. You may need to add the timezone as a query parameter. For example, this is a valid URL for a MySQL Server on localhost with a schema named nightdream: jdbc:mysql://localhost/nightdream?serverTimezone=UTC

After that, put the JDBC driver in the NightDream directory.

Redis

If you hava a redis Server on localhost, just open the file Nightdream.properties in the directory NightDream and add redis to NightDream.properties after DBUrl=.

If the redis database is running on another server/port add redis://<Server>:<Port> instead of redis.

If the database requires authentication, you should put the password in this file as well, after DBPw=.

Clone this wiki locally