I am writing a Java MVC web app in Eclipse using Google App Engine.
I would like to know why once I have deployed the app to Google Cloud the Google Cloud MySQL connection stops working. I am not sure how I connect to this once deployed to the cloud but is is clearly not working. I have a connection when running locally?
After a lot of reading, I made a couple of small changes like removing the port number and adding 0.0.0.0/0 into the SQL instance and the app now works really well.
From this, I am now going to close this post.
Many Thanks
Graham
Related
I am trying to connect from eclipse to cloud sql using app engine server, In SQL authorization I have added my ip address and given #anyhost access. I am using jdbc socketfactory to connect to cloud sql. But I am getting the below exception
please refer this link(exception screenshot)
Please provide error messages as actual text, not images. This makes searching for anything difficult. You also have your instance connection string in the image. I advise you to remove this.
As for answering your question, without more information I can give you a generalized answer.
When connecting from App Engine, you do not need to whitelist any IPs. Whitelisting IPs doesn't actually work with GAE as the IPs may change for new instances.
GAE instances have the Cloud SQL proxy running and you specify the connection details in your pom.xml.
Which exact connection method you need to use depends on your JAVA version, whether you're using GAE Standard or GAE Flexible, and if you're using a 1st or 2nd generation Cloud SQL instance.
This page provides links to details for all of the different scenarios to connect from GAE to Cloud SQL. For local testing of your app, you will have to have the Cloud SQL proxy running locally. This quickstart shows how to set this up.
I am just a beginner in android app development and that's why I have many doubts. I am building one application where the user enters some data in editText. Now I want to save that data in my database. My database is running on my laptop. How would my app connect to the database? Do I need a web server in between? If yes then which web server is used for Android apps? Basically, i want to know the flow of data from app to the database.
Study more from Udacity.com, its free.
You may use a jdbc Connector to connect to database.
Connect your jdbc connector over local network ip\servername and database connection string
You can use REST Service when it comes to web Service on Android like this. You can either pass the values as parameters or an Object depending on your requirement. All the best
Wamp server is best option to play with server related utilities.You can use it even if you are offline. and it provides various option for data storage. It Mainly uses MySql and PHP scripts for fast performance.
For More details Click Here
I'm trying to access my dev server from a mobile phone in my local network but I always get "connection refused". My app engine application works perfectly on localhost, but I can't access it from another device.
I think that the dev server is listening only on loop interface, but I don't know how to fix it on Netbeans (i'm using Google App Engine plugin).
Any ideas? I have been looking for another questions here but I can't find a fix for Netbeans.
Thanks in advance.
I wonder if there are any possibilities to connecting to an Amazon hosted MySQL database via a Google App Engine hosted application.
Everything I've found so far indicates that I can connect to googles cloud SQL
Google Cloud SQL
Thank you for any ideas and help!
Yes, you can use GAE's Remote API to connect to an AppScale deployment backed by MySQL running on AWS and store data or replicate it.
You can find instructions on how to configure your app to use Remote API here.
There are also instructions on running AppScale with MySQL.
I'm going to try this new cloud technology.
So I think the best place to start from is: http://www.youtube.com/watch?v=XcI-2V-mmmw
HelloCloud example is really nice but actually does NOT work, as it is explained in the video tutorial.
It ends up with the infamous "no mapping found for http request with uri for [/]" spring mvc error.
In addition:
I wanna know if CloudFoundry does have a web control panel or something like that, for example, to manage MySQL service.
Can I connect to the MySQL DB with a MySQL client and manage it?
What about file uploads, disk quotas, bandwidth, pricing, usage? Google AppEngine does have all of these info.
I think CF is still too "beta" for me. :)
Yes. CloudFoundry is still in beta. All of what you are asking for is in development. At this point, it is recommended that you try out CloudFoundry with some smaller apps, but hold off on deploying any mission critical apps until it is out of beta mode.
About the "Can I connect to the MySQL DB with a MySQL client and manage it?" question: now you can do that, using cloudfoundry caldecott tunneling capabilities:
http://blog.cloudfoundry.com/post/12928974099/now-you-can-tunnel-into-any-cloud-foundry-data-service