Skip to content

Added [if not exists] to [create database] clause. #397

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

Merged
merged 2 commits into from
Dec 20, 2013
Merged

Added [if not exists] to [create database] clause. #397

merged 2 commits into from
Dec 20, 2013

Conversation

srinathman
Copy link

this should avoid errors like:
ERROR 1007 (HY000): Can't create database 'MyDB'; database exists

This error can cause a multi-master replication to stop due to conflicting
commands between nodes. For example, if the command create DB is run in
different nodes and then they will send it in the replication logs to each
other and then they will try to run them second time and fail.

this should avoid errors like:
ERROR 1007 (HY000): Can't create database 'MyDB'; database exists

This error can cause a multi-master replication to stop due to conflicting
commands between nodes. For  example, if the command create DB is run in
 different nodes and then they will send it in the replication logs to each
other and then they will try to run them second time and fail.
@igalic
Copy link
Contributor

igalic commented Dec 16, 2013

can you please take a look at the failing test?

apenney pushed a commit that referenced this pull request Dec 20, 2013
Added [if not exists] to [create database] clause.
@apenney apenney merged commit c081327 into puppetlabs:master Dec 20, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants