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?