Description
This function retrieves the server's MySQL® host.
Warning:
- UAPI (recommended) —
Mysql::locate_server
— This function returns information about the account's MySQL® host. - cPanel API 2 —
MysqlFE::gethosts
— This function lists authorized remote hosts for the account's databases.
Examples
Parameters
This function does not accept parameters.
Returns
This function returns the IP address or hostname of the MySQL host that the server uses.