brianschardt / node_rest_api_mysql

MIT License
248 stars 140 forks source link

MySQL is not able to connect #7

Closed ghost closed 6 years ago

ghost commented 6 years ago

When I type "npm start", it shows following error.


> server@0.0.0 start /Volumes/Data/Study/node_rest_api_mysql
> node ./bin/www

Environment: dev
Server listenning on port: 3000
Unable to connect to SQL database: test { SequelizeConnectionError: Host '127.0.0.1' is not allowed to connect to this MySQL server
    at Utils.Promise.tap.then.catch.err (/Volumes/Data/node_rest_api_mysql/node_modules/sequelize/lib/dialects/mysql/connection-manager.js:149:19)
    at tryCatcher 
..
ghost commented 6 years ago

It was mysql user privilege problem, not related to this project.