# salt.states.mysql_database

## Management of MySQL databases (schemas).

depends: | MySQLdb Python module
configuration: | See `salt.modules.mysql` for setup instructions.

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, **connection_args)

  Ensure that the named database is absent

  name
    The name of the database to remove

`salt.states.mysql_database.` `present`(name, **connection_args)

  Ensure that the named database is present with the specified properties

  name
    The name of the database to manage

Current Salt release: 0.17.1

### Table Of Contents

- salt.states.mysql_database
  - Management of MySQL databases (schemas).

#### Previous topic

salt.states.mount

#### Next topic

salt.states.mysql_grants

### Quick search

Enter search terms or a module, class or function name.

### Upcoming SaltStack Events

My conferences on Lanyrd