-
Notifications
You must be signed in to change notification settings - Fork 12.2k
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
Error when running migrations for Grafana 5.1.1 using mysql with utf8mb4 #11862
Comments
Introduced by closing #11754. We'll try to get out a fix for this asap. In the meantime, the workaround is to execute the following: UPDATE migration_log SET success=1 WHERE migration_id='alter user_auth.auth_id to length 255';
ALTER TABLE user_auth MODIFY auth_id VARCHAR(190); Thanks for reporting |
I'm facing the same issue. I tried
Honestly, I don't understand, why the suggestion is to change the field to VARCHAR(190) if Grafana expects/tries to change it to VARCHAR(255). Could you explain? |
Sorry forgot to mention that you need to patch the migration_log table as well. Something like this should work: UPDATE migration_log SET success=1 WHERE migration_id='alter user_auth.auth_id to length 255';
ALTER TABLE user_auth MODIFY auth_id VARCHAR(190); Please confirm that this is working and I'll update my comment above. Thanks |
Manually updating the migration_log table worked, Grafana 5.1.1 starts now. Thanks! |
* grafana/master: changelog: add notes about closing grafana#11862, grafana#11656 Fix dependencies on Node v10 Update dashboard.md Adding a user in a specified organisation uses the admin API
What Grafana version are you using?
Grafana: 5.1.1
What OS are you running grafana on?
CentOS 7
What did you do?
Installed Grafana 5.1.1
What was the expected result?
Grafana 5.1.1 starts
What happened instead?
Seems like this could be related to https://github.com/grafana/grafana/pull/8483/files regarding utf8mb4
3d9b7a5#diff-e100e446139e6466b395663e9e83a731
#11784
The text was updated successfully, but these errors were encountered: