Failed to connect to MySQL: (1045) Access denied for user 'root'@'localhost' (using password: NO)

Failed to connect to MySQL: (1045) Access denied for user 'root'@'localhost' (using password: NO)

can you help me here i have site and i am using one form to take customer data and send to the zoho via API v1 but now i want to upgrade to the API v2 so i followed by php SDK and i follow this url to create user https://www.zoho.com/crm/developer/docs/php-sdk/organization-sample.html?src=create_user

and i used this below code


<?php
include 'zoho-sdk/vendor/autoload.php';
use zcrmsdk\crm\setup\restclient\ZCRMRestClient;
use zcrmsdk\crm\setup\users\ZCRMProfile;
use zcrmsdk\crm\setup\users\ZCRMRole;
use zcrmsdk\crm\setup\users\ZCRMUser;
class Org{
    public function __construct()
    {
            $configuration = array("client_id"=>"","client_secret"=>"","redirect_uri"=>"","currentUserEmail"=>"");
            ZCRMRestClient::initialize($configuration);
    }
    public function createUser(){
        $orgIns = ZCRMRestClient::getOrganizationInstance(); // to get the organization instance
       
        $user=ZCRMUser::getInstance(NULL, NULL);//to get the user instance
        $user->setLastName("subject");//to set the last name of the user
        $user->setFirstName("test");//to set the first name of the user
        $user->setEmail("");//to set the email id of the user
        $role=ZCRMRole::getInstance("{role_id}","{role_name}");//to get the role
        $user->setRole($role);//to get the role of the user
        $profile=ZCRMProfile::getInstance("{profile_id}","{profile_name}");//to get the profile
        $user->setProfile($profile);//to set the profile of the user
        $responseIns=$orgIns->createUser($user);//to create the user
        echo "HTTP Status Code:".$responseIns->getHttpStatusCode(); //To get http response code
        echo "Status:".$responseIns->getStatus(); //To get response status
        echo "Message:".$responseIns->getMessage(); //To get response message
        echo "Code:".$responseIns->getCode(); //To get status code
        echo "Details:".json_encode($responseIns->getDetails());
    }
}

$obj = new Org();
$obj->createUser();
 

but it give me this error ==> Failed to connect to MySQL: (1045) Access denied for user 'root'@'localhost' (using password: NO)

can you help me to integrate with API v2.