todomvc-plusplus icon indicating copy to clipboard operation
todomvc-plusplus copied to clipboard

Issue with user authentication when I try to migrate

Open kinsomicrote opened this issue 7 years ago • 1 comments

Hello,

When I run sequelize db:migrate I get the error below:

Sequelize [Node: 6.10.1, CLI: 2.7.0, ORM: 3.30.4]

Loaded configuration file "db/database.js".
Using environment "development".
Unable to connect to database: SequelizeConnectionError: password authentication failed for user 

How do I fix it? So far nothing on Google has worked.

Thanks.

kinsomicrote avatar Apr 13 '17 10:04 kinsomicrote

@kinsomicrote -- I would recommend using the user.js file with a new databaseUrl config -- postgres://role:password@server:port/db. Make sure your PG server is running and you have a role created with a password for the tables.

Example config/user.js:

"use strict";

let config = {}

config.databaseUrl = "postgres://username:pasword@localhost:5432/todos"

module.exports = config

Next, run sequelize db:migrate.

JayFischer avatar Dec 04 '17 03:12 JayFischer