mysql - 关于mysql显示进程列表

标签 mysql sql

我已通过mysql -uroot -p连接到mysql控制台,然后使用命令show processlist;列出进程,但我看不到结果,可能是命令太长,该列只允许85个字符左右,命令应该超出限制,我怎样才能看到完整的命令?

谢谢

最佳答案

您应该尝试显示完整的进程列表

SHOW PROCESSLIST shows you which threads are running. You can also get this information from the INFORMATION_SCHEMA PROCESSLIST table or the mysqladmin processlist command. If you have the PROCESS privilege, you can see all threads. Otherwise, you can see only your own threads (that is, threads associated with the MySQL account that you are using). If you do not use the FULL keyword, only the first 100 characters of each statement are shown in the Info field.

如果您不使用 FULL,查询将在结果中被截断。

关于mysql - 关于mysql显示进程列表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29292957/

相关文章:

mysql - MySQL 中何时使用单引号、双引号和反引号

mysql - Amazon Redshift 查询以获取拖欠金额和月末逾期天数

java - 如何取所选列所选行的总和值

sql - 如何在同一个 select 语句中使用 count 和 group by

mysql - 使用mysql查询获取每月金额

python - 在 Django 管理端对具有相同数据的模型的 my-sql 列对象进行分组

mysql - WAMP卸载后恢复数据库

php MYSQL 查询 "ORDER BY"不工作

MYSQL 初学者。创建包含多种数据类型列的表

sql - SQL查询的确认