Description
This function revokes a MySQL® database user's privileges.
Examples
Note:
Use cPanel's API Shell interface (Home >> Advanced >> API Shell) to directly test cPanel API calls.
Parameters
Parameter |
Type |
Description |
Possible values |
Example |
user |
string |
Required The database user's name. |
A MySQL user on the cPanel account. Important: If database prefixing is enabled, you must prefix this value with the account prefix and an underscore (_). For example, for the dbuser user on the user cPanel account, pass in a value of user_dbuser. |
dbuser |
database |
string |
Required The database's name. |
A MySQL database on the cPanel account. |
mydb |
Returns
This function only returns metadata.