On this Page Hide contents
By default Streama uses an embedded database. This is created in the same folder that you start streama from and are the files streama.mv.db
and streama.trace.db
.
To use MySQL as your data backend you need to install a MySQL compatible database server. Streama recommends and tests against mariaDB.
Once your database is installed you need to create the database (ie with: CREATE DATABASE
). Then configure your application.yml to use mysql:
environments:
production:
dataSource:
driverClassName: 'com.mysql.jdbc.Driver'
url: jdbc:mysql://MYSQL_SERVER_IP/MYSQL_DATABASE
username: MYSQL_USER
password: MYSQL_PASSWORD
Currently PostgresSQL is not supported (see issue #409) but is planned.
Support for any other database is not planned or tested.