ANSIBLE.MYSQL_DB(3)             ANSIBLE MODULES            ANSIBLE.MYSQL_DB(3)



NAME
       mysql_db - Add or remove MySQL databases from a remote host.

DESCRIPTION
       Add or remove MySQL databases from a remote host.

OPTIONS
       collation
              Collation mode

       encoding
              Encoding mode

       login_host
              Host running the database (default: localhost)

       login_password
              The password used to authenticate with

       login_port
              Port of the MySQL server (default: 3306)

       login_unix_socket
              The path to a Unix domain socket for local connections

       login_user
              The username used to authenticate with

       name   name of the database to add or remove(required)

       state  The database state Choices: present,absent,dump,import.
              (default: present)

       target Where to dump/get the .sql file.

NOTES
       Requires the MySQLdb Python package on the remote host. For Ubuntu,
       this is as easy as apt-get install python-mysqldb. (See apt.)

       Both login_password and login_user are required when you are passing
       credentials. If none are present, the module will attempt to read the
       credentials from ~/.my.cnf, and finally fall back to using the MySQL
       default login of root with no password.

EXAMPLES
       # Create a new database with name 'bobdata'
       - mysql_db: name=bobdata state=present



AUTHOR
       Mark Theunissen

SEE ALSO
       ansible(1), http://ansible.github.com/modules.html#mysql-db



1.4.5                             2014-02-12               ANSIBLE.MYSQL_DB(3)
