Skip to content

Commit e9b5b97

Browse files
committed
fix mysql server connection requirements
1 parent e9119f2 commit e9b5b97

File tree

1 file changed

+1
-1
lines changed
  • test/smoke/testApps/Jdbc/src/main/java/com/microsoft/applicationinsights/smoketestapp

1 file changed

+1
-1
lines changed

test/smoke/testApps/Jdbc/src/main/java/com/microsoft/applicationinsights/smoketestapp/JdbcTestServlet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ private static Connection getHsqldbConnection() throws Exception {
263263

264264
private static Connection getMysqlConnection() throws Exception {
265265
String hostname = System.getenv("MYSQL");
266-
return DriverManager.getConnection("jdbc:mysql://" + hostname + "/mysql", "root", "password");
266+
return DriverManager.getConnection("jdbc:mysql://" + hostname + "/mysql?autoReconnect=true&useSSL=true&verifyServerCertificate=false", "root", "password");
267267
}
268268

269269
private static Connection getPostgresConnection() throws Exception {

0 commit comments

Comments
 (0)