Trying to get a local MySQL database to work with GAE development server - mysql

Soo, I've decided to toy around a bit with GAE. Most of my previous experience with developing web-applications is with ASP.Net, so this java / eclipse-world is kinda unfamiliar to me.
I read around, and found out that I can configure my project to use a Google Cloud SQL instance when it's deployed at Google, while using a local MySQL database while running locally on my development server.
The problem I ran in to now is that I can simply not press "Ok" in the eclipse dialog for configuring my local MySQL database? Well - I can, but with no result. No error message, no window close, no nothing.
I'm not really sure what I am doing wrong, but was hoping some wiz in here who has more experience than me with GAE have had a similar problem and a solution?
I've attached a picture of my local MySQL configuration:
http://imgur.com/0tjK7Sf
Thanks in advance

Related

Deploying a .NET application to Google Cloud Platform worked on initial deploy, now getting 502 Error: Server Error

To give some background, I'm an (unpaid) intern, and I'm unrelated to dealing with this kind of stuff. My employers wanted to update some pictures, and they did locally but didn't know how to upload the new version to the server.
I used the publish settings that were saved in Visual Studio from when the previous intern deployed the server (he was specialized in web site stuff) and it worked on deploy ... then I refreshed the page and I'm getting 502 server error.
Steps I have taken:
Connect to the VM and restart it - didn't solve it. it's using Microsoft server 2016.
Open the VM trough RDP, check if there are errors. There were 3 services not running, and I start them manually. One still isn't running, Downloaded Maps Manager. Ok... I google it and it's not a necessary service so I disable it. Now there are no errors and all services are running but I still am getting this error.
I tried pinging the IP of the server, and the URL itself and it works.
I believe it might be something to do with the load balancer, but I had one HTML class and nothing dealing with actually publishing stuff. If you could point me in the right direction I would appreciate it. The only reason why I'm trying to fix this myself is that I didn't make some kind of backup, and I feel so stupid having taken the site down.
Edit: I've gone to "load balancing" and it says service unhealthy. I tried going to the IPs there and it brings me to the same 502 server error page. From what I've gathered this is a configuration error, it's impossible they messed something with the site itself, right? It did work that first time, and if I run it from Visual Studio it works on the local machine ...

Can I access a mySQL DB created in phpMyAdmin with a web app that runs with the IDE's tomcat?

I hope I don't make it very confusing. So, for a school project I need to make a Spring MVC webapp that runs with a simple tomcat and connects to a DB. I downloaded xampp and made a DB with phpMyAdmin, but also run my app with an embedded tomcat server. I'm not exactly sure why but this seems problematic as I cannot access localhost. Is there a way to connect my app to the phpMyAdmin DB? If not, what would be an easy way to create and access a DB (I need only a really simple schema of one table)?? Any advice would help a ton!
If the web app is for long run i would suggest use of Hibernate ORM, you need to config and with few lines of code it will be live and runing, for just for trial or learning, H2 is a good options as #zlaval said in comments. And you can use any Database with Hibernate ORM, with one or two hours of research and studying you can achieve the task you searching for easily.
If you need to go for hibernate there there is some explained and easy steps to do so with hibernate ORM.
https://www.codejava.net/frameworks/hibernate/getting-started-with-hibernate-annotations

How to find MySQL database in AWS

This may sound like a silly question, but my client had me working on a dev version of his website, and now wants me to push changes to the live AWS server.
He's given me access, however I can't for the life of me find the MySQL database in AWS. I am given to understand it should be located under RDS but there seems to be nothing there:
Can someone tell me where to find it then? Did the client send me to the wrong server or something? He is not technical at all so not of any help.
You can use the tag editor to find all the resources that are running in the aws account (which can be tagged). Go to the tag editor and then select all region and resources to see where the db is running. Maybe its running under some other region and you are looking in the wrong region. Hope that helps

azure in app mysql not starting

I am new to Azure, For learning I created a new Web App + MySQL. I used MySQL In APP for DB.
Azure web app seem to start fine and I could see PHP process in the process explore. But I am not seeing mysqld.exe process in the process explore and PHPMyAdmin is taking me to login page. I am not seeing any logs for mysql either.
Please let me know if I am missing something ? Any help would be great.
Thank you
It can be glitchy, apparently, click around for a bit according to Microsoft and as long as the website is running then it should soon realise that its there. Worked for me, see this link.
https://blogs.msdn.microsoft.com/appserviceteam/2016/09/08/troubleshooting-faq-for-mysql-in-apppreview/

Intermittent MySQL Connection Error in Azure Website

I'm getting the following error intermittently when making a call from my ASP.Net MVC web application which is using Dapper to query MySQL.
Unable to connect to any of the specified MySQL hosts.
The exception only occurs when my web app is published to Azure. It has worked 100% of the time when I run the code locally. I've deployed the code to a second azure website, and also get the exception there, again intermittently.
The MySQL database is running on an Azure VM (Ubuntu). This server also has some R scripts that access the database, which are being run at a set interval. I've had no connectivity issue with these either. It is just the .Net code that's struggling.
I've scoured the web, but don't feel like I've turned up anything of value. Most of the links have pointed to a connection string problem, but since it works intermittently that doesn't seem to fit my problem. Some links have referenced DNS issues, but I'm getting the same problem when I use the IP Address instead of the machine name for the DNS server.
I'm sure I need to track down more information, but I'm not sure where it would be. This is my first foray into using a MySQL db in this fashion, and I'm not familiar with config options or log files on that side of things. I feel similarly about Azure websites with database interactions too.
What can I try next?
Just to drive home the point about this error being intermittent, here's a screenshot from the Runscope job that's hitting the page (thus triggering the MySQL query) every 5 minutes:
I was able to fix (or perhaps "circumvent") this problem by adding the --skip-host-cache flag to our mysql configuration file. I still don't fully understand what the root of the problem is, but we haven't had any issues with MySQL connectivity from the Azure website since adding that.