尝试在Percona上使用liquibase给出错误

时间:2018-12-06 03:46:53

标签: mysql liquibase percona

我正在尝试为percona服务器上的数据库生成generateLog,当我尝试这样做时出现以下错误。

Starting Liquibase at Wed, 05 Dec 2018 22:34:37 EST (version 3.6.2 built at 
2018-07-03 11:28:09)
Unexpected error running Liquibase: liquibase.exception.DatabaseException: 
liquibase.exception.UnexpectedLiquibaseException: Error during testing for 
MySQL/MariaDB JDBC driver bug: could not retrieve JDBC metadata information 
for temporary table 'TMP_XDBOCVCKWHSQYXKP'
liquibase.exception.LiquibaseException: 
liquibase.command.CommandExecutionException: 
liquibase.exception.DatabaseException: 
liquibase.exception.UnexpectedLiquibaseException: Error during testing for 
MySQL/MariaDB JDBC driver bug: could not retrieve JDBC metadata information 
for temporary table 'TMP_XDBOCVCKWHSQYXKP'
at liquibase.integration.commandline.Main.doMigration(Main.java:1043)
    at liquibase.integration.commandline.Main.run(Main.java:191)
    at liquibase.integration.commandline.Main.main(Main.java:129)
    Caused by: liquibase.command.CommandExecutionException: 
    liquibase.exception.DatabaseException: 
    liquibase.exception.UnexpectedLiquibaseException: Error during testing 
    for MySQL/MariaDB JDBC driver bug: could not retrieve JDBC metadata 
    information for temporary table 'TMP_XDBOCVCKWHSQYXKP'

我正在尝试使用以下语句通过命令行使用它

liquibase --driver=com.mysql.cj.jdbc.Driver --classpath=C:/liquibase-3.6.2- 
bin/jars/mysql-connector-java-8.0.13.jar --changeLogFile=db.changelog- 
1.0.xml --url="jdbc:mysql://REMOTE_SERVER_IP:3306/DB_NAME? 
autoReconnect=true" --username=USER_NAME --password=PASSWORD --logLevel=info 
generateChangeLog

以前有人遇到过此问题吗?我尝试使用旧的和新的JDBC驱动程序,但没有帮助。

1 个答案:

答案 0 :(得分:0)

我遇到了同样的问题。设置logLevel进行调试,您可以看到Liquibase正在创建和删除临时表。那个临时表似乎引起了问题。

我能够通过使用MySQL Workbench将架构复制到常规MySQL实例,然后从那里运行generateChangeLog来解决此问题。