This function creates a database user. |
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 username.
| A valid username. | example_user1 | |
password | string | Required The new password. | A valid password. | 12345luggage |
Return | Type | Description | Possible values | Example | |
---|---|---|---|---|---|
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 |