Skip to content

Commit

Permalink
mysql functions are now being created
Browse files Browse the repository at this point in the history
  • Loading branch information
grabdoc committed Jan 20, 2024
1 parent 7c203b1 commit 3c0ccaa
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ public class MySQLContainerConfiguration {

private static final MySQLContainer mySQLContainer = (MySQLContainer) new MySQLContainer("mysql:8.2")
.withDatabaseName("sakila")
.withUsername("mysql")
.withPassword("mysql")
.withUsername("root")
//.withPassword("mysql")
.withReuse(true);

static {
Expand All @@ -31,7 +31,7 @@ public class MySQLContainerConfiguration {
@Bean("mySQLDataSource")
public DataSource dataSource() {
var dataSourceBuilder = DataSourceBuilder.create();
dataSourceBuilder.driverClassName("com.mysql.jdbc.Driver");
dataSourceBuilder.driverClassName("com.mysql.cj.jdbc.Driver");
dataSourceBuilder.url(mySQLContainer.getJdbcUrl());
dataSourceBuilder.username(mySQLContainer.getUsername());
dataSourceBuilder.password(mySQLContainer.getPassword());
Expand Down
13 changes: 12 additions & 1 deletion src/test/resources/mysql/mysql-sakila.sql

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3c0ccaa

Please sign in to comment.