MySQL database show processlist where conditions filter error solutions, [Code: 1064, SQL State: 42000] You have an error in your

-- 筛选报错
show processlist where user = 'root';
-- 筛选可用
select * from information_schema.processlist where user = 'root';

The error message is as follows:
It is said that it is because of a bug , and the official has specifically stated it. The query results of
[Code: 1064, SQL State: 42000] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'where user = 'root'' at line 1
show processlist and select * from information_schema.processlist are the same, just use the latter method to query.
Running effect chart:

Insert picture description here
Like it if you like it ❤!

Guess you like

Origin blog.csdn.net/qq_38161040/article/details/108734254