i have a website with webservices, in the code to connect to database i have this;
private function __construct()
{
try {
$this->objetoPDO = new PDO(‘mysql:host=localhost;dbname=abmusuario;charset=utf8’,‘here the username’,‘here the password’, array(PDO::ATTR_EMULATE_PREPARES => false,PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION));
$this->objetoPDO->exec(“SET CHARACTER SET utf8”);
}
in the use to ws, i have this error “Error!: SQLSTATE[#4200]: <>: 1044 Access denied for user ‘the username’@’%’ to database ‘abmusuario’”
have any solutions? for logic i use the user and pass for this database.