How to create database with Liquibase

后端 未结 1 1373
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-06 07:19
  • I am trying to use Liquibase to create database that does not exists.
  • I have downloaded MySQL and not made any c

相关标签:
1条回答
  • 2021-01-06 08:16

    Looks like you're not passing a username or password as part of your config:

    (from the liquibase maven documentation)

    <configuration>
      <changeLogFile>src/main/resources/changelog.xml</changeLogFile>
      <driver>com.mysql.jdbc.Driver</driver>
      <url>jdbc:mysql://localhost:3306/myApp?createDatabaseIfNotExist=true</url>
      <username>liquibaseTest</username>
      <password>pass</password>
    </configuration>
    
    0 讨论(0)
提交回复
热议问题