尝试在percona上使用liquibase时出错

7eumitmz  于 2021-06-18  发布在  Mysql
关注(0)|答案(1)|浏览(464)

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

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驱动程序,但都没用。

55ooxyrt

55ooxyrt1#

我也碰到了同样的问题。将loglevel设置为debug可以看到liquibase正在创建和删除一个临时表。那张临时table似乎引起了问题。
我可以通过使用mysql workbench将模式复制到一个常规mysql示例,然后从那里运行generatechangelog来解决这个问题。

相关问题