You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 30, 2020. It is now read-only.
When running flynt setup for an existing project, if the database user already exists then the final flynt setup createDb task fails because it can't create the user (because it already exists).
ERROR 1396 (HY000) at line 1: Operation CREATE USER failed for 'localhost'@'localhost'
Is it possible to add a check to the relevant query that checks IF NOT EXISTS before attempting to create the database user (similar to the line above)?
I already tried manually changing the command to CREATE USER IF NOT EXISTS '${answers.dbUser}'@'${answers.dbHost}' IDENTIFIED BY '${answers.dbPassword}'; but that is invalid syntax.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When running
flynt setup
for an existing project, if the database user already exists then the finalflynt setup createDb
task fails because it can't create the user (because it already exists).Is it possible to add a check to the relevant query that checks
IF NOT EXISTS
before attempting to create the database user (similar to the line above)?I already tried manually changing the command to
CREATE USER IF NOT EXISTS '${answers.dbUser}'@'${answers.dbHost}' IDENTIFIED BY '${answers.dbPassword}';
but that is invalid syntax.The text was updated successfully, but these errors were encountered: