Description

This function authorizes a remote host to access a cPanel account's MySQL® users.

Examples


$cpanel = new CPANEL(); // Connect to cPanel - only do this once.
$remove_remotehost = $cpanel->api1('Mysql','delhost', array('remote.example.com') ); // Call the function.

my $cpliveapi = Cpanel::LiveAPI->new(); # Connect to cPanel - only do this once.
my $remove_remotehost = $cpliveapi->api1('Mysql','delhost', ['remote.example.com'] ); # Call the function.

<cpanel Module="Mysql::delhost( $FORM('host'))">
cpapi1 --user=username Mysql delhost remote.example.com

This function does not return output.

Parameters

ParameterTypeDescriptionPossible valuesExample
hoststring

Required

The hostname or IP address from which to remove access.

A valid domain name or a valid IP address.
remote.example.com

Returns

This function does not return output.