Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with user authentication when I try to migrate #49

Open
kinsomicrote opened this issue Apr 13, 2017 · 1 comment
Open

Issue with user authentication when I try to migrate #49

kinsomicrote opened this issue Apr 13, 2017 · 1 comment

Comments

@kinsomicrote
Copy link

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.

@JayFischer
Copy link

JayFischer commented Dec 4, 2017

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants