SequelizeAccessDeniedError: Access denied for user 'root'@'localhost' (using password: YES) #13020
-
Hi all, after been searching for all day I decided to ask here if someone can give some lights to this issue. Why and how to solve this. macOS Catalina 10.15.6 app.js running the server and added
config.js
models/model.js `const { Sequelize } = require("sequelize");
module.exports = Farmer;` models/index.js `const dbConfig = require('../config/config'); const sequelize = new Sequelize(dbConfig.DB_NAME, dbConfig.DB_USER, dbConfig.DB_PASSWORD,{ sequelize.authenticate().then(()=> { module.exports = sequelize; |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
Fixed. The password was incorrect. |
Beta Was this translation helpful? Give feedback.
-
you need to make sure you have sourced your db schema before you run the server in Sequelize. Because Sequelize looks for the data |
Beta Was this translation helpful? Give feedback.
-
Tengo este error directamente en la terminal de nodemon, ya intente con varias cosas pero me sigue saliendo el mismo error. Alguien que me pueda ayudar sqlMessage: "Access denied for user 'root'@'localhost' (using password: YES)", |
Beta Was this translation helpful? Give feedback.
-
In my case, I was using the wrong username. I hope this information is helpful to somebody. |
Beta Was this translation helpful? Give feedback.
Fixed. The password was incorrect.