Hello there, I’m trying to use Propel in my system, and though my credentials for my DB seem correct, the PHP installation seems to be missing PDO entirely. Does anyone have insight into why or what is it I’m encountering? The full stack trace is below:
[12-Apr-2023 16:29:44 UTC] PHP Fatal error: Uncaught PDOException: SQLSTATE[HY000] [2002] Connection refused in /www/kinsta/public/l4g-stage/wp-content/plugins/l4g/vendor/dayspring-tech/propel1/runtime/lib/connection/PropelPDO.php:152
Stack trace:
#0 /www/kinsta/public/l4g-stage/wp-content/plugins/l4g/vendor/dayspring-tech/propel1/runtime/lib/connection/PropelPDO.php(152): PDO->__construct()
#1 /www/kinsta/public/l4g-stage/wp-content/plugins/l4g/vendor/dayspring-tech/propel1/runtime/lib/Propel.php(686): PropelPDO->__construct()
#2 /www/kinsta/public/l4g-stage/wp-content/plugins/l4g/vendor/dayspring-tech/propel1/runtime/lib/Propel.php(586): Propel::initConnection()
#3 /www/kinsta/public/l4g-stage/wp-content/plugins/l4g/vendor/dayspring-tech/propel1/runtime/lib/Propel.php(561): Propel::getMasterConnection()
#4 /www/kinsta/public/l4g-stage/wp-content/plugins/l4g/classes/security-service.php(485): Propel::getConnection()
#5 /www/kinsta/public/l4g-stage/wp-content/plugins/l4g/classes/security-service.php(473): SecurityService->create_pdo_adapter()
#6 /www/kinsta/public/l4g-stage/wp-content/plugins/l4g/classes/security-service.php(29): SecurityService->connect()
#7 /www/kinsta/public/l4g-stage/wp-content/plugins/l4g/public/class-l4g-public.php(112): SecurityService->__construct()
#8 /www/kinsta/public/l4g-stage/wp-content/plugins/l4g/includes/class-l4g.php(196): L4g_Public->__construct()
#9 /www/kinsta/public/l4g-stage/wp-content/plugins/l4g/includes/class-l4g.php(80): L4g->define_public_hooks()
#10 /www/kinsta/public/l4g-stage/wp-content/plugins/l4g/l4g.php(78): L4g->__construct()
#11 /www/kinsta/public/l4g-stage/wp-content/plugins/l4g/l4g.php(82): run_l4g()
#12 /www/kinsta/public/l4g-stage/wp-settings.php(453): include_once('...')
#13 /www/kinsta/public/l4g-stage/wp-config.php(118): require_once('...')
#14 /www/kinsta/public/l4g-stage/wp-load.php(50): require_once('...')
#15 /www/kinsta/public/l4g-stage/wp-blog-header.php(13): require_once('...')
#16 /www/kinsta/public/l4g-stage/index.php(17): require('...')
#17 {main}
Next PropelException: Unable to open PDO connection [wrapped: SQLSTATE[HY000] [2002] Connection refused] in /www/kinsta/public/l4g-stage/wp-content/plugins/l4g/vendor/dayspring-tech/propel1/runtime/lib/Propel.php:691
Stack trace:
#0 /www/kinsta/public/l4g-stage/wp-content/plugins/l4g/vendor/dayspring-tech/propel1/runtime/lib/Propel.php(586): Propel::initConnection()
#1 /www/kinsta/public/l4g-stage/wp-content/plugins/l4g/vendor/dayspring-tech/propel1/runtime/lib/Propel.php(561): Propel::getMasterConnection()
#2 /www/kinsta/public/l4g-stage/wp-content/plugins/l4g/classes/security-service.php(485): Propel::getConnection()
#3 /www/kinsta/public/l4g-stage/wp-content/plugins/l4g/classes/security-service.php(473): SecurityService->create_pdo_adapter()
#4 /www/kinsta/public/l4g-stage/wp-content/plugins/l4g/classes/security-service.php(29): SecurityService->connect()
#5 /www/kinsta/public/l4g-stage/wp-content/plugins/l4g/public/class-l4g-public.php(112): SecurityService->__construct()
#6 /www/kinsta/public/l4g-stage/wp-content/plugins/l4g/includes/class-l4g.php(196): L4g_Public->__construct()
#7 /www/kinsta/public/l4g-stage/wp-content/plugins/l4g/includes/class-l4g.php(80): L4g->define_public_hooks()
#8 /www/kinsta/public/l4g-stage/wp-content/plugins/l4g/l4g.php(78): L4g->__construct()
#9 /www/kinsta/public/l4g-stage/wp-content/plugins/l4g/l4g.php(82): run_l4g()
#10 /www/kinsta/public/l4g-stage/wp-settings.php(453): include_once('...')
#11 /www/kinsta/public/l4g-stage/wp-config.php(118): require_once('...')
#12 /www/kinsta/public/l4g-stage/wp-load.php(50): require_once('...')
#13 /www/kinsta/public/l4g-stage/wp-blog-header.php(13): require_once('...')
#14 /www/kinsta/public/l4g-stage/index.php(17): require('...')
#15 {main}
thrown in /www/kinsta/public/l4g-stage/wp-content/plugins/l4g/vendor/dayspring-tech/propel1/runtime/lib/Propel.php on line 691```
You can see a few lines above that the DB connection info appears to be correct:
```[12-Apr-2023 16:29:44 UTC] PHP 16. Propel::initConnection($conparams = ['dsn' => 'mysql:host=127.0.0.1;dbname=L4G_Stage', 'user' => 'root', 'password' => 'eiUpaJVtKZx1788J'], $name = 'l4g', $defaultClass = *uninitialized*) /www/kinsta/public/l4g-stage/wp-content/plugins/l4g/vendor/dayspring-tech/propel1/runtime/lib/Propel.php:586
Matching my DevKinsta:
I dumped a phpinfo() and I see this:
Can anyone help?