Skip to content
Alexey Gordeyev edited this page Feb 27, 2016 · 8 revisions

Back to Home

Database configuration

Steps

  • Add dependency to mysql database driver module in app package.json, and install it.
  • Rewrite database configuration file

To configure trinte app for MySQL / MariaDB database use adapter name mysql.

Database Configuration file

|-- config
    |-- ...
    `-- database.js

Example

module.exports.production = {
    driver     : 'mysql',
    host       : 'localhost',
    port       : '3306',
    username   : 'test',
    password   : 'test',
    database   : 'trinte-dev',
    autoReconnect : true
};
module.exports.development = {
...
};
module.exports.test = {
...
};

Full database params list here

Back to Home

Clone this wiki locally