Giter Club home page Giter Club logo

korean-json's Issues

Should change local setup instruction, because MySQL version and password issue

Follow your basic setup instruction, I occurred two error in create db.

  1. MySQL version issue > 8.0
$ node_modules/.bin/sequelize db:create

ERROR: Client does not support authentication protocol requested by server; consider upgrading MySQL client

It occurs when I follow your setup instruction and find why it occurs because MySQL uses new authentication plugin caching_sha2_password but, Node.js driver MySQL don't support this plugin not yet.
(https://stackoverflow.com/questions/50373427/node-js-cant-authenticate-to-mysql-8-0/50377944#50377944)

So, I alter root user to older authentication plugin for works Sequelize.

$ mysql -uroot 

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '<mypassword>';
  1. MySQL root password incorrect in local and config.json environments
$ node_modules/.bin/sequelize db:create

ERROR: Access denied for user 'root'@'localhost' (using password: NO)

This error resolve with change development environment password in config.json

config/config.js 
{
  "development": {
    "username": "root",
    "password": "<mypassword>",
    "database": "koreanjson_development",
    "host": "127.0.0.1",
    "dialect": "mysql"
  },
  ...
}

And everything is fine.

I'm not sure this error occurs only to me and those are best solutions, but please consider this issues.

Thank you.


Environment :
OS: Mac High Sierra 10.13.6
Node: 10.14.2
Sequelize CLI: 5.4.0
ORM: 4.42.0
mysql: 8.0.15 for osx10.13 on x86_64 (Homebrew)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.