Hi, im having problem to install PW; "The server requested authentication method unknown to the client ", i can connect normaly with php conection.
$link = mysql_connect('moretrealestatecom.fatcowmysql.com', 'db', 'pass');
if (!$link) {
die('Could not connect: ' . mysql_error());
}
echo 'Connected successfully';
mysql_select_db('db');
But if i try with PDO return SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client:
$dsn = 'mysql:host=moretrealestatecom.fatcowmysql.com;dbname=db';
$options = array(PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8',
);
try {
$online_dbh = new PDO($dsn, 'morelstatedb', 'pass', $options);
$dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
echo "Congratulations!";
} catch (PDOException $e) {
echo $e->getMessage();
}