Description

This function lists an account's MySQL® database users.



Examples




$cpanel = new CPANEL(); // Connect to cPanel - only do this once.
$list_users = $cpanel->api1('Mysql','listusersopt'); // Call the function.



my $cpliveapi = Cpanel::LiveAPI->new(); # Connect to cPanel - only do this once.
my $list_users = $cpliveapi->api1('Mysql','listusersopt'); # Call the function.


<cpanel Module="Mysql::listusersopt()">




cpapi1 --user=username Mysql listusersopt



<option value="cpuser_dbuser">cpuser_dbuser</option> 
<option value="cpuser_dbuser2">cpuser_dbuser2</option>




Parameters

This function does not accept parameters.

Returns

This function returns HTML that lists MySQL users.