Description

This function checks a MySQL® database's integrity.

Examples


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

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

<cpanel Module="Mysql::checkdb($FORM('dbname'))">
cpapi1 --user=username Mysql checkdb database

This function does not return output.

Parameters

ParameterTypeDescriptionPossible valuesExample
dbnamestring

Required

The MySQL database name.

A valid database name.
database

Returns

This function does not return output.