sequelize-auto icon indicating copy to clipboard operation
sequelize-auto copied to clipboard

Error while auto-generating models

Open cliffon opened this issue 9 years ago • 2 comments

$ sequelize-auto -o "./models" -d database_development -h localhost -u cliff -p 3306 -x 123 -e mysql { [SequelizeAccessDeniedError: ER_ACCESS_DENIED_ERROR: Access denied for user 'c liff'@'localhost' (using password: YES)] name: 'SequelizeAccessDeniedError', message: 'ER_ACCESS_DENIED_ERROR: Access denied for user 'cliff'@'localhost ' (using password: YES)', parent: { [Error: ER_ACCESS_DENIED_ERROR: Access denied for user 'cliff'@'localhost' (using password: YES)] code: 'ER_ACCESS_DENIED_ERROR', errno: 1045, sqlState: '28000', fatal: true }, original: { [Error: ER_ACCESS_DENIED_ERROR: Access denied for user 'cliff'@'localhost' (using password: YES)] code: 'ER_ACCESS_DENIED_ERROR', errno: 1045, sqlState: '28000', fatal: true } } Done!

cliffon avatar Apr 25 '17 10:04 cliffon

Probably it is a problem with permission (at the database or at the computer). I already had a similar problem, that I solved using SUDO after the command. If it not solves for you, maybe you may check the db permissions

lfernando-silva avatar Jun 08 '17 19:06 lfernando-silva

You can try creating the Sequelize instance first, and then pass that to SequelizeAuto, as described in the README.

steveschmitt avatar Oct 31 '20 04:10 steveschmitt