CDIST-TYPE__MYSQL_PRIVILEGES(7)
π cdist-type__mysql_privileges(7) π
ok so bestie, welcome to cdist-type__mysql_privileges β it's a cdist type, it lives in section 7 of the manual, and it is literally here to hand out and take away MySQL privileges like it's running the guest list at the club π
β¨ NAME β¨
cdist-type__mysql_privileges β manage MySQL privileges, no cap π
πΈ DESCRIPTION πΈ
It grants and revokes privileges for a MySQL user. That's it, that's the whole vibe. You say who, you say what, it makes it happen π¦
π₯ REQUIRED PARAMETERS π₯
These ones are not optional, bestie, you gotta bring them or nothing happens:
databaseβ the name of the database. Like, which db are we doing this for πuserβ the name of the user. Who's getting the keys π
π OPTIONAL PARAMETERS π
These ones have defaults so you can absolutely just vibe and let them do their thing:
privilegesβ defaults to"all". Yeah, all of them, main character energy frtableβ defaults to"*". Every table, she contains multitudes β¨hostβ defaults tolocalhost. Home sweet home πstateβ"present"grants,"absent"revokes. Defaults topresent. So by default we're giving, not taking away π
π EXAMPLES π
Here's the moment you've been waiting for, the iconic one-liner:
__mysql_privileges user-to-db --database db --user user
Look at her go π« --database db, --user user, and the rest just falls into place with those defaults.
π«Ά AUTHORS π«Ά
Ander Punnar <ander-at-kvlt-dot-ee> β ty for your service, legend π
π COPYING π
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.
π COPYRIGHT π
ungleich GmbH 2021
and that's the whole page bestie, go grant some privileges responsibly πβ¨
k bye, this was cdist type __mysql_privileges, version 7.0.0, dated Jul 31, 2022 β mwah, slay, periodt π
π
π¦ where this page comes from
- fedora 43: cdist 7.0.0-16.fc43 Β· GPL-3.0-only
- fedora 44: cdist 7.0.0-18.fc44 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms