Thursday, September 22, 2016

Re: [google-cloud-sql-discuss] Can't Connect AppEngine project to Could SQL in Eclipse Plugin

I have got it working. The short answer is: use a regular MySQL connection. This is described at https://developers.google.com/eclipse/docs/cloudsql-database. The longer answer:
  1. Install Eclipse Data Tools Platform (http://www.eclipse.org/datatools/downloads.php)
  2. When you create a new Connection Profile, select regular "MySQL" type. (not Google Cloud SQL)
  3. On the Driver/Connection Details page ensure the driver drop down says "MySQL JDBC Driver" and not "Driver (GOOGLE)". If no "MySQL JDBC Driver" option is present, use the "new driver definition" button, you may need to manually specify the path to the MySQL Connector/J JAR.
  4. Use the IP address of your instance in the properties - you will be connecting via regular remote MySQL connection. This will require a whitelisted IP address.
I was then able to connect to my test instance.

On Wed, Sep 21, 2016 at 5:32 PM, David Newgas <dnewgas@google.com> wrote:
I have reproduced the issue. Now I'm just trying to find a solution.

On Wed, Sep 21, 2016 at 3:59 PM, Montassar Dridi <montassar0dridi@gmail.com> wrote:
Yes I already included mysql-connector-java-5.1.39-bin in class path 

On Wednesday, September 21, 2016 at 11:59:30 AM UTC-4, David Newgas wrote:
Based on the ClassNotFound exception in the final error, It sounds like you don't have the MySQL/J Connector installed. Make sure you follow step 4 of https://developers.google.com/eclipse/docs/cloudsql-createapp, and also read the bottom of the "Running your application locally" section of that doc, which deals with that error specifically.



On Tue, Sep 20, 2016 at 4:55 PM, Montassar Dridi <montass...@gmail.com> wrote:
Can anyone help please and tell me what I'm missing ?

--
You received this message because you are subscribed to the Google Groups "Google Cloud SQL discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-sql-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-sql-discuss/4af8c5cf-c1ee-46db-a4d8-c38da1432dc6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Google Cloud SQL discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-sql-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-sql-discuss/dd782eb7-73d3-4253-876b-c741928fe6a1%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google Groups "Google Cloud SQL discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-sql-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-sql-discuss/CAJZK_bZ39rbgPhBx4L6uGj_aTPPn5n1aRKnfr8%2BwSsfCCceXwg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment