ansible/ansible — pull request #1289 by abondis (2012-10-11 03:33:09+00:00)
Title: mysql_db: connection test, dump/import state

* test connection using the db name provided instead of 'mysql' (avoids issues when selected use has no right on 'mysql' db)
* dump/import state with target= required

````
#dump mydb to /path/to/afile.sql
- mysql_db: state=dump name=mydb target=/path/to/afile.sql
#import /path/to/afile.sql into mydb
- mysql_db: state=import name=mydb target=/path/to/afile.sql
````