At previous posts, I was questioning about upload the photo file into Amazon S3 and retrieve the file URL to display on the screen.
Now this assignment is upload the file name and file description into the database. However, I hit some error during the execution.
SQLException: 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.
I am using MYSQL Workbench to connect RDS Amazon.
I had create one new database named ("kwongDB"), connection named ("COS80001"), in my MYSQL Workbench.
Bear Bibeault wrote:Why is this code in a JSP? That's a bad practice from over 14 years ago. It's time to start writing professional code where the Java code is in Java classes where it belongs.
I am just follow the example and tutorials provided from my tutor. As she did mentioned that could write the java code into java file, or in the JSP file. So I will do in two versions, but before that,
I always complete one version before I go for another version. Therefore, I could gain the knowledge from both sides.
Could you please focus on the topic, to solve the issue? Until now, I am still have no idea what's going on, even though I check around the webs regarding the issues.
Thanks for advance. =]
The message seems to suggest that your code isn't connecting to the server. So either the server isn't running on the same computer where that code is running (you asked to connect to "localhost") or there's some firewall or other network activity preventing your code from connecting to the server.
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database