exo9: fixlets to the MySQL connection.
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 11 Apr 2018 17:05:00 +0000 (19:05 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 11 Apr 2018 17:05:00 +0000 (19:05 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
ROOT/exo9/connectJspMysql.jsp

index 8d0f0827184ff053a095bed1d35aee1dc9885837..5428f7a6845d7d044c70c2bc83fff843902a1805 100644 (file)
@@ -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();