compound icon indicating copy to clipboard operation
compound copied to clipboard

How to configure database with username and password in database.json?

Open balanv opened this issue 13 years ago • 3 comments

Hi,

I ve been using CompoundJS in my local machine, but when i try to use a different database server in production mode. It shows like "[Error: unauthorized db:.... lock type:0 client:127.0.0.1]"

how do i configure username and password in database.json?

balanv avatar Feb 07 '13 08:02 balanv

try i.e

mongodb://user:password@host:port/dbname

sagish avatar Feb 07 '13 08:02 sagish

try i.e

mongodb://user:password@host:port/dbname

On Thu, Feb 7, 2013 at 10:31 AM, balanv [email protected] wrote:

Hi,

I ve been using CompoundJS in my local machine, but when i try to use a different database server in production mode. It shows like "[Error: unauthorized db:.... lock type:0 client:127.0.0.1]"

how do i configure username and password in database.json?

— Reply to this email directly or view it on GitHubhttps://github.com/1602/compound/issues/377.

sagish avatar Feb 07 '13 08:02 sagish

Great.. it works just like that.. thanks Sagish.

balanv avatar Feb 07 '13 08:02 balanv