Fatal error: Uncaught PDOException: SQLSTATE[HY000] [2002] Operation now in progress in /var/www/ecommerce/models/CustomerData.php:39
Stack trace:
#0 /var/www/ecommerce/models/CustomerData.php(39): PDO->__construct()
#1 /var/www/ecommerce/models/CustomerData.php(23): CustomerData->getFromDB()
#2 /var/www/ecommerce/models/route.model.php(9): CustomerData->getData()
#3 /var/www/ecommerce/views/template.php(7): Route::ctrRoute()
#4 /var/www/ecommerce/controllers/template.controller.php(8): include('...')
#5 /var/www/ecommerce/index.php(96): ControllerTemplate->template()
#6 {main}
Next RuntimeException: Could not connect to the Cloud SQL Database. Check that your username and password are correct, that the Cloud SQL proxy is running, and that the database exists and is ready for use. For more assistance, refer to https://cloud.google.com/sql/docs/mysql/connect-external-app. The PDO error was SQLSTATE[HY000] [2002] Operation now in progress in /var/www/ecommerce/models/CustomerData.php:83
Stack trace:
#0 /var/www/ecommerce/models/CustomerData.php(23): CustomerData->getFromDB()
#1 /var/www/ecommerce/models/route.model.php(9): CustomerData->getData()
#2 /var/www/ecommerce/views/template.php(7): Route::ctrRoute()
#3 /var/www/ecommerce/controllers/template.controller.php(8): include('...')
#4 /var/www/ecommerce/index.php(96): ControllerTemplate->template()
#5 {main}
thrown in /var/www/ecommerce/models/CustomerData.php on line 83