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

mysql: creation of database with hyphen fails #148

Open
dakraus opened this issue Nov 28, 2022 · 1 comment · May be fixed by #149
Open

mysql: creation of database with hyphen fails #148

dakraus opened this issue Nov 28, 2022 · 1 comment · May be fixed by #149

Comments

@dakraus
Copy link

dakraus commented Nov 28, 2022

Hey all,

when using kine with MySQL and a database name with a hyphen (e.g. kine-test), kine fails with

time="2022-11-28T10:27:28Z" level=fatal msg="building kine: Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-test' at line 1"

because the database name is not quoted in the CREATE DATABASE statement.

@dakraus
Copy link
Author

dakraus commented Nov 28, 2022

I created PR #149 as a possible solution.

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 a pull request may close this issue.

1 participant