This function lists a database user's privileges on a database. |
We strongly recommend that you use the following UAPI function instead of this function: |
Examples
|
Parameter | Type | Description | Possible values | Example |
---|---|---|---|---|
dbuser | string | Required The database user's name. | A valid username. | example_user1 |
db | string | Required The database's name. | A valid database name. | example_database |
Return | Type | Description | Possible values | Example | |
---|---|---|---|---|---|
data | array | A list of permissions that the database user has on the database. |
| ALL_PRIVILEGES | |
reason | string | A reason for failure.
| A string that describes the error. | This is an error message. | |
result | Boolean | Whether the function succeeded. |
| 1
|
Function information
About this moduleThe MysqlFE module manages MySQL databases, users, and services. About cPanel API 2Find a functionRelated functions |