diff --git a/lib/ansible/modules/database/mysql/mysql_db.py b/lib/ansible/modules/database/mysql/mysql_db.py index caac19b7566..457dcdf36ef 100644 --- a/lib/ansible/modules/database/mysql/mysql_db.py +++ b/lib/ansible/modules/database/mysql/mysql_db.py @@ -265,7 +265,7 @@ def db_import(module, host, user, password, db_name, target, all_databases, port cmd.append("--host=%s" % shlex_quote(host)) cmd.append("--port=%i" % port) if not all_databases: - cmd.append("-D") + cmd.append("--one-database") cmd.append(shlex_quote(''.join(db_name))) comp_prog_path = None