I have followed the precise instructions on deploying a PhPMyAdmin App on Google Cloud and I can't seem to get it to work. Does the 2nd Generation Mysql not support such a connection so I may quit wasting my time trying to get it to work? The error I keep getting is #2006 MySql Server has gone away. All the fixes I have investigated for this error like increasing Max flags doesn't work. Has anyone successfully set this up on Google Cloud?
Here's an edited Version of config.inc.php if anyone has any ideas..
Code:
<?php
/*
* This is needed for cookie based authentication to encrypt password in
* cookie
* http://www.question-defense.com/tools/phpmyadmin-blowfish-secret-generator
*/
$cfg['blowfish_secret'] = '<SECRET>'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */
/*
* Servers configuration
*/
$i = 0;
// Change this to use the project and instance that you've created.
$host = '/cloudsql/<gothic-brand-#####>:<us-central1>:<database>';
$type = 'socket';
/*
* First server
*/
$i++;
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'cookie';
/* Server parameters */
$cfg['Servers'][$i]['socket'] = $host;
$cfg['Servers'][$i]['connect_type'] = $type;
$cfg['Servers'][$i]['compress'] = false;
/* Select mysql if your server does not have mysqli */
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
/*
* End of servers configuration
*/
/*
* Directories for saving/loading files from server
*/
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';
/*
* Other settings
*/
$cfg['PmaNoRelation_DisableWarning'] = true;
$cfg['ExecTimeLimit'] = 60;
$cfg['CheckConfigurationPermissions'] = false;
?>