puppetlabs/puppetlabs-mysql — pull request #397 by srinathman (2013-12-16 03:06:12+00:00)
Title: Added [if not exists] to [create database] clause.

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.