I have a Larvel 4.2 app running (Digital Ocean) and a remote database on Google Cloud SQL. (I know being on the same network would be better, but this is just the way it is for now) The database is mapped fine but about 1 in 20 page loads the app server doesn't connect to the database. Is there a way to "keep the connection alive" between the two, or maybe I'm missing something? Any help is always greatly appreciated. Thanks, folks!
'mysql' => array(
'driver' => 'mysql',
'host' => 'xx.xxx.xx.xxx',
'database' => 'mydb',
'username' => 'user',
'password' => 'mypassword',
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
'prefix' => '',
),