Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upDump SQL with use database since 2.9 #65351
Comments
This comment has been minimized.
This comment has been minimized.
|
Files identified in the description: If these files are inaccurate, please update the |
This comment has been minimized.
This comment has been minimized.
|
@platypus-geek: Greetings! Thanks for taking the time to open this issue. In order for the community to handle your issue effectively, we need a bit more information. Here are the items we could not find in your description:
Please set the description of this issue with this template: |
This comment has been minimized.
This comment has been minimized.
|
Files identified in the description: If these files are inaccurate, please update the |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
@pratikgadiya12 Since you recently worked on this feature, can you please comment on this ? Thanks. |
This comment has been minimized.
This comment has been minimized.
|
+label easyfix |
This comment has been minimized.
This comment has been minimized.
|
Hi guys. I just want to add one more comment how this change is breaking a lot of deployments. This doesn't work any more:
With this bug, import to databse2 will never be executed. Nice regards, |
This comment has been minimized.
This comment has been minimized.
|
We encountered the same issue. IMO Ansible should not use This is our workaround for now: # https://github.com/ansible/ansible/issues/65351
- name: WORKAROUND - Remove "CREATE DATABASE" and "USE" statements from SQL dump
command: sed -i -e '/^CREATE DATABASE /d' -e '/^USE /d' /tmp/dump.sql |
SUMMARY
Since 2.9 mysql_db dump create dump with create database and use instruction.
Is that possible to add an option for using --no-create-db with a dump ?
ISSUE TYPE
COMPONENT NAME
mysql_db