cdist-web/src/extra/manual/beta/_sources/man7/cdist-type__mysql_database....

56 lines
1.0 KiB
Plaintext
Raw Normal View History

2019-04-23 18:55:23 +00:00
cdist-type__mysql_database(7)
=============================
NAME
----
cdist-type__mysql_database - Manage a MySQL database
DESCRIPTION
-----------
2020-01-04 13:52:50 +00:00
Create MySQL database and optionally user with all privileges.
2019-04-23 18:55:23 +00:00
OPTIONAL PARAMETERS
-------------------
name
2020-01-04 13:52:50 +00:00
Name of database. Defaults to object id.
2019-04-23 18:55:23 +00:00
user
2020-01-04 13:52:50 +00:00
Create user and give all privileges to database.
2019-04-23 18:55:23 +00:00
password
2020-01-04 13:52:50 +00:00
Password for user.
state
Defaults to present.
If absent and user is also set, both will be removed (with privileges).
2019-04-23 18:55:23 +00:00
EXAMPLES
--------
.. code-block:: sh
2020-01-04 13:52:50 +00:00
# just create database
__mysql_database foo
# create database with respective user with all privileges to database
__mysql_database bar \
--user name \
--password secret
2019-04-23 18:55:23 +00:00
AUTHORS
-------
2020-01-04 13:52:50 +00:00
Ander Punnar <ander-at-kvlt-dot-ee>
2019-04-23 18:55:23 +00:00
COPYING
-------
2020-01-04 13:52:50 +00:00
Copyright \(C) 2020 Ander Punnar. You can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any
later version.