## ## Test the Performance Schema-based implementation of SHOW PROCESSLIST. ## ## Verify the Host field (hostname:port) against the legacy implementation. ## ### Setup ### select @@global.performance_schema_show_processlist into @save_processlist; # Control user create user user0@localhost; grant ALL on *.* to user0@localhost; # Test users create user user1@localhost, user2@localhost, user3@localhost, user4@localhost; grant USAGE on *.* to user1@localhost; grant ALL on *.* to user2@localhost; grant ALL on *.* to user3@localhost; grant ALL on *.* to user4@localhost; flush privileges; show grants for user1@localhost; Grants for user1@localhost GRANT USAGE ON *.* TO 'user1'@'localhost' # Connect (con_user0, 127.0.0.1, user0, , , MASTER_MYPORT, ) select connection_id() into @con_user0_id; # Connect (con_user1, 127.0.0.1, user1, , , MASTER_MYPORT, ) # Connect (con_user2, 127.0.0.1, user2, , , MASTER_MYPORT, ) # Connect (con_user3, 127.0.0.1, user3, , , MASTER_MYPORT, ) # Connect (con_user4, 127.0.0.1, user4, , , MASTER_MYPORT, ) # Connection user0 ### Compare the SHOW PROCESSLIST Host column between the new and old implementations ## New SHOW PROCESSLIST set @@global.performance_schema_show_processlist = on; SHOW FULL PROCESSLIST; Id User Host db Command Time State Info event_scheduler NULL