mysql user based database privileges code example
Example 1: mysql user permission database
GRANT ALL PRIVILEGES ON `db_name`.* TO 'user'@'host'
Example 2: mysql grant
if(curl_exec($ch) === false)
{
echo 'Curl error: ' . curl_error($ch);
}
else
{
echo 'Operation completed without any errors';