Closed ellodave closed 6 years ago
$pdo = new PDO("mysql:host=localhost;dbname=database", 'username', 'password');
$pdo = new PDO("mysql:host=localhost;dbname=database", 'username', 'password');
What are we supposed to do with that? @ellorich did you find the solution? I am encountering the same problem.
What are we supposed to do with that? @ellorich did you find the solution? I am encountering the same problem.
If you are using the default port, remove the ':3306' from your 'new PDO()'.
Thanks nathabonfim59
The name, user, pass and host all match what is in wp-config.php