Question

It used to work for me following this tutorial. Stopped working for a couple days, worked again, and now completely stopped working. I desperately need a program to help me manage my CloudSQL database and have tried multiple times following multiple tutorials and multiple setups with phpMyAdmin with no luck. I then tried phpMiniAdmin, SQL Buddy, and Adminer. I also tried this tutorial with no luck. To be clear, I am able to access the database using the following code in my own php scripts,

new mysqli('localhost','<username>','<password>','<db>',0,'/cloudsql/<app-id>:db');

It seems like the main problem is something to do with "socket" vs "host" in the Google App Engine setup. My "app.yaml" matches the tutorial, excluding references to my app, and my "config.inc.php" is the following,

<?php
$cfg['blowfish_secret'] = '<#>';
$i = 0;
$host = '/cloudsql/<app-id>:db';
$type = 'socket';
$i++;
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['socket'] = $host;
$cfg['Servers'][$i]['connect_type'] = $type;
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
$cfg['McryptDisableWarning'] = true;
$cfg['PmaNoRelation_DisableWarning'] = true;
$cfg['ExecTimeLimit'] = 60;
$cfg['CheckConfigurationPermissions'] = false;
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';
?>

I'm currently using 4.0.10, but tried 4.1.7 with the same results. I am greeted by a blank screen,there is source code but screen is blank. In the Apps Engine error logs I don't have any errors, just warnings referencing the inability to find images,

Static file referenced by handler not found: phpMyAdmin/pma_logo.png

I would love to know if anyone is currently using phpMyAdmin or any other php software to access CloudSQL, if so, maybe they might have a tip or two as to what is going on. I'm willing to share anything relevant as well, just let me know what and I'll post it.

EDIT: Got it working. I'm not sure why it initially stopped worked, started working, and then stopped working again. During my trails and error trying to get it to work I started using different tools including Codenvy as opposed to the Google Apps Engine client for Windows. I went back to using the GAE Windows client and was finally successful in accessing phpMyAdmin in CloudSQL. I don't know for sure, but I suppose it's possible the reason I struggled with strange errors during some of my testing could have been related to using Codenvy as opposed to Google's own tools. I'm not saing Codenvy was the problem, just that if a person is having phpMyAdmin/CloudSQL issues, they might consider trying the GAE client before pulling all their hair out.

No correct solution

OTHER TIPS

The problem seemed to resolve itself. It's possible Google was doing some maintenance, I have no other explanation.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top