22.27.66. salt.states.mysql_database

22.27.66.1. 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

Docs for previous releases are available on salt.rtfd.org.

Latest Salt release: 2014.1.13

Try the shiny new release candidate of Salt, v2014.7.0rc6! More info here.

Table Of Contents

Previous topic

22.27.65. salt.states.mount

Next topic

22.27.67. salt.states.mysql_grants

SaltStack News

Upcoming SaltStack events, webinars and local meet ups and user groups.