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
When using quoted datebase names (e.g. name contains a dot), the database is successfully created on the first ansible run, but subsequent runs return an ProgrammingError.
When not using quotes, the database is not created, because it contains a dot:
TASK [Create dummy db] ***************************************************************************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: SQLParseError: MySQL does not support database with more than 1 dots
fatal: [localhost]: FAILED! => {"changed": false, "msg": "error creating database: MySQL does not support database with more than 1 dots"}
Copied from ansible-collections/community.general#148
Initially reported by @Andersson007
Copied from ansible/ansible#47051
Initially reported by @azielke
SUMMARY
When using
quoted
datebase names (e.g. name contains a dot), the database is successfully created on the first ansible run, but subsequent runs return an ProgrammingError.When not using quotes, the database is not created, because it contains a dot:
ISSUE TYPE
COMPONENT NAME
mysql_db
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
OS: Ubuntu 16.04 LTS
STEPS TO REPRODUCE
First run creates the database - 2nd run produces the error below.
EXPECTED RESULTS
task ok
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: