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

[*] Technical - Sequelize is not compatible with MySQL till V8.X.X #291

Open
SteveBunlon opened this issue Jul 15, 2019 · 0 comments
Open

Comments

@SteveBunlon
Copy link
Member

Expected behavior

Sequelize should be able to connect to MySQL V8.X.X

Actual behavior

Sequelize can't create a connection to MySQL database with version starting at 8.X.X

Failure Logs

Screenshot 2019-07-12 at 14 58 57

Context

When using a MySQL database with version 8, the MySQL connector within Sequelize (mysql2) is not able to establish a connection. This is due to the new authentication plugin from MySQL that connectors do not support so far.

  • Package Version: Every version
  • Sequelize Version: 5.8.6
  • Database Dialect: MySQL
  • Database Version: 8.X.X

Workarounds :

  • Run the following queries :
    ALTER USER ‘YOURUSER’@‘localhost’ IDENTIFIED WITH mysql_native_password BY ‘YOUR_NEW_PASSWORD’;
    FLUSH PRIVILEGES;
  • Reinstall MySQL and don't use the new authentication mechanism.
  • Downgrade to previous version of MySQL
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

1 participant