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

ER_WRONG_VALUE_FOR_VAR: Variable 'sql_mode' can't be set to the value of 'NO_AUTO_CREATE_USER' #59

Open
dotnetprofessional opened this issue Dec 12, 2018 · 2 comments

Comments

@dotnetprofessional
Copy link

I'm getting the following error when running:

source ../env.sh ;node index.js
ER_WRONG_VALUE_FOR_VAR: Variable 'sql_mode' can't be set to the value of 'NO_AUTO_CREATE_USER'

I'm running on Windows and your setup seem tailored to Linux.

@roryscot
Copy link

roryscot commented Jan 23, 2019

@dotnetprofessional

  1. open api/index.js and

  2. find
    db.query(` SET sql_mode = "STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION" `);
    around line 91;

  3. Delete NO_AUTO_CREATE_USER from the query value

@john012343210
Copy link

@roryscot it works thanks!

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

3 participants