Description

This function retrieves the number of databases that the cPanel account owns.

Examples


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

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

<cpanel Module="Mysql::number_of_dbs()">
cpapi1 --user=username Mysql number_of_dbs

42

Parameters

This function does not accept parameters.

Returns

This function returns the number of databases that the cPanel account owns.