Unknown table ‘INNODB_LOCKS’ in information_schema

mysql版本不同。 命令不同。

5.7
select * from information_schema.innodb_locks;
select * from information_schema.innodb_lock_waits

8.0
select * from performance_schema.data_locks;
select * from performance_schema.data_lock_waits;

你可能感兴趣的:(mysql)