error occured when the paramters were passed like mentioned in document
echo $api->setPrivilegesMySQL("DATABASENAME", "USERDB");
{"warnings":null,"status":0,"errors":["The request failed. (Error ID: qb9qa7) Ask your hosting provider to research this error in cPanel & WHM’s main error log."],"data":null,"messages":null,"metadata":{}}
but when i checked the library it was
public function setPrivilegesMySQL($user, $database) {
$func = "https://$this->cPanelUrl:$this->cPanelPort/execute/Mysql/set_privileges_on_database?user=$user&database=$database&privileges=ALL";
return $this->exe_cpanel($func);
}
so the correct format is
echo $api->setPrivilegesMySQL("USERDB","DATABASENAME");
error occured when the paramters were passed like mentioned in document
echo $api->setPrivilegesMySQL("DATABASENAME", "USERDB");
but when i checked the library it was
public function setPrivilegesMySQL($user, $database) {
so the correct format is
echo $api->setPrivilegesMySQL("USERDB","DATABASENAME");