Description
This function removes a MySQL® database user's access privileges from a database.
Warning:
- UAPI (recommended) —
Mysql::revoke_access_to_database
— This function revokes a MySQL® database user's privileges. - cPanel API 2 —
MysqlFE::revokedbuserprivileges
— This function revokes a user's privileges from a database.
Examples
Parameters
Parameter |
Type |
Description |
Possible values |
Example |
dbname |
string |
Required The MySQL database name. |
A valid database name. |
database |
dbuser |
string |
Required The MySQL database user. |
A valid database username. |
user |
Returns
This function does not return output.