数据库重构工具 LiquiBase(5 Liquibase被锁)

经常运行过程中出现

Liquibase - Waiting for changelog lock
Waiting for changelog lock....

Running the migration script for a database may produce this:
...
INFO … Liquibase: Waiting for changelog lock....
INFO … Liquibase: Waiting for changelog lock....
INFO … Liquibase: Waiting for changelog lock....
...

解决方法: 看下那个机器锁住了database,执行下面语句;

USE [Database Name]
SELECT * FROM DATABASECHANGELOGLOCK;

一般情况下是本机锁住的;则通过下面sql解锁

UPDATE DATABASECHANGELOGLOCK
SET locked=0, lockgranted=null, lockedby=null
WHERE id=1
已标记关键词 清除标记
相关推荐
©️2020 CSDN 皮肤主题: 酷酷鲨 设计师:CSDN官方博客 返回首页