Administration
xObserve support two databases at the moment: Mysql
and Sqlite
. You can use either of them to store your data.
By default, xObserve uses sqlite
to store data. You can find a file named xobserve.db
in the root directory of xObserve. This file is the database store file of sqlite.
Therefore, if you use default sqlite
, please backup this xobserve.db
file regularly.
Using sqlite
is very easy:
sqlite
as the default database if you have not configured the database.config.yml
to use sqlite
# in config.yml
database:
type: sqlite
Using mysql means you can deploy multipe xObserve instances and share the same database. So we recommend you to use mysql in production environment.
config.yml
database:
type: mysql
account: root
account_secret:
host: localhost
port: 3306
database: xobserve
xobserve.sql
file in the xobserve/query directory into mysql.