Connection Refuse

Other discussions about CSPro
Post Reply
butching
Posts: 2
Joined: May 11th, 2022, 11:12 pm

Connection Refuse

Post by butching » May 12th, 2022, 3:00 am

[2022-05-12 14:49:33] request.CRITICAL: Uncaught PHP Exception PDOException: "SQLSTATE[HY000] [2003] Can't connect to remote MySQL server for client connected to 127.0.0.1:60744" at /home/kbacuyag/cbms/vendor/bshaffer/oauth2-server-php/src/OAuth2/Storage/Pdo.php line 67 {"exception":"[object] (PDOException(code: 2003): SQLSTATE[HY000] [2003] Can't connect to remote MySQL server for client connected to 127.0.0.1:60744 at /home/kbacuyag/cbms/vendor/bshaffer/oauth2-server-php/src/OAuth2/Storage/Pdo.php:67)"} []
[2022-05-12 14:49:33] php.CRITICAL: Uncaught Exception: SQLSTATE[HY000] [2002] Connection refused {"exception":"[object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/kbacuyag/cbms/vendor/aura/sql/src/ExtendedPdo.php:217)"} []
[2022-05-12 14:49:33] request.CRITICAL: Uncaught PHP Exception PDOException: "SQLSTATE[HY000] [2002] Connection refused" at /home/kbacuyag/cbms/vendor/aura/sql/src/ExtendedPdo.php line 217 {"exception":"[object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/kbacuyag/cbms/vendor/aura/sql/src/ExtendedPdo.php:217)"} []
[2022-05-12 14:49:33] php.CRITICAL: Uncaught Exception: SQLSTATE[HY000] [2002] Connection refused {"exception":"[object] (PDOException(code: 2002): SQLSTATE[HY000] [2002] Connection refused at /home/kbacuyag/cbms/vendor/aura/sql/src/ExtendedPdo.php:217)"} []
but when i try to connect using mysql inline.. it is connecting

savy
Posts: 108
Joined: December 27th, 2012, 1:36 pm

Re: Connection Refuse

Post by savy » May 13th, 2022, 2:02 pm

Try setting DBHOST to 'localhost:portnumber' (eg 'localhost:60744' ) in the config.php file. Also, make sure to clear CSWeb/Var/Cache folder after changing the config values.

Post Reply