Description

This function changes MySQL® database user privileges on an account.

Examples 




https://hostname.example.com:2083/cpsess###########/execute/Mysql/update_privileges



$cpanel = new CPANEL(); // Connect to cPanel - only do this once.
 
// Update privileges for the database users.
$update_privileges = $cpanel->uapi(
    'Mysql', 'update_privileges'
);



my $cpliveapi = Cpanel::LiveAPI->new(); # Connect to cPanel - only do this once.
 
# Update privileges for the database users.
my $update_privileges = $cpliveapi->uapi(
    'Mysql', 'update_privileges'
);



uapi --user=username Mysql update_privileges



{
  "messages": null,
  "errors": null,
  "status": 1,
  "metadata": {
     
  },
}



Parameters

This function does not accept parameters.

Returns

This function only returns metadata.