X-Git-Url: https://git.piment-noir.org/?p=TD_webapps.git;a=blobdiff_plain;f=ROOT%2Fexo9%2FconnectJspMysql.jsp;fp=ROOT%2Fexo9%2FconnectJspMysql.jsp;h=5428f7a6845d7d044c70c2bc83fff843902a1805;hp=8d0f0827184ff053a095bed1d35aee1dc9885837;hb=714e1b9156a383581be324ae0792e6e0767a7106;hpb=4569f51616326aa25a7a169d80df7bcdf799cc31 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();