How can I change the directory where logs and db files go?

It is possible for the db, as descriped here:

2 Likes