Description
This function authorizes a remote host to access a cPanel account's MySQL® users.
Warning:
- UAPI (recommended) —
Mysql::add_host
— This function authorizes a remote MySQL® host to access the account's databases. - cPanel API 2 —
MysqlFE::authorizehost
— This function authorizes a host for remote access to the account's database.
Examples
Parameters
Parameter |
Type |
Description |
Possible values |
Example |
hostname |
string |
Required The hostname or IP address. |
A valid domain name or IP address. |
remote.example.com |
Returns
This function does not return output.