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 Jan 12, 2021. It is now read-only.
Thank you for opening an issue. Please note that we try to keep the Terraform issue tracker reserved for bug reports and feature requests. For general usage questions, please see: https://www.terraform.io/community.html.
Terraform Version
Run terraform -v to show the version. If you are not running the latest version of Terraform, please upgrade because your issue may have already been fixed.
Terraform v0.11.10
Affected Resource(s)
Please list the resources as a list, for example:
mysql_user
mysql_grant
mysql_database
If this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this.
The text was updated successfully, but these errors were encountered:
jabouchleih
changed the title
Adding
Adding multiple users result in Error 1396 (
Dec 4, 2018
jabouchleih
changed the title
Adding multiple users result in Error 1396 (
Adding multiple users result in Error 1396 (Operation CREATE USER failed for 'someuser'@'%')
Dec 4, 2018
jabouchleih
changed the title
Adding multiple users result in Error 1396 (Operation CREATE USER failed for 'someuser'@'%')
Adding multiple users results in Error 1396 (Operation CREATE USER failed for 'someuser'@'%')
Dec 4, 2018
@jabouchleih Try to create dependency between grants and user creation resource. In my, quite similar case, I faced same issue as you and after adding dependency I am able to create multiple user accounts.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi there,
Thank you for opening an issue. Please note that we try to keep the Terraform issue tracker reserved for bug reports and feature requests. For general usage questions, please see: https://www.terraform.io/community.html.
Terraform Version
Run
terraform -v
to show the version. If you are not running the latest version of Terraform, please upgrade because your issue may have already been fixed.Terraform v0.11.10
Affected Resource(s)
Please list the resources as a list, for example:
If this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this.
Terraform Configuration Files
VARIABLES
Debug Output
Expected Behavior
What should have happened?
Users are created properly.
According to this StackOverflow entry, this is due to not
FLUSH PRIVILEGES
between eachCREATE USER
command.Actual Behavior
What actually happened?
The
CREATE USER
command fails with Error 1396.A user is created, but the PW field is empty.
The script aborts with:
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
Important Factoids
Happening on Amazon RDS with an SSH Tunnel, Amazon RDS directly and a local MySQL Instance (v <=5.7.2x)
References
Are there any other GitHub issues (open or closed) or Pull Requests that should be linked here? For example:
The text was updated successfully, but these errors were encountered: