For mysql database

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

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.