我正在表演一个改变。它目前在一个大表(300,000,000)上运行。
MariaDB [my_database]> ALTER TABLE my_table
-> add INDEX a (x, y, z),
-> add INDEX d (x);
Stage: 1 of 2 'copy to tmp table' 60.1% of stage done
但是processlist没有提及,反复查询。
MariaDB [my_database]> show full processlist;
+----+------+-----------------+-------------+---------+------+-------+-----------------------+----------+
| Id | User | Host | db | Command | Time | State | Info | Progress |
+----+------+-----------------+-------------+---------+------+-------+-----------------------+----------+
| 6 | apps | localhost:52235 | my_database | Sleep | 304 | | NULL | 0.000 |
| 33 | apps | localhost | my_database | Query | 0 | NULL | show full processlist | 0.000 |
+----+------+-----------------+-------------+---------+------+-------+-----------------------+----------+
2 rows in set (0.01 sec)
我希望它出现。有什么想法为什么不呢?
听起来执行的
ALTER TABLE
用户和运行的用户SHOW PROCESSLIST
不是同一个用户,第二个用户没有PROCESS
权限。