## ## 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, localhost, user0, , ) select connection_id() into @con_user0_id; # Connect (con_user1, localhost, user1, , ) # Connect (con_user2, localhost, user2, , ) # Connect (con_user3, localhost, user3, , ) # Connect (con_user4, localhost, user4, , ) # 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