New in version 2014.7.0.
depends: |
|
---|---|
configuration: | See salt.modules.mysql for setup instructions. |
The mysql_query module is used to execute queries on MySQL databases. Its output may be stored in a file or in a grain.
query_id:
mysql_query.run
- database: my_database
- query: "SELECT * FROM table;"
- output: "/tmp/query_id.txt"
Execute an arbitrary query on the specified database
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.
22.27.67. salt.states.mysql_grants
22.27.69. salt.states.mysql_user
Upcoming SaltStack events, webinars and local meet ups and user groups.