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

fix MySQL initial setup #1336

Merged
merged 1 commit into from
Mar 21, 2021
Merged

Conversation

dyseg
Copy link
Contributor

@dyseg dyseg commented Mar 21, 2021

Error during the very first startup when the DB tables should be created:

Mysql: error while creating db: mysql_error (1065): "Query was empty"

The problem is that after the mysql.sql file content is split by ';', during the last loop the statement variable will only contain a newline character, which causes the mentioned MySQL error.

for (const auto& statement : splitString(sql, ';')) {

@KarlStraussberger KarlStraussberger enabled auto-merge (rebase) March 21, 2021 23:01
@KarlStraussberger
Copy link
Member

Thank you.

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

Successfully merging this pull request may close these issues.

None yet

2 participants