Skip to content

parameter order incorrect in Set Privileges DataBase x User #5

Description

@jitin-joseph

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");

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions