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.
uapi --output=jsonpretty \ --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
}
}