Can't Connect AppEngine project to Could SQL in Eclipse Plugin

18 views
Skip to first unread message

Montassar Dridi

unread,
Sep 21, 2016, 9:17:16 AM9/21/16
to Google Cloud SQL discuss
Can anyone help please and tell me what I'm missing ?
cloudSQL1.jpeg
cloudSQL2.jpeg
Capture.PNG

David Newgas

unread,
Sep 21, 2016, 11:59:30 AM9/21/16
to Google Cloud SQL discuss
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+unsub...@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.

Montassar Dridi

unread,
Sep 21, 2016, 7:25:01 PM9/21/16
to Google Cloud SQL discuss
Yes I already included mysql-connector-java-5.1.39-bin in class path 

David Newgas

unread,
Sep 21, 2016, 8:32:07 PM9/21/16
to Google Cloud SQL discuss
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 <montass...@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+unsubscr...@googlegroups.com.

--
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+unsub...@googlegroups.com.

David Newgas

unread,
Sep 22, 2016, 12:04:38 PM9/22/16
to Google Cloud SQL discuss
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 <dne...@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 <montass...@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+unsubscr...@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+unsubscr...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages