try { $pdo = new PDO('mysql:host=localhost;dbname=test', 'root', 'test'); } catch(PDOException $e) { }
Który zwraca komunikat:
Cytat
SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client
Jak to naprawić?
try { $pdo = new PDO('mysql:host=localhost;dbname=test', 'root', 'test'); } catch(PDOException $e) { }