Description
This function revokes a user's privileges from a database.
Warning:
We strongly recommend that you use the following UAPI function instead of this function:
-
Mysql::revoke_access_to_database
— 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 |
db |
string |
The database name. |
A valid database name. |
example_db1 |
dbuser |
string |
The database username. |
A valid database username |
example_user1 |
Returns
Return |
Type |
Description |
Possible values |
Example |
reason |
string |
A reason for failure. Note: This function only returns a reasonvalue if it failed. |
A string that describes the error. |
This is an error message. |
result |
Boolean |
Whether the function succeeded. |
|
1 |