I created a laravel application on app engine by following the steps highlighted here https://cloud.google.com/community/tutorials/run-laravel-on-appengine-flexible
I setup everything as indicated and I can even acess the database from my mysql client using all the users I created and make changes to the database, but when I run the application from the app engine url I get this error
PDOException in PDOConnection.php line 43: SQLSTATE[HY000] [2002] No such file or directory
in PDOConnection.php line 43
at PDO->__construct('mysql:unix_socket=/cloudsql/{removed};dbname={removed}', '{removed}', '{removed}', array(0, 2, 0, false, false)) in PDOConnection.php line 43
at PDOConnection->__construct('mysql:unix_socket=/cloudsql{removed};dbname={removed}', {removed}', {removed}', array(0, 2, 0, false, false)) in Connector.php line 65
at Connector->createPdoConnection('mysql:unix_socket=/cloudsql/{removed};dbname={removed}', '{removed}', '{removed}', array(0, 2, 0, false, false)) in Connector.php line 44
at Connector->createConnection('mysql:unix_socket=/cloudsql{removed};dbname={removed}', array('driver' => 'mysql', 'host' => 'localhost', 'port' => '3306', 'database' => {removed}', 'username' => '{removed}', 'password' => {removed}', 'unix_socket' => '/cloudsql/{removed}', 'charset' => 'utf8mb4', 'collation' => 'utf8mb4_unicode_ci', 'prefix' => '', 'strict' => true, 'engine' => null, 'name' => 'mysql'), array(0, 2, 0, false, false)) in MySqlConnector.php line 24
at MySqlConnector->connect(array('driver' => 'mysql', 'host' => 'localhost', 'port' => '3306', 'database' => '{removed}', 'username' => '{removed}', 'password' => '{removed}', 'unix_socket' => '/cloudsql/{removed}', 'charset' => 'utf8mb4', 'collation' => 'utf8mb4_unicode_ci', 'prefix' => '', 'strict' => true, 'engine' => null, 'name' => 'mysql')) in ConnectionFactory.php line 183
The thing I don't understand is why I am able to connect to the database using PDO in the standard environment but can't in the flexible and this only affects the laravel installation as provided in the aforementioned tutorial.
Need help because it has been several days without any results
:rotating_light: triage me