Skip to content

Commit 37ce178

Browse files
eiselemssnicoll
authored andcommitted
Update MySQL validation query to use lightweight ping
Closes gh-11981
1 parent c4395af commit 37ce178

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-boot/src/main/java/org/springframework/boot/jdbc/DatabaseDriver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public enum DatabaseDriver {
6767
* MySQL.
6868
*/
6969
MYSQL("MySQL", "com.mysql.jdbc.Driver",
70-
"com.mysql.jdbc.jdbc2.optional.MysqlXADataSource", "SELECT 1"),
70+
"com.mysql.jdbc.jdbc2.optional.MysqlXADataSource", "/* ping */ SELECT 1"),
7171

7272
/**
7373
* Maria DB.

0 commit comments

Comments
 (0)