php - PDO Cannot Connect to Remote MySQL -


i've setup load balancer, has 3 public servers serving users. here's have problem... site uses pdo connect database, mysql server on 1 single remote server them connect , doesn't seem work. here's error get: "fatal error: uncaught exception 'pdoexception' message 'could not find driver' in /var/www/pingrglobe.com/backend/database.php:8 stack trace: #0 /var/www/pingrglobe.com/backend/database.php(8): pdo->__construct('mysql:host=162....', 'root', 'nope') #1 /var/www/pingrglobe.com/structure/header.php(4): require('/var/www/pingrg...') #2 /var/www/pingrglobe.com/index.php(2): require('/var/www/pingrg...') #3 {main} thrown in /var/www/pingrglobe.com/backend/database.php on line 8"

here's code:

$host = "162.243.135.167"; $user = "root"; $pass = "nope;)"; $dbname = "pingrglobe"; $db = new pdo("mysql:host=".$host.";port=3306;dbname=".$dbname, $user, $pass); 


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -