We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60c0e6e commit 42df931Copy full SHA for 42df931
spring-data-jdbc/src/test/java/org/springframework/data/jdbc/testing/MySqlDataSourceConfiguration.java
@@ -77,4 +77,15 @@ public void afterPropertiesSet() throws Exception {
77
new ByteArrayResource("DROP DATABASE test;CREATE DATABASE test;".getBytes()));
78
}
79
80
+
81
+ private DataSource createRootDataSource() {
82
83
+ MysqlDataSource dataSource = new MysqlDataSource();
84
+ dataSource.setUrl(MYSQL_CONTAINER.getJdbcUrl());
85
+ dataSource.setUser("root");
86
+ dataSource.setPassword(MYSQL_CONTAINER.getPassword());
87
+ dataSource.setDatabaseName(MYSQL_CONTAINER.getDatabaseName());
88
89
+ return dataSource;
90
+ }
91
0 commit comments