node.js - Using local.js to store sails-mysql password -
i'm trying use mysql database, can't figure out how config/adapters.js use mysql information in config/local.js connect. what's correct way store connection information sails-mysql can connect?
config/local.js merged on top of other configuration. can put own adapters
key in there:
{ adapters: { default: 'mylocaladapter', mylocaladapter: { module: 'sails-mysql', host: 'localhost', user: 'root', password: 'password', database: 'database' } } }
and it'll picked , used sails.
edit in sails v0.10.x, use key connections
instead of adapters
2 differentiated , connections hold authentication info. original answer earlier version of sails.
Comments
Post a Comment