DOKK / manpages / debian 12 / cdist / cdist-type__mysql_database.7.en
CDIST-TYPE__MYSQL_DATABASE(7) cdist CDIST-TYPE__MYSQL_DATABASE(7)

cdist-type__mysql_database - Manage a MySQL database

Create MySQL database and optionally user with all privileges.

Name of database. Defaults to object id.
Create user and give all privileges to database.
Password for user.
Defaults to present. If absent and user is also set, both will be removed (with privileges).

# just create database
__mysql_database foo
# create database with respective user with all privileges to database
__mysql_database bar \

--user name \
--password secret


Ander Punnar <ander-at-kvlt-dot-ee>

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.

ungleich GmbH 2021

January 15, 2023 7.0.0