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 8 removes shorthand for creating user with permissions #243

Closed
skupjoe opened this issue Oct 13, 2020 · 5 comments
Closed

MySQL 8 removes shorthand for creating user with permissions #243

skupjoe opened this issue Oct 13, 2020 · 5 comments

Comments

@skupjoe
Copy link
Contributor

skupjoe commented Oct 13, 2020

After switching to MySQL 8, I am seeing this sort of error during /opt/setup/50-icinga2 which prevents initialization:

ERROR 1064 (42000) at line 2: 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 'IDENTIFIED BY '<PASS>'' at line 4

It looks like the shorthand syntax of assigning users + permissions in the same SQL declaration is no longer supported:
https://ma.ttias.be/mysql-8-removes-shorthand-creating-user-permissions/

skupjoe added a commit to skupjoe/jjethwa-icinga2 that referenced this issue Oct 13, 2020
skupjoe added a commit to skupjoe/jjethwa-icinga2 that referenced this issue Oct 13, 2020
skupjoe added a commit to skupjoe/jjethwa-icinga2 that referenced this issue Oct 13, 2020
@jjethwa
Copy link
Owner

jjethwa commented Oct 14, 2020

Thanks for the heads up, @skupjoe

The PR #244 was closed by you, can you re-open and let me know when ready?

@skupjoe
Copy link
Contributor Author

skupjoe commented Oct 14, 2020

PR #245 opened

jjethwa added a commit that referenced this issue Oct 16, 2020
@jjethwa
Copy link
Owner

jjethwa commented Oct 16, 2020

Thanks @skupjoe
Merged and available in latest. Looks good to me, let me know how it works for you

@skupjoe
Copy link
Contributor Author

skupjoe commented Oct 16, 2020

Yup working well. MySQL8 on AWS RDS + Icinga 2.12.0

(Also, looks like 2.12.1 was just released)

@jjethwa
Copy link
Owner

jjethwa commented Oct 16, 2020

Great, thanks, @skupjoe

I'll tag 2.12.1 and release it as it has your changes already 😄

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

2 participants