salt.states.mysql_database

### Navigation

- index
- modules |
- next |
- previous |
- « SaltStack.org |
- Documentation home
- Full list of builtin state modules »

# salt.states.mysql_database

## Management of MySQL databases (schemas).

NOTE: This module requires the MySQLdb python module and the proper settings in the minion config file. See salt.modules.mysql for more information.

The mysql_database module is used to create and manage MySQL databases. Databases can be set as either absent or present.

    frank:
      mysql_database.present

`salt.states.mysql_database.` `absent`(name)

  Ensure that the named database is absent

  name
    The name of the database to remove

`salt.states.mysql_database.` `present`(name)

  Ensure that the named database is present with the specified properties

  name
    The name of the database to manage

## Comments

comments powered by Disqus

### Navigation

- index
- modules |
- next |
- previous |
- « SaltStack.org |
- Documentation home
- Full list of builtin state modules »