I uploaded my site (using filezilla) using php / mysql. In localhost it works perfectly but not on external server. The following error appears:
SQLSTATE [HY000] [1045] Access denied for user 'root' @ 'localhost
<?php
try {
$pdo = new PDO ('mysql:host=localhost;dbname=***', '***', '***');
}
catch (PDOException $e) {
exit('Database error.');
}
?>
What could be missing?