JDBC-Mysql Amazon EC2 Connection
问题 I'm new to servers and databases. I've been trying to test out a java application that connects, reads and modifies a Mysql database that is hosted on amazon ec2. System.out.println("-------- MySQL JDBC Connection Testing ------------"); String DNS = "MYDNS"; String myDBname = "DBNAMe" String MYSQLUSER = "USER"; String MYSQLPW = "PW"; try { Class.forName("com.mysql.jdbc.Driver"); } catch (ClassNotFoundException e) { System.out.println("Where is your MySQL JDBC Driver?"); e.printStackTrace();