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 fr
  • table β€” defaults to "*". Every table, she contains multitudes ✨
  • host β€” defaults to localhost. Home sweet home 🏠
  • state β€” "present" grants, "absent" revokes. Defaults to present. 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.


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