document returned value

This commit is contained in:
Laurent Indermuehle 2023-09-15 09:21:06 +02:00
parent c1248cb692
commit 83ad999038
No known key found for this signature in database
GPG key ID: 93FA944C9F34DD09

View file

@ -506,17 +506,18 @@ class MySQL_Info(object):
of privileges that can be used with the mysql_user plugin. of privileges that can be used with the mysql_user plugin.
For instance: For instance:
"users_privs": { "users_privs": [
"users_privs_adm_users_privs.com": { {
"host": "users_privs.com", "host": "users_privs.com",
"privs": "*.*: ALL,GRANT", "privs": "*.*: ALL,GRANT",
"user": "users_privs_adm" "user": "users_privs_adm"
}, },
"users_privs_multi_users_privs.com": { {
"host": "users_privs.com", "host": "users_privs.com",
"privs": "`mysql`.*: SELECT/`users_privs_db`.*: SELECT", "privs": "`mysql`.*: SELECT/`users_privs_db`.*: SELECT",
"user": "users_privs_multi" "user": "users_privs_multi"
} }
]
""" """
try: try:
users = self.__exec_sql('SELECT * FROM mysql.user') users = self.__exec_sql('SELECT * FROM mysql.user')