From: Jérôme Benoit Date: Wed, 11 Apr 2018 17:05:00 +0000 (+0200) Subject: exo9: fixlets to the MySQL connection. X-Git-Url: https://git.piment-noir.org/?p=TD_webapps.git;a=commitdiff_plain;h=714e1b9156a383581be324ae0792e6e0767a7106 exo9: fixlets to the MySQL connection. Signed-off-by: Jérôme Benoit --- diff --git a/ROOT/exo9/connectJspMysql.jsp b/ROOT/exo9/connectJspMysql.jsp index 8d0f082..5428f7a 100644 --- a/ROOT/exo9/connectJspMysql.jsp +++ b/ROOT/exo9/connectJspMysql.jsp @@ -2,10 +2,10 @@ <% try { - String connectionURL = "jdbc:mysql://localhost/bdVols"; + String connectionURL = "jdbc:mysql://localhost/MyBd"; Connection connection = null; Class.forName("com.mysql.jdbc.Driver").newInstance(); - connection = DriverManager.getConnection(connectionURL, "fraggle", "$Love79!"); + connection = DriverManager.getConnection(connectionURL, "MyBd", "MyBd"); if(!connection.isClosed()) out.println("Successfully connected to " + connectionURL + " MySQL server using TCP/IP"); connection.close();