Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No database found to handle jdbc:mongodb://localhost:27017 #141

Open
matteus6007 opened this issue Apr 4, 2024 · 0 comments
Open

No database found to handle jdbc:mongodb://localhost:27017 #141

matteus6007 opened this issue Apr 4, 2024 · 0 comments

Comments

@matteus6007
Copy link

I am using the latest version flyway/flyway:10.11.0, but when I try to run migration scripts for mongodb (running locally using Docker) I get the following error:

org.flywaydb.core.api.FlywayException: No database found to handle jdbc:mongodb://localhost:27017
        at org.flywaydb.core.internal.database.DatabaseTypeRegister.getDatabaseTypeForUrl(DatabaseTypeRegister.java:55)        at org.flywaydb.core.internal.jdbc.DriverDataSource.<init>(DriverDataSource.java:109)
        at org.flywaydb.core.internal.jdbc.DriverDataSource.<init>(DriverDataSource.java:89)
        at org.flywaydb.core.api.configuration.ClassicConfiguration.getDataSource(ClassicConfiguration.java:118)       
        at org.flywaydb.core.api.configuration.ClassicConfiguration.configure(ClassicConfiguration.java:1696)
        at org.flywaydb.core.api.configuration.FluentConfiguration.configuration(FluentConfiguration.java:896)
        at org.flywaydb.commandline.configuration.LegacyConfigurationManager.getConfiguration(LegacyConfigurationManager.java:79)
        at org.flywaydb.commandline.configuration.ConfigurationManagerImpl.getConfiguration(ConfigurationManagerImpl.java:39)
        at org.flywaydb.commandline.Main.main(Main.java:103)

I have tried changing the URL to the name of the docker container and also attaching to the same container network.

Using the CLI of the same version the migration runs without any issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant