mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-04-06 10:40:36 -07:00
* Allow the "%" character in database name (#227) The naming rules for MySQL/MariaDB identifiers, when quoted, allow the `%` character. However, currently, the use of the `%` character in database names results in mismatch or missing databases. - Rewrite query to identify the databases in the catalog using `information_schema` instead of `SHOW DATABASES LIKE` - Escape the `%` character in `CREATE DATABASE` query. Signed-off-by: Nicolas Payart <npayart@gmail.com> (cherry picked from commit6b12435b2b
) * mysql_db: Fix assert in tests suite (#239) Signed-off-by: Nicolas Payart <npayart@gmail.com> (cherry picked from commit5522e45284
) * mysql_db: Improve tests (#240) - Define variables "db_names" and "db_formats" in defaults - Use of the "vars" option in includes instead of default parameters that might be overridden by a previous task - Use of the "loop" option in includes instead of duplicating include tasks - Use a nested loop on db_names and db_formats in state_dump_import test Signed-off-by: Nicolas Payart <npayart@gmail.com> (cherry picked from commite4de13aabe
) * MAINTAINERS file: Add new maintainer (#248) (cherry picked from commitd411a8e216
) Co-authored-by: Nicolas PAYART <koleo@users.noreply.github.com>
27 lines
775 B
YAML
27 lines
775 B
YAML
---
|
|
# defaults file for test_mysql_db
|
|
mysql_user: root
|
|
mysql_password: msandbox
|
|
mysql_primary_port: 3307
|
|
|
|
# Database names
|
|
db_names:
|
|
- "data"
|
|
- "db%"
|
|
|
|
# Database formats
|
|
db_formats:
|
|
- { format_type: "sql", file: "dbdata.sql", format_msg_type: "ASCII", file2: "dump2.sql", file3: "dump3.sql", file4: "dump4.sql" }
|
|
- { format_type: "gz", file: "dbdata.gz", format_msg_type: "gzip", file2: "dump2.gz", file3: "dump3.gz", file4: "dump4.gz" }
|
|
- { format_type: "bz2", file: "dbdata.bz2", format_msg_type: "bzip2", file2: "dump2.bz2", file3: "dump3.bz2", file4: "dump4.bz2" }
|
|
|
|
db_name2: 'data2'
|
|
db_user1: 'datauser1'
|
|
db_user2: 'datauser2'
|
|
|
|
tmp_dir: '/tmp'
|
|
db_latin1_name: 'db_latin1'
|
|
file4: 'latin1_file'
|
|
|
|
user_name_1: 'db_user1'
|
|
user_password_1: 'gadfFDSdtTU^Sdfuj'
|