如何生成changlogFile in.sql格式?

dsa*_*tya 9 liquibase

我确实运行此查询以生成.sql格式的changelogFile

liquibase --driver=com.mysql.jdbc.Driver 
          --classpath=mysql-connector-java-5.1.24-bin.jar 
          --changeLogFile=test_diff.sql 
          --url="jdbc:mysql://localhost/provision"
          --username=root 
          --password=** 
           diffChangeLog 
          --referenceUrl=jdbc:mysql://localhost/provision_old 
          --referenceUsername=root 
          --referencePassword=***

我得到以下错误

Liquibase Update Failed: No serializer associated with the filename or extension 'sql'
SEVERE 5/2/13 12:50 PM:liquibase: No serializer associated with the filename or extension 'sql'
java.lang.RuntimeException: No serializer associated with the filename or extension 'sql'

是否可以在.sql格式中生成changelogfile?

小智 1

尝试使用这个参数:

--changeLogFile="./changelog.mysql.sql"
Run Code Online (Sandbox Code Playgroud)

可以参考这里

  • 将变更日志序列化为 sql 需要格式为“*.databaseType.sql”的文件名 (2认同)