This function revokes a MySQL® database user's privileges.
Important:
When you disable the MySQL role and remote MySQL is not already configured, the system disables this function.
database required | string The database's name. Example: database=mydb |
user required | string The database user's name. Important: If database prefixing is enabled, you must prefix this value with the account
prefix and an underscore ( For example, for the Example: user=dbuser |
apiversion | integer The version of the API. |
func | string The name of the method called. |
module | string The name of the module called. |
object |
uapi --user=username Mysql revoke_access_to_database user='dbuser' database='mydb'
{- "apiversion": 3,
- "func": "revoke_access_to_database",
- "module": "Mysql",
- "result": {
- "data": null,
- "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}