Failed to connect to web bank - Access denied for user [closed]

0

ERROR:SQLSTATE[HY000] [1045] Access denied for user 'usuario_do_banco_web'@'meu_ip' (using password: YES)

My php connection file: (config.php)

Note: Replace the different credentials just to illustrate.     

$pdo = new PDO("mysql:host=www.meudominio.com.br;dbname=meudominio_banco"," usuario","senha");
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);

}catch(PDOException $e){

echo 'ERROR:' . $e->getMessage();
}

Whenever I try to run it gives this access denied error. The site dashboard is cPanel.

Any help?

    
asked by anonymous 18.05.2016 / 19:45

1 answer

0

The problem was not in the code. The provider had blocked any access I do not know why, so I contacted them and released, now it's normal.

Thanks to everyone

    
22.05.2016 / 23:34