Communications link failure when connect to Google Cloud SQL(second gen) only from prod
<p>Setting up a google cloud platform app with google cloud sql and for the life of me I cannot get a connection to the db when I run the code from google servers.</p>

<p>Following this example: <a href="https://cloud.google.com/appengine/docs/java/cloud-sql/?csw=1" rel="noreferrer">https://cloud.google.com/appengine/docs/java/cloud-sql/?csw=1</a>
I've gotten the non production url constructed properly and can connect with no issues to the cloud sql with this url</p>

<pre><code>Class.forName("com.mysql.jdbc.Driver");
url = "jdbc:mysql://&lt;ip-address&gt;:3306/&lt;database&gt;?user=root";
</code></pre>

<p>So that's all good. This is the url I'm building for the prod connection.</p>

<pre><code>Class.forName("com.mysql.jdbc.GoogleDriver");
url = "jdbc:google:mysql://&lt;project-id&gt;:&lt;cloud sql instance name&gt;/&lt;database&gt;?user=root";
</code></pre>

<p>I got the Project ID from the dashboard and the Instance ID SQL Instances List, database is the same as the non prod value and since non prod works I'm confident that's alright</p>

<p><a href="http://i.stack.imgur.com/XMU5d.png" rel="noreferrer">Product and Instance ID locations I pulled them from</a></p>

<p>After deploying it all out I get the error message:</p>

<p>com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.</p>

<p>appengine-web.xml does have use-google-connector-j set to true and I saw that for the second generation cloud sql you do not need to specify your app on the authorization list in cloud SQL.</p>

<p>Any help would be appreciated</p>