From 3f619478f796eddbba6e39502fe941b285dd97b1 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 4 May 2024 20:00:34 +0200 Subject: Adding upstream version 1:10.11.6. Signed-off-by: Daniel Baumann --- mysql-test/suite/perfschema/r/all_tests.result | 24 + .../suite/perfschema/r/alter_table_progress.result | 100 + mysql-test/suite/perfschema/r/bad_option.result | 8 + .../suite/perfschema/r/batch_table_io_func.result | 195 + .../suite/perfschema/r/binlog_edge_mix.result | 178 + .../suite/perfschema/r/binlog_edge_row.result | 183 + .../suite/perfschema/r/binlog_edge_stmt.result | 258 + mysql-test/suite/perfschema/r/binlog_mix.result | 54 + mysql-test/suite/perfschema/r/binlog_ok_mix.result | 119 + mysql-test/suite/perfschema/r/binlog_ok_row.result | 119 + .../suite/perfschema/r/binlog_ok_stmt.result | 119 + mysql-test/suite/perfschema/r/binlog_row.result | 54 + mysql-test/suite/perfschema/r/binlog_stmt.result | 55 + mysql-test/suite/perfschema/r/checksum.result | 106 + mysql-test/suite/perfschema/r/cnf_option.result | 6 + .../suite/perfschema/r/column_privilege.result | 30 + mysql-test/suite/perfschema/r/connect_attrs.result | 59 + mysql-test/suite/perfschema/r/connection.result | 908 +++ mysql-test/suite/perfschema/r/connection_3a.result | 853 +++ .../suite/perfschema/r/connection_3a_3u.result | 795 +++ mysql-test/suite/perfschema/r/connection_3u.result | 850 +++ .../perfschema/r/connection_type_notwin.result | 79 + .../suite/perfschema/r/connection_type_win.result | 77 + mysql-test/suite/perfschema/r/csv_table_io.result | 145 + mysql-test/suite/perfschema/r/ddl_accounts.result | 8 + .../suite/perfschema/r/ddl_cond_instances.result | 8 + .../r/ddl_esgs_by_account_by_event_name.result | 10 + .../r/ddl_esgs_by_host_by_event_name.result | 10 + .../r/ddl_esgs_by_thread_by_event_name.result | 9 + .../r/ddl_esgs_by_user_by_event_name.result | 10 + .../r/ddl_esgs_global_by_event_name.result | 10 + .../r/ddl_esms_by_account_by_event_name.result | 10 + .../suite/perfschema/r/ddl_esms_by_digest.result | 9 + .../r/ddl_esms_by_host_by_event_name.result | 10 + .../suite/perfschema/r/ddl_esms_by_program.result | 9 + .../r/ddl_esms_by_thread_by_event_name.result | 9 + .../r/ddl_esms_by_user_by_event_name.result | 10 + .../r/ddl_esms_global_by_event_name.result | 10 + .../r/ddl_ets_by_account_by_event_name.result | 10 + .../r/ddl_ets_by_host_by_event_name.result | 10 + .../r/ddl_ets_by_thread_by_event_name.result | 9 + .../r/ddl_ets_by_user_by_event_name.result | 10 + .../r/ddl_ets_global_by_event_name.result | 10 + .../perfschema/r/ddl_events_stages_current.result | 10 + .../perfschema/r/ddl_events_stages_history.result | 10 + .../r/ddl_events_stages_history_long.result | 10 + .../r/ddl_events_statements_current.result | 7 + .../r/ddl_events_statements_history.result | 7 + .../r/ddl_events_statements_history_long.result | 7 + .../r/ddl_events_transactions_current.result | 7 + .../r/ddl_events_transactions_history.result | 7 + .../r/ddl_events_transactions_history_long.result | 7 + .../perfschema/r/ddl_events_waits_current.result | 7 + .../perfschema/r/ddl_events_waits_history.result | 7 + .../r/ddl_events_waits_history_long.result | 7 + .../r/ddl_ews_by_account_by_event_name.result | 10 + .../r/ddl_ews_by_host_by_event_name.result | 10 + .../suite/perfschema/r/ddl_ews_by_instance.result | 7 + .../r/ddl_ews_by_thread_by_event_name.result | 9 + .../r/ddl_ews_by_user_by_event_name.result | 10 + .../r/ddl_ews_global_by_event_name.result | 10 + .../suite/perfschema/r/ddl_file_instances.result | 8 + .../suite/perfschema/r/ddl_fs_by_event_name.result | 7 + .../suite/perfschema/r/ddl_fs_by_instance.result | 7 + .../suite/perfschema/r/ddl_global_status.result | 10 + .../suite/perfschema/r/ddl_global_variables.result | 11 + .../suite/perfschema/r/ddl_host_cache.result | 7 + mysql-test/suite/perfschema/r/ddl_hosts.result | 8 + .../r/ddl_mems_by_account_by_event_name.result | 10 + .../r/ddl_mems_by_host_by_event_name.result | 10 + .../r/ddl_mems_by_thread_by_event_name.result | 10 + .../r/ddl_mems_by_user_by_event_name.result | 10 + .../r/ddl_mems_global_by_event_name.result | 10 + .../suite/perfschema/r/ddl_metadata_locks.result | 8 + .../suite/perfschema/r/ddl_mutex_instances.result | 8 + .../perfschema/r/ddl_os_global_by_type.result | 10 + .../perfschema/r/ddl_performance_timers.result | 8 + .../r/ddl_prepared_statements_instances.result | 9 + .../suite/perfschema/r/ddl_processlist.result | 20 + .../r/ddl_replication_applier_configuration.result | 11 + .../r/ddl_replication_applier_status.result | 11 + ...eplication_applier_status_by_coordinator.result | 11 + ...ddl_replication_applier_status_by_worker.result | 11 + ...ddl_replication_connection_configuration.result | 11 + .../r/ddl_replication_connection_status.result | 11 + .../r/ddl_replication_group_member_stats.result | 11 + .../r/ddl_replication_group_members.result | 11 + .../suite/perfschema/r/ddl_rwlock_instances.result | 8 + .../r/ddl_session_account_connect_attrs.result | 9 + .../perfschema/r/ddl_session_connect_attrs.result | 9 + .../suite/perfschema/r/ddl_session_status.result | 11 + .../perfschema/r/ddl_session_variables.result | 11 + .../suite/perfschema/r/ddl_setup_actors.result | 18 + .../suite/perfschema/r/ddl_setup_consumers.result | 8 + .../perfschema/r/ddl_setup_instruments.result | 8 + .../suite/perfschema/r/ddl_setup_objects.result | 16 + .../suite/perfschema/r/ddl_setup_timers.result | 8 + .../suite/perfschema/r/ddl_socket_instances.result | 8 + .../r/ddl_socket_summary_by_event_name.result | 7 + .../r/ddl_socket_summary_by_instance.result | 7 + .../perfschema/r/ddl_status_by_account.result | 10 + .../suite/perfschema/r/ddl_status_by_host.result | 10 + .../suite/perfschema/r/ddl_status_by_thread.result | 10 + .../suite/perfschema/r/ddl_status_by_user.result | 10 + .../suite/perfschema/r/ddl_table_handles.result | 8 + mysql-test/suite/perfschema/r/ddl_threads.result | 8 + .../perfschema/r/ddl_tiws_by_index_usage.result | 8 + .../suite/perfschema/r/ddl_tiws_by_table.result | 8 + .../suite/perfschema/r/ddl_tlws_by_table.result | 8 + mysql-test/suite/perfschema/r/ddl_users.result | 8 + .../suite/perfschema/r/ddl_uvar_by_thread.result | 11 + .../perfschema/r/ddl_variables_by_thread.result | 11 + .../suite/perfschema/r/digest_null_literal.result | 27 + .../suite/perfschema/r/digest_table_full.result | 134 + mysql-test/suite/perfschema/r/digest_view.result | 266 + mysql-test/suite/perfschema/r/discovery.result | 12 + mysql-test/suite/perfschema/r/dml_accounts.result | 36 + .../suite/perfschema/r/dml_cond_instances.result | 29 + .../r/dml_esgs_by_account_by_event_name.result | 41 + .../r/dml_esgs_by_host_by_event_name.result | 40 + .../r/dml_esgs_by_thread_by_event_name.result | 40 + .../r/dml_esgs_by_user_by_event_name.result | 40 + .../r/dml_esgs_global_by_event_name.result | 38 + .../r/dml_esms_by_account_by_event_name.result | 60 + .../suite/perfschema/r/dml_esms_by_digest.result | 63 + .../r/dml_esms_by_host_by_event_name.result | 59 + .../suite/perfschema/r/dml_esms_by_program.result | 27 + .../r/dml_esms_by_thread_by_event_name.result | 59 + .../r/dml_esms_by_user_by_event_name.result | 59 + .../r/dml_esms_global_by_event_name.result | 57 + .../r/dml_ets_by_account_by_event_name.result | 26 + .../r/dml_ets_by_host_by_event_name.result | 26 + .../r/dml_ets_by_thread_by_event_name.result | 26 + .../r/dml_ets_by_user_by_event_name.result | 26 + .../r/dml_ets_global_by_event_name.result | 25 + .../perfschema/r/dml_events_stages_current.result | 44 + .../perfschema/r/dml_events_stages_history.result | 48 + .../r/dml_events_stages_history_long.result | 48 + .../r/dml_events_statements_current.result | 73 + .../r/dml_events_statements_history.result | 77 + .../r/dml_events_statements_history_long.result | 77 + .../r/dml_events_transactions_current.result | 25 + .../r/dml_events_transactions_history.result | 29 + .../r/dml_events_transactions_history_long.result | 29 + .../perfschema/r/dml_events_waits_current.result | 51 + .../perfschema/r/dml_events_waits_history.result | 55 + .../r/dml_events_waits_history_long.result | 55 + .../r/dml_ews_by_account_by_event_name.result | 44 + .../r/dml_ews_by_host_by_event_name.result | 43 + .../suite/perfschema/r/dml_ews_by_instance.result | 48 + .../r/dml_ews_by_thread_by_event_name.result | 40 + .../r/dml_ews_by_user_by_event_name.result | 43 + .../r/dml_ews_global_by_event_name.result | 38 + .../suite/perfschema/r/dml_file_instances.result | 99 + .../suite/perfschema/r/dml_fs_by_event_name.result | 55 + .../suite/perfschema/r/dml_fs_by_instance.result | 57 + .../suite/perfschema/r/dml_global_status.result | 21 + .../suite/perfschema/r/dml_global_variables.result | 21 + mysql-test/suite/perfschema/r/dml_handler.result | 258 + .../suite/perfschema/r/dml_host_cache.result | 63 + mysql-test/suite/perfschema/r/dml_hosts.result | 35 + .../r/dml_mems_by_account_by_event_name.result | 46 + .../r/dml_mems_by_host_by_event_name.result | 45 + .../r/dml_mems_by_thread_by_event_name.result | 26 + .../r/dml_mems_by_user_by_event_name.result | 45 + .../r/dml_mems_global_by_event_name.result | 44 + .../suite/perfschema/r/dml_metadata_locks.result | 38 + .../suite/perfschema/r/dml_mutex_instances.result | 30 + .../perfschema/r/dml_os_global_by_type.result | 60 + .../perfschema/r/dml_performance_timers.result | 40 + .../r/dml_prepared_statements_instances.result | 26 + .../suite/perfschema/r/dml_processlist.result | 24 + .../r/dml_replication_applier_configuration.result | 21 + .../r/dml_replication_applier_status.result | 24 + ...eplication_applier_status_by_coordinator.result | 25 + ...dml_replication_applier_status_by_worker.result | 41 + ...dml_replication_connection_configuration.result | 25 + .../r/dml_replication_connection_status.result | 25 + .../r/dml_replication_group_member_stats.result | 26 + .../r/dml_replication_group_members.result | 24 + .../suite/perfschema/r/dml_rwlock_instances.result | 31 + .../r/dml_session_account_connect_attrs.result | 36 + .../perfschema/r/dml_session_connect_attrs.result | 36 + .../suite/perfschema/r/dml_session_status.result | 21 + .../perfschema/r/dml_session_variables.result | 21 + .../suite/perfschema/r/dml_setup_actors.result | 116 + .../suite/perfschema/r/dml_setup_consumers.result | 68 + .../perfschema/r/dml_setup_instruments.result | 97 + .../suite/perfschema/r/dml_setup_objects.result | 84 + .../suite/perfschema/r/dml_setup_timers.result | 111 + .../suite/perfschema/r/dml_socket_instances.result | 34 + .../r/dml_socket_summary_by_event_name.result | 56 + .../r/dml_socket_summary_by_instance.result | 57 + .../perfschema/r/dml_status_by_account.result | 24 + .../suite/perfschema/r/dml_status_by_host.result | 24 + .../suite/perfschema/r/dml_status_by_thread.result | 24 + .../suite/perfschema/r/dml_status_by_user.result | 24 + .../suite/perfschema/r/dml_table_handles.result | 21 + mysql-test/suite/perfschema/r/dml_threads.result | 58 + .../perfschema/r/dml_tiws_by_index_usage.result | 72 + .../suite/perfschema/r/dml_tiws_by_table.result | 71 + .../suite/perfschema/r/dml_tlws_by_table.result | 106 + mysql-test/suite/perfschema/r/dml_users.result | 35 + .../suite/perfschema/r/dml_uvar_by_thread.result | 30 + .../perfschema/r/dml_variables_by_thread.result | 24 + .../suite/perfschema/r/event_aggregate.result | 6911 ++++++++++++++++++++ .../suite/perfschema/r/event_aggregate_no_a.result | 5251 +++++++++++++++ .../perfschema/r/event_aggregate_no_a_no_h.result | 4747 ++++++++++++++ .../perfschema/r/event_aggregate_no_a_no_u.result | 3535 ++++++++++ .../r/event_aggregate_no_a_no_u_no_h.result | 3031 +++++++++ .../suite/perfschema/r/event_aggregate_no_h.result | 6407 ++++++++++++++++++ .../suite/perfschema/r/event_aggregate_no_u.result | 5195 +++++++++++++++ .../perfschema/r/event_aggregate_no_u_no_h.result | 4691 +++++++++++++ mysql-test/suite/perfschema/r/file_misc.result | 1 + mysql-test/suite/perfschema/r/func_file_io.result | 164 + mysql-test/suite/perfschema/r/func_mutex.result | 139 + .../suite/perfschema/r/global_objects.result | 33 + .../suite/perfschema/r/global_read_lock.result | 39 + mysql-test/suite/perfschema/r/grant.result | 7 + .../r/hostcache_ipv4_addrinfo_again_allow.result | 103 + .../r/hostcache_ipv4_addrinfo_again_deny.result | 85 + .../r/hostcache_ipv4_addrinfo_bad_allow.result | 103 + .../r/hostcache_ipv4_addrinfo_bad_deny.result | 85 + .../r/hostcache_ipv4_addrinfo_good_allow.result | 103 + .../r/hostcache_ipv4_addrinfo_good_deny.result | 85 + .../r/hostcache_ipv4_addrinfo_noname_allow.result | 107 + .../r/hostcache_ipv4_addrinfo_noname_deny.result | 85 + .../r/hostcache_ipv4_auth_ed25519.result | 121 + .../perfschema/r/hostcache_ipv4_auth_plugin.result | 199 + .../perfschema/r/hostcache_ipv4_blocked.result | 431 ++ .../perfschema/r/hostcache_ipv4_format.result | 85 + .../perfschema/r/hostcache_ipv4_max_con.result | 706 ++ .../r/hostcache_ipv4_nameinfo_again_allow.result | 182 + .../r/hostcache_ipv4_nameinfo_again_deny.result | 146 + .../r/hostcache_ipv4_nameinfo_noname_allow.result | 103 + .../r/hostcache_ipv4_nameinfo_noname_deny.result | 85 + .../perfschema/r/hostcache_ipv4_passwd.result | 211 + .../suite/perfschema/r/hostcache_ipv4_ssl.result | 155 + .../r/hostcache_ipv6_addrinfo_again_allow.result | 103 + .../r/hostcache_ipv6_addrinfo_again_deny.result | 85 + .../r/hostcache_ipv6_addrinfo_bad_allow.result | 103 + .../r/hostcache_ipv6_addrinfo_bad_deny.result | 85 + .../r/hostcache_ipv6_addrinfo_good_allow.result | 103 + .../r/hostcache_ipv6_addrinfo_good_deny.result | 84 + .../r/hostcache_ipv6_addrinfo_noname_allow.result | 107 + .../r/hostcache_ipv6_addrinfo_noname_deny.result | 85 + .../perfschema/r/hostcache_ipv6_auth_plugin.result | 199 + .../perfschema/r/hostcache_ipv6_blocked.result | 431 ++ .../perfschema/r/hostcache_ipv6_max_con.result | 706 ++ .../r/hostcache_ipv6_nameinfo_again_allow.result | 182 + .../r/hostcache_ipv6_nameinfo_again_deny.result | 146 + .../r/hostcache_ipv6_nameinfo_noname_allow.result | 103 + .../r/hostcache_ipv6_nameinfo_noname_deny.result | 85 + .../perfschema/r/hostcache_ipv6_passwd.result | 211 + .../suite/perfschema/r/hostcache_ipv6_ssl.result | 155 + .../suite/perfschema/r/hostcache_peer_addr.result | 63 + .../suite/perfschema/r/indexed_table_io.result | 166 + .../suite/perfschema/r/information_schema.result | 867 +++ .../innodb_events_transactions_history_long.result | 16 + .../suite/perfschema/r/innodb_table_io.result | 146 + mysql-test/suite/perfschema/r/io_cache.result | 96 + .../suite/perfschema/r/max_program_zero.result | 314 + mysql-test/suite/perfschema/r/mdl_func.result | 920 +++ .../suite/perfschema/r/memory_aggregate.result | 5602 ++++++++++++++++ .../perfschema/r/memory_aggregate_32bit.result | 5602 ++++++++++++++++ .../perfschema/r/memory_aggregate_no_a.result | 4014 ++++++++++++ .../perfschema/r/memory_aggregate_no_a_no_h.result | 3464 ++++++++++ .../perfschema/r/memory_aggregate_no_a_no_u.result | 2442 +++++++ .../r/memory_aggregate_no_a_no_u_no_h.result | 1892 ++++++ .../perfschema/r/memory_aggregate_no_h.result | 5052 ++++++++++++++ .../perfschema/r/memory_aggregate_no_u.result | 4030 ++++++++++++ .../perfschema/r/memory_aggregate_no_u_no_h.result | 3480 ++++++++++ .../suite/perfschema/r/memory_table_io.result | 145 + .../suite/perfschema/r/merge_table_io.result | 177 + mysql-test/suite/perfschema/r/misc.result | 189 + .../suite/perfschema/r/misc_global_status.result | 106 + .../suite/perfschema/r/mks_timer-6258.result | 3 + .../suite/perfschema/r/multi_table_io.result | 116 + .../suite/perfschema/r/myisam_file_io.result | 79 + .../suite/perfschema/r/myisam_table_io.result | 145 + mysql-test/suite/perfschema/r/nesting.result | 274 + mysql-test/suite/perfschema/r/no_threads.result | 47 + .../suite/perfschema/r/one_thread_per_con.result | 49 + mysql-test/suite/perfschema/r/ortho_iter.result | 1508 +++++ mysql-test/suite/perfschema/r/part_table_io.result | 147 + mysql-test/suite/perfschema/r/partition.result | 10 + .../suite/perfschema/r/pfs_upgrade_event.result | 11 + .../suite/perfschema/r/pfs_upgrade_func.result | 9 + .../suite/perfschema/r/pfs_upgrade_proc.result | 9 + .../suite/perfschema/r/pfs_upgrade_table.result | 11 + .../suite/perfschema/r/pfs_upgrade_view.result | 11 + .../suite/perfschema/r/prepared_statements.result | 672 ++ .../r/prepared_stmts_by_stored_programs.result | 126 + mysql-test/suite/perfschema/r/privilege.result | 616 ++ .../suite/perfschema/r/privilege_table_io.result | 178 + mysql-test/suite/perfschema/r/processlist.result | 201 + .../suite/perfschema/r/processlist_57.result | 345 + .../suite/perfschema/r/processlist_acl.result | 255 + .../perfschema/r/processlist_anonymous.result | 66 + .../suite/perfschema/r/processlist_no_pfs.result | 181 + .../suite/perfschema/r/processlist_port.result | 145 + .../suite/perfschema/r/processlist_reg_user.result | 89 + mysql-test/suite/perfschema/r/query_cache.result | 73 + mysql-test/suite/perfschema/r/read_only.result | 53 + mysql-test/suite/perfschema/r/relaylog.result | 207 + .../suite/perfschema/r/rollback_table_io.result | 97 + .../perfschema/r/rpl_group_member_stats.result | 8 + .../suite/perfschema/r/rpl_group_members.result | 5 + mysql-test/suite/perfschema/r/rpl_gtid_func.result | 128 + .../suite/perfschema/r/rpl_statements.result | 223 + mysql-test/suite/perfschema/r/rpl_threads.result | 61 + mysql-test/suite/perfschema/r/schema.result | 1386 ++++ mysql-test/suite/perfschema/r/selects.result | 117 + mysql-test/suite/perfschema/r/server_init.result | 156 + mysql-test/suite/perfschema/r/setup_actors.result | 141 + .../suite/perfschema/r/setup_actors_enabled.result | 136 + .../suite/perfschema/r/setup_actors_history.result | 138 + .../perfschema/r/setup_consumers_defaults.result | 23 + .../perfschema/r/setup_instruments_defaults.result | 74 + .../perfschema/r/setup_object_table_lock_io.result | 91 + mysql-test/suite/perfschema/r/setup_objects.result | 209 + .../suite/perfschema/r/short_option_1.result | 18 + .../suite/perfschema/r/short_option_2.result | 9 + .../suite/perfschema/r/show_aggregate.result | 525 ++ mysql-test/suite/perfschema/r/show_coverage.result | 142 + mysql-test/suite/perfschema/r/show_misc.result | 74 + mysql-test/suite/perfschema/r/show_plugin.result | 626 ++ mysql-test/suite/perfschema/r/show_sanity.result | 859 +++ .../suite/perfschema/r/socket_connect.result | 171 + .../perfschema/r/socket_instances_func.result | 217 + .../perfschema/r/socket_instances_func_win.result | 144 + .../r/socket_summary_by_event_name_func.result | 131 + .../r/socket_summary_by_instance_func.result | 226 + .../r/socket_summary_by_instance_func_win.result | 232 + .../suite/perfschema/r/stage_mdl_function.result | 32 + .../suite/perfschema/r/stage_mdl_global.result | 34 + .../suite/perfschema/r/stage_mdl_procedure.result | 40 + .../suite/perfschema/r/stage_mdl_table.result | 48 + .../perfschema/r/start_server_1_digest.result | 7 + .../perfschema/r/start_server_disable_idle.result | 168 + .../r/start_server_disable_stages.result | 168 + .../r/start_server_disable_statements.result | 168 + .../r/start_server_disable_transactions.result | 168 + .../perfschema/r/start_server_disable_waits.result | 168 + .../suite/perfschema/r/start_server_innodb.result | 182 + .../perfschema/r/start_server_low_digest.result | 12 + .../r/start_server_low_digest_sql_length.result | 12 + .../perfschema/r/start_server_low_index.result | 281 + .../r/start_server_low_table_lock.result | 238 + .../perfschema/r/start_server_no_account.result | 160 + .../perfschema/r/start_server_no_cond_class.result | 167 + .../perfschema/r/start_server_no_cond_inst.result | 170 + .../perfschema/r/start_server_no_digests.result | 132 + .../perfschema/r/start_server_no_file_class.result | 167 + .../perfschema/r/start_server_no_file_inst.result | 170 + .../suite/perfschema/r/start_server_no_host.result | 160 + .../perfschema/r/start_server_no_index.result | 186 + .../suite/perfschema/r/start_server_no_mdl.result | 162 + .../r/start_server_no_memory_class.result | 236 + .../r/start_server_no_mutex_class.result | 167 + .../perfschema/r/start_server_no_mutex_inst.result | 170 + ...start_server_no_prepared_stmts_instances.result | 213 + .../r/start_server_no_rwlock_class.result | 167 + .../r/start_server_no_rwlock_inst.result | 170 + .../r/start_server_no_setup_actors.result | 156 + .../r/start_server_no_setup_objects.result | 156 + .../r/start_server_no_socket_class.result | 167 + .../r/start_server_no_socket_inst.result | 170 + .../r/start_server_no_stage_class.result | 176 + .../r/start_server_no_stages_history.result | 157 + .../r/start_server_no_stages_history_long.result | 157 + .../r/start_server_no_statement_class.result | 176 + .../r/start_server_no_statements_history.result | 157 + .../start_server_no_statements_history_long.result | 157 + .../perfschema/r/start_server_no_table_hdl.result | 172 + .../perfschema/r/start_server_no_table_inst.result | 172 + .../perfschema/r/start_server_no_table_lock.result | 178 + .../r/start_server_no_thread_class.result | 167 + .../r/start_server_no_thread_inst.result | 166 + .../r/start_server_no_transactions_history.result | 157 + ...tart_server_no_transactions_history_long.result | 157 + .../suite/perfschema/r/start_server_no_user.result | 160 + .../r/start_server_no_waits_history.result | 157 + .../r/start_server_no_waits_history_long.result | 157 + .../suite/perfschema/r/start_server_nothing.result | 399 ++ .../suite/perfschema/r/start_server_off.result | 282 + .../suite/perfschema/r/start_server_on.result | 182 + .../perfschema/r/start_server_variables.result | 195 + .../r/start_server_zero_digest_sql_length.result | 12 + .../suite/perfschema/r/statement_digest.result | 163 + .../perfschema/r/statement_digest_charset.result | 14 + .../perfschema/r/statement_digest_consumers.result | 179 + .../r/statement_digest_consumers2.result | 145 + .../r/statement_digest_long_query.result | 12 + .../r/statement_program_concurrency.result | 117 + .../r/statement_program_lost_inst.result | 336 + .../perfschema/r/statement_program_nested.result | 2334 +++++++ .../r/statement_program_nesting_event_check.result | 1515 +++++ .../r/statement_program_non_nested.result | 704 ++ .../suite/perfschema/r/status_reprepare.result | 42 + mysql-test/suite/perfschema/r/sxlock_func.result | 58 + .../r/table_aggregate_global_2u_2t.result | 1646 +++++ .../r/table_aggregate_global_2u_3t.result | 1775 +++++ .../r/table_aggregate_global_4u_2t.result | 1646 +++++ .../r/table_aggregate_global_4u_3t.result | 1775 +++++ .../perfschema/r/table_aggregate_hist_2u_2t.result | 1724 +++++ .../perfschema/r/table_aggregate_hist_2u_3t.result | 1893 ++++++ .../perfschema/r/table_aggregate_hist_4u_2t.result | 1724 +++++ .../perfschema/r/table_aggregate_hist_4u_3t.result | 1893 ++++++ .../suite/perfschema/r/table_aggregate_off.result | 1715 +++++ .../r/table_aggregate_thread_2u_2t.result | 1646 +++++ .../r/table_aggregate_thread_2u_3t.result | 1775 +++++ .../r/table_aggregate_thread_4u_2t.result | 1646 +++++ .../r/table_aggregate_thread_4u_3t.result | 1775 +++++ .../r/table_io_aggregate_global_2u_2t.result | 1648 +++++ .../r/table_io_aggregate_global_2u_3t.result | 1777 +++++ .../r/table_io_aggregate_global_4u_2t.result | 1648 +++++ .../r/table_io_aggregate_global_4u_3t.result | 1777 +++++ .../r/table_io_aggregate_hist_2u_2t.result | 1686 +++++ .../r/table_io_aggregate_hist_2u_3t.result | 1835 ++++++ .../r/table_io_aggregate_hist_4u_2t.result | 1686 +++++ .../r/table_io_aggregate_hist_4u_3t.result | 1835 ++++++ .../r/table_io_aggregate_thread_2u_2t.result | 1648 +++++ .../r/table_io_aggregate_thread_2u_3t.result | 1777 +++++ .../r/table_io_aggregate_thread_4u_2t.result | 1648 +++++ .../r/table_io_aggregate_thread_4u_3t.result | 1777 +++++ .../r/table_lock_aggregate_global_2u_2t.result | 1608 +++++ .../r/table_lock_aggregate_global_2u_3t.result | 1717 +++++ .../r/table_lock_aggregate_global_4u_2t.result | 1608 +++++ .../r/table_lock_aggregate_global_4u_3t.result | 1717 +++++ .../r/table_lock_aggregate_hist_2u_2t.result | 1646 +++++ .../r/table_lock_aggregate_hist_2u_3t.result | 1775 +++++ .../r/table_lock_aggregate_hist_4u_2t.result | 1646 +++++ .../r/table_lock_aggregate_hist_4u_3t.result | 1775 +++++ .../r/table_lock_aggregate_thread_2u_2t.result | 1608 +++++ .../r/table_lock_aggregate_thread_2u_3t.result | 1717 +++++ .../r/table_lock_aggregate_thread_4u_2t.result | 1608 +++++ .../r/table_lock_aggregate_thread_4u_3t.result | 1717 +++++ mysql-test/suite/perfschema/r/table_name.result | 167 + mysql-test/suite/perfschema/r/table_schema.result | 1208 ++++ mysql-test/suite/perfschema/r/temp_table_io.result | 126 + mysql-test/suite/perfschema/r/thread_cache.result | 57 + mysql-test/suite/perfschema/r/thread_misc.result | 1 + .../suite/perfschema/r/threads_history.result | 700 ++ .../suite/perfschema/r/threads_innodb.result | 9 + .../perfschema/r/threads_insert_delayed.result | 19 + mysql-test/suite/perfschema/r/threads_mysql.result | 123 + .../perfschema/r/threads_mysql_freebsd.result | 3 + .../suite/perfschema/r/threads_mysql_linux.result | 3 + .../perfschema/r/threads_mysql_windows.result | 3 + mysql-test/suite/perfschema/r/transaction.result | 680 ++ .../suite/perfschema/r/transaction_gtid.result | 171 + .../perfschema/r/transaction_nested_events.result | 1284 ++++ .../suite/perfschema/r/trigger_table_io.result | 201 + mysql-test/suite/perfschema/r/unary_digest.result | 47 + .../suite/perfschema/r/update_order-3837.result | 1 + mysql-test/suite/perfschema/r/user_var_func.result | 91 + mysql-test/suite/perfschema/r/view_table_io.result | 154 + 458 files changed, 190748 insertions(+) create mode 100644 mysql-test/suite/perfschema/r/all_tests.result create mode 100644 mysql-test/suite/perfschema/r/alter_table_progress.result create mode 100644 mysql-test/suite/perfschema/r/bad_option.result create mode 100644 mysql-test/suite/perfschema/r/batch_table_io_func.result create mode 100644 mysql-test/suite/perfschema/r/binlog_edge_mix.result create mode 100644 mysql-test/suite/perfschema/r/binlog_edge_row.result create mode 100644 mysql-test/suite/perfschema/r/binlog_edge_stmt.result create mode 100644 mysql-test/suite/perfschema/r/binlog_mix.result create mode 100644 mysql-test/suite/perfschema/r/binlog_ok_mix.result create mode 100644 mysql-test/suite/perfschema/r/binlog_ok_row.result create mode 100644 mysql-test/suite/perfschema/r/binlog_ok_stmt.result create mode 100644 mysql-test/suite/perfschema/r/binlog_row.result create mode 100644 mysql-test/suite/perfschema/r/binlog_stmt.result create mode 100644 mysql-test/suite/perfschema/r/checksum.result create mode 100644 mysql-test/suite/perfschema/r/cnf_option.result create mode 100644 mysql-test/suite/perfschema/r/column_privilege.result create mode 100644 mysql-test/suite/perfschema/r/connect_attrs.result create mode 100644 mysql-test/suite/perfschema/r/connection.result create mode 100644 mysql-test/suite/perfschema/r/connection_3a.result create mode 100644 mysql-test/suite/perfschema/r/connection_3a_3u.result create mode 100644 mysql-test/suite/perfschema/r/connection_3u.result create mode 100644 mysql-test/suite/perfschema/r/connection_type_notwin.result create mode 100644 mysql-test/suite/perfschema/r/connection_type_win.result create mode 100644 mysql-test/suite/perfschema/r/csv_table_io.result create mode 100644 mysql-test/suite/perfschema/r/ddl_accounts.result create mode 100644 mysql-test/suite/perfschema/r/ddl_cond_instances.result create mode 100644 mysql-test/suite/perfschema/r/ddl_esgs_by_account_by_event_name.result create mode 100644 mysql-test/suite/perfschema/r/ddl_esgs_by_host_by_event_name.result create mode 100644 mysql-test/suite/perfschema/r/ddl_esgs_by_thread_by_event_name.result create mode 100644 mysql-test/suite/perfschema/r/ddl_esgs_by_user_by_event_name.result create mode 100644 mysql-test/suite/perfschema/r/ddl_esgs_global_by_event_name.result create mode 100644 mysql-test/suite/perfschema/r/ddl_esms_by_account_by_event_name.result create mode 100644 mysql-test/suite/perfschema/r/ddl_esms_by_digest.result create mode 100644 mysql-test/suite/perfschema/r/ddl_esms_by_host_by_event_name.result create mode 100644 mysql-test/suite/perfschema/r/ddl_esms_by_program.result create mode 100644 mysql-test/suite/perfschema/r/ddl_esms_by_thread_by_event_name.result create mode 100644 mysql-test/suite/perfschema/r/ddl_esms_by_user_by_event_name.result create mode 100644 mysql-test/suite/perfschema/r/ddl_esms_global_by_event_name.result create mode 100644 mysql-test/suite/perfschema/r/ddl_ets_by_account_by_event_name.result create mode 100644 mysql-test/suite/perfschema/r/ddl_ets_by_host_by_event_name.result create mode 100644 mysql-test/suite/perfschema/r/ddl_ets_by_thread_by_event_name.result create mode 100644 mysql-test/suite/perfschema/r/ddl_ets_by_user_by_event_name.result create mode 100644 mysql-test/suite/perfschema/r/ddl_ets_global_by_event_name.result create mode 100644 mysql-test/suite/perfschema/r/ddl_events_stages_current.result create mode 100644 mysql-test/suite/perfschema/r/ddl_events_stages_history.result create mode 100644 mysql-test/suite/perfschema/r/ddl_events_stages_history_long.result create mode 100644 mysql-test/suite/perfschema/r/ddl_events_statements_current.result create mode 100644 mysql-test/suite/perfschema/r/ddl_events_statements_history.result create mode 100644 mysql-test/suite/perfschema/r/ddl_events_statements_history_long.result create mode 100644 mysql-test/suite/perfschema/r/ddl_events_transactions_current.result create mode 100644 mysql-test/suite/perfschema/r/ddl_events_transactions_history.result create mode 100644 mysql-test/suite/perfschema/r/ddl_events_transactions_history_long.result create mode 100644 mysql-test/suite/perfschema/r/ddl_events_waits_current.result create mode 100644 mysql-test/suite/perfschema/r/ddl_events_waits_history.result create mode 100644 mysql-test/suite/perfschema/r/ddl_events_waits_history_long.result create mode 100644 mysql-test/suite/perfschema/r/ddl_ews_by_account_by_event_name.result create mode 100644 mysql-test/suite/perfschema/r/ddl_ews_by_host_by_event_name.result create mode 100644 mysql-test/suite/perfschema/r/ddl_ews_by_instance.result create mode 100644 mysql-test/suite/perfschema/r/ddl_ews_by_thread_by_event_name.result create mode 100644 mysql-test/suite/perfschema/r/ddl_ews_by_user_by_event_name.result create mode 100644 mysql-test/suite/perfschema/r/ddl_ews_global_by_event_name.result create mode 100644 mysql-test/suite/perfschema/r/ddl_file_instances.result create mode 100644 mysql-test/suite/perfschema/r/ddl_fs_by_event_name.result create mode 100644 mysql-test/suite/perfschema/r/ddl_fs_by_instance.result create mode 100644 mysql-test/suite/perfschema/r/ddl_global_status.result create mode 100644 mysql-test/suite/perfschema/r/ddl_global_variables.result create mode 100644 mysql-test/suite/perfschema/r/ddl_host_cache.result create mode 100644 mysql-test/suite/perfschema/r/ddl_hosts.result create mode 100644 mysql-test/suite/perfschema/r/ddl_mems_by_account_by_event_name.result create mode 100644 mysql-test/suite/perfschema/r/ddl_mems_by_host_by_event_name.result create mode 100644 mysql-test/suite/perfschema/r/ddl_mems_by_thread_by_event_name.result create mode 100644 mysql-test/suite/perfschema/r/ddl_mems_by_user_by_event_name.result create mode 100644 mysql-test/suite/perfschema/r/ddl_mems_global_by_event_name.result create mode 100644 mysql-test/suite/perfschema/r/ddl_metadata_locks.result create mode 100644 mysql-test/suite/perfschema/r/ddl_mutex_instances.result create mode 100644 mysql-test/suite/perfschema/r/ddl_os_global_by_type.result create mode 100644 mysql-test/suite/perfschema/r/ddl_performance_timers.result create mode 100644 mysql-test/suite/perfschema/r/ddl_prepared_statements_instances.result create mode 100644 mysql-test/suite/perfschema/r/ddl_processlist.result create mode 100644 mysql-test/suite/perfschema/r/ddl_replication_applier_configuration.result create mode 100644 mysql-test/suite/perfschema/r/ddl_replication_applier_status.result create mode 100644 mysql-test/suite/perfschema/r/ddl_replication_applier_status_by_coordinator.result create mode 100644 mysql-test/suite/perfschema/r/ddl_replication_applier_status_by_worker.result create mode 100644 mysql-test/suite/perfschema/r/ddl_replication_connection_configuration.result create mode 100644 mysql-test/suite/perfschema/r/ddl_replication_connection_status.result create mode 100644 mysql-test/suite/perfschema/r/ddl_replication_group_member_stats.result create mode 100644 mysql-test/suite/perfschema/r/ddl_replication_group_members.result create mode 100644 mysql-test/suite/perfschema/r/ddl_rwlock_instances.result create mode 100644 mysql-test/suite/perfschema/r/ddl_session_account_connect_attrs.result create mode 100644 mysql-test/suite/perfschema/r/ddl_session_connect_attrs.result create mode 100644 mysql-test/suite/perfschema/r/ddl_session_status.result create mode 100644 mysql-test/suite/perfschema/r/ddl_session_variables.result create mode 100644 mysql-test/suite/perfschema/r/ddl_setup_actors.result create mode 100644 mysql-test/suite/perfschema/r/ddl_setup_consumers.result create mode 100644 mysql-test/suite/perfschema/r/ddl_setup_instruments.result create mode 100644 mysql-test/suite/perfschema/r/ddl_setup_objects.result create mode 100644 mysql-test/suite/perfschema/r/ddl_setup_timers.result create mode 100644 mysql-test/suite/perfschema/r/ddl_socket_instances.result create mode 100644 mysql-test/suite/perfschema/r/ddl_socket_summary_by_event_name.result create mode 100644 mysql-test/suite/perfschema/r/ddl_socket_summary_by_instance.result create mode 100644 mysql-test/suite/perfschema/r/ddl_status_by_account.result create mode 100644 mysql-test/suite/perfschema/r/ddl_status_by_host.result create mode 100644 mysql-test/suite/perfschema/r/ddl_status_by_thread.result create mode 100644 mysql-test/suite/perfschema/r/ddl_status_by_user.result create mode 100644 mysql-test/suite/perfschema/r/ddl_table_handles.result create mode 100644 mysql-test/suite/perfschema/r/ddl_threads.result create mode 100644 mysql-test/suite/perfschema/r/ddl_tiws_by_index_usage.result create mode 100644 mysql-test/suite/perfschema/r/ddl_tiws_by_table.result create mode 100644 mysql-test/suite/perfschema/r/ddl_tlws_by_table.result create mode 100644 mysql-test/suite/perfschema/r/ddl_users.result create mode 100644 mysql-test/suite/perfschema/r/ddl_uvar_by_thread.result create mode 100644 mysql-test/suite/perfschema/r/ddl_variables_by_thread.result create mode 100644 mysql-test/suite/perfschema/r/digest_null_literal.result create mode 100644 mysql-test/suite/perfschema/r/digest_table_full.result create mode 100644 mysql-test/suite/perfschema/r/digest_view.result create mode 100644 mysql-test/suite/perfschema/r/discovery.result create mode 100644 mysql-test/suite/perfschema/r/dml_accounts.result create mode 100644 mysql-test/suite/perfschema/r/dml_cond_instances.result create mode 100644 mysql-test/suite/perfschema/r/dml_esgs_by_account_by_event_name.result create mode 100644 mysql-test/suite/perfschema/r/dml_esgs_by_host_by_event_name.result create mode 100644 mysql-test/suite/perfschema/r/dml_esgs_by_thread_by_event_name.result create mode 100644 mysql-test/suite/perfschema/r/dml_esgs_by_user_by_event_name.result create mode 100644 mysql-test/suite/perfschema/r/dml_esgs_global_by_event_name.result create mode 100644 mysql-test/suite/perfschema/r/dml_esms_by_account_by_event_name.result create mode 100644 mysql-test/suite/perfschema/r/dml_esms_by_digest.result create mode 100644 mysql-test/suite/perfschema/r/dml_esms_by_host_by_event_name.result create mode 100644 mysql-test/suite/perfschema/r/dml_esms_by_program.result create mode 100644 mysql-test/suite/perfschema/r/dml_esms_by_thread_by_event_name.result create mode 100644 mysql-test/suite/perfschema/r/dml_esms_by_user_by_event_name.result create mode 100644 mysql-test/suite/perfschema/r/dml_esms_global_by_event_name.result create mode 100644 mysql-test/suite/perfschema/r/dml_ets_by_account_by_event_name.result create mode 100644 mysql-test/suite/perfschema/r/dml_ets_by_host_by_event_name.result create mode 100644 mysql-test/suite/perfschema/r/dml_ets_by_thread_by_event_name.result create mode 100644 mysql-test/suite/perfschema/r/dml_ets_by_user_by_event_name.result create mode 100644 mysql-test/suite/perfschema/r/dml_ets_global_by_event_name.result create mode 100644 mysql-test/suite/perfschema/r/dml_events_stages_current.result create mode 100644 mysql-test/suite/perfschema/r/dml_events_stages_history.result create mode 100644 mysql-test/suite/perfschema/r/dml_events_stages_history_long.result create mode 100644 mysql-test/suite/perfschema/r/dml_events_statements_current.result create mode 100644 mysql-test/suite/perfschema/r/dml_events_statements_history.result create mode 100644 mysql-test/suite/perfschema/r/dml_events_statements_history_long.result create mode 100644 mysql-test/suite/perfschema/r/dml_events_transactions_current.result create mode 100644 mysql-test/suite/perfschema/r/dml_events_transactions_history.result create mode 100644 mysql-test/suite/perfschema/r/dml_events_transactions_history_long.result create mode 100644 mysql-test/suite/perfschema/r/dml_events_waits_current.result create mode 100644 mysql-test/suite/perfschema/r/dml_events_waits_history.result create mode 100644 mysql-test/suite/perfschema/r/dml_events_waits_history_long.result create mode 100644 mysql-test/suite/perfschema/r/dml_ews_by_account_by_event_name.result create mode 100644 mysql-test/suite/perfschema/r/dml_ews_by_host_by_event_name.result create mode 100644 mysql-test/suite/perfschema/r/dml_ews_by_instance.result create mode 100644 mysql-test/suite/perfschema/r/dml_ews_by_thread_by_event_name.result create mode 100644 mysql-test/suite/perfschema/r/dml_ews_by_user_by_event_name.result create mode 100644 mysql-test/suite/perfschema/r/dml_ews_global_by_event_name.result create mode 100644 mysql-test/suite/perfschema/r/dml_file_instances.result create mode 100644 mysql-test/suite/perfschema/r/dml_fs_by_event_name.result create mode 100644 mysql-test/suite/perfschema/r/dml_fs_by_instance.result create mode 100644 mysql-test/suite/perfschema/r/dml_global_status.result create mode 100644 mysql-test/suite/perfschema/r/dml_global_variables.result create mode 100644 mysql-test/suite/perfschema/r/dml_handler.result create mode 100644 mysql-test/suite/perfschema/r/dml_host_cache.result create mode 100644 mysql-test/suite/perfschema/r/dml_hosts.result create mode 100644 mysql-test/suite/perfschema/r/dml_mems_by_account_by_event_name.result create mode 100644 mysql-test/suite/perfschema/r/dml_mems_by_host_by_event_name.result create mode 100644 mysql-test/suite/perfschema/r/dml_mems_by_thread_by_event_name.result create mode 100644 mysql-test/suite/perfschema/r/dml_mems_by_user_by_event_name.result create mode 100644 mysql-test/suite/perfschema/r/dml_mems_global_by_event_name.result create mode 100644 mysql-test/suite/perfschema/r/dml_metadata_locks.result create mode 100644 mysql-test/suite/perfschema/r/dml_mutex_instances.result create mode 100644 mysql-test/suite/perfschema/r/dml_os_global_by_type.result create mode 100644 mysql-test/suite/perfschema/r/dml_performance_timers.result create mode 100644 mysql-test/suite/perfschema/r/dml_prepared_statements_instances.result create mode 100644 mysql-test/suite/perfschema/r/dml_processlist.result create mode 100644 mysql-test/suite/perfschema/r/dml_replication_applier_configuration.result create mode 100644 mysql-test/suite/perfschema/r/dml_replication_applier_status.result create mode 100644 mysql-test/suite/perfschema/r/dml_replication_applier_status_by_coordinator.result create mode 100644 mysql-test/suite/perfschema/r/dml_replication_applier_status_by_worker.result create mode 100644 mysql-test/suite/perfschema/r/dml_replication_connection_configuration.result create mode 100644 mysql-test/suite/perfschema/r/dml_replication_connection_status.result create mode 100644 mysql-test/suite/perfschema/r/dml_replication_group_member_stats.result create mode 100644 mysql-test/suite/perfschema/r/dml_replication_group_members.result create mode 100644 mysql-test/suite/perfschema/r/dml_rwlock_instances.result create mode 100644 mysql-test/suite/perfschema/r/dml_session_account_connect_attrs.result create mode 100644 mysql-test/suite/perfschema/r/dml_session_connect_attrs.result create mode 100644 mysql-test/suite/perfschema/r/dml_session_status.result create mode 100644 mysql-test/suite/perfschema/r/dml_session_variables.result create mode 100644 mysql-test/suite/perfschema/r/dml_setup_actors.result create mode 100644 mysql-test/suite/perfschema/r/dml_setup_consumers.result create mode 100644 mysql-test/suite/perfschema/r/dml_setup_instruments.result create mode 100644 mysql-test/suite/perfschema/r/dml_setup_objects.result create mode 100644 mysql-test/suite/perfschema/r/dml_setup_timers.result create mode 100644 mysql-test/suite/perfschema/r/dml_socket_instances.result create mode 100644 mysql-test/suite/perfschema/r/dml_socket_summary_by_event_name.result create mode 100644 mysql-test/suite/perfschema/r/dml_socket_summary_by_instance.result create mode 100644 mysql-test/suite/perfschema/r/dml_status_by_account.result create mode 100644 mysql-test/suite/perfschema/r/dml_status_by_host.result create mode 100644 mysql-test/suite/perfschema/r/dml_status_by_thread.result create mode 100644 mysql-test/suite/perfschema/r/dml_status_by_user.result create mode 100644 mysql-test/suite/perfschema/r/dml_table_handles.result create mode 100644 mysql-test/suite/perfschema/r/dml_threads.result create mode 100644 mysql-test/suite/perfschema/r/dml_tiws_by_index_usage.result create mode 100644 mysql-test/suite/perfschema/r/dml_tiws_by_table.result create mode 100644 mysql-test/suite/perfschema/r/dml_tlws_by_table.result create mode 100644 mysql-test/suite/perfschema/r/dml_users.result create mode 100644 mysql-test/suite/perfschema/r/dml_uvar_by_thread.result create mode 100644 mysql-test/suite/perfschema/r/dml_variables_by_thread.result create mode 100644 mysql-test/suite/perfschema/r/event_aggregate.result create mode 100644 mysql-test/suite/perfschema/r/event_aggregate_no_a.result create mode 100644 mysql-test/suite/perfschema/r/event_aggregate_no_a_no_h.result create mode 100644 mysql-test/suite/perfschema/r/event_aggregate_no_a_no_u.result create mode 100644 mysql-test/suite/perfschema/r/event_aggregate_no_a_no_u_no_h.result create mode 100644 mysql-test/suite/perfschema/r/event_aggregate_no_h.result create mode 100644 mysql-test/suite/perfschema/r/event_aggregate_no_u.result create mode 100644 mysql-test/suite/perfschema/r/event_aggregate_no_u_no_h.result create mode 100644 mysql-test/suite/perfschema/r/file_misc.result create mode 100644 mysql-test/suite/perfschema/r/func_file_io.result create mode 100644 mysql-test/suite/perfschema/r/func_mutex.result create mode 100644 mysql-test/suite/perfschema/r/global_objects.result create mode 100644 mysql-test/suite/perfschema/r/global_read_lock.result create mode 100644 mysql-test/suite/perfschema/r/grant.result create mode 100644 mysql-test/suite/perfschema/r/hostcache_ipv4_addrinfo_again_allow.result create mode 100644 mysql-test/suite/perfschema/r/hostcache_ipv4_addrinfo_again_deny.result create mode 100644 mysql-test/suite/perfschema/r/hostcache_ipv4_addrinfo_bad_allow.result create mode 100644 mysql-test/suite/perfschema/r/hostcache_ipv4_addrinfo_bad_deny.result create mode 100644 mysql-test/suite/perfschema/r/hostcache_ipv4_addrinfo_good_allow.result create mode 100644 mysql-test/suite/perfschema/r/hostcache_ipv4_addrinfo_good_deny.result create mode 100644 mysql-test/suite/perfschema/r/hostcache_ipv4_addrinfo_noname_allow.result create mode 100644 mysql-test/suite/perfschema/r/hostcache_ipv4_addrinfo_noname_deny.result create mode 100644 mysql-test/suite/perfschema/r/hostcache_ipv4_auth_ed25519.result create mode 100644 mysql-test/suite/perfschema/r/hostcache_ipv4_auth_plugin.result create mode 100644 mysql-test/suite/perfschema/r/hostcache_ipv4_blocked.result create mode 100644 mysql-test/suite/perfschema/r/hostcache_ipv4_format.result create mode 100644 mysql-test/suite/perfschema/r/hostcache_ipv4_max_con.result create mode 100644 mysql-test/suite/perfschema/r/hostcache_ipv4_nameinfo_again_allow.result create mode 100644 mysql-test/suite/perfschema/r/hostcache_ipv4_nameinfo_again_deny.result create mode 100644 mysql-test/suite/perfschema/r/hostcache_ipv4_nameinfo_noname_allow.result create mode 100644 mysql-test/suite/perfschema/r/hostcache_ipv4_nameinfo_noname_deny.result create mode 100644 mysql-test/suite/perfschema/r/hostcache_ipv4_passwd.result create mode 100644 mysql-test/suite/perfschema/r/hostcache_ipv4_ssl.result create mode 100644 mysql-test/suite/perfschema/r/hostcache_ipv6_addrinfo_again_allow.result create mode 100644 mysql-test/suite/perfschema/r/hostcache_ipv6_addrinfo_again_deny.result create mode 100644 mysql-test/suite/perfschema/r/hostcache_ipv6_addrinfo_bad_allow.result create mode 100644 mysql-test/suite/perfschema/r/hostcache_ipv6_addrinfo_bad_deny.result create mode 100644 mysql-test/suite/perfschema/r/hostcache_ipv6_addrinfo_good_allow.result create mode 100644 mysql-test/suite/perfschema/r/hostcache_ipv6_addrinfo_good_deny.result create mode 100644 mysql-test/suite/perfschema/r/hostcache_ipv6_addrinfo_noname_allow.result create mode 100644 mysql-test/suite/perfschema/r/hostcache_ipv6_addrinfo_noname_deny.result create mode 100644 mysql-test/suite/perfschema/r/hostcache_ipv6_auth_plugin.result create mode 100644 mysql-test/suite/perfschema/r/hostcache_ipv6_blocked.result create mode 100644 mysql-test/suite/perfschema/r/hostcache_ipv6_max_con.result create mode 100644 mysql-test/suite/perfschema/r/hostcache_ipv6_nameinfo_again_allow.result create mode 100644 mysql-test/suite/perfschema/r/hostcache_ipv6_nameinfo_again_deny.result create mode 100644 mysql-test/suite/perfschema/r/hostcache_ipv6_nameinfo_noname_allow.result create mode 100644 mysql-test/suite/perfschema/r/hostcache_ipv6_nameinfo_noname_deny.result create mode 100644 mysql-test/suite/perfschema/r/hostcache_ipv6_passwd.result create mode 100644 mysql-test/suite/perfschema/r/hostcache_ipv6_ssl.result create mode 100644 mysql-test/suite/perfschema/r/hostcache_peer_addr.result create mode 100644 mysql-test/suite/perfschema/r/indexed_table_io.result create mode 100644 mysql-test/suite/perfschema/r/information_schema.result create mode 100644 mysql-test/suite/perfschema/r/innodb_events_transactions_history_long.result create mode 100644 mysql-test/suite/perfschema/r/innodb_table_io.result create mode 100644 mysql-test/suite/perfschema/r/io_cache.result create mode 100644 mysql-test/suite/perfschema/r/max_program_zero.result create mode 100644 mysql-test/suite/perfschema/r/mdl_func.result create mode 100644 mysql-test/suite/perfschema/r/memory_aggregate.result create mode 100644 mysql-test/suite/perfschema/r/memory_aggregate_32bit.result create mode 100644 mysql-test/suite/perfschema/r/memory_aggregate_no_a.result create mode 100644 mysql-test/suite/perfschema/r/memory_aggregate_no_a_no_h.result create mode 100644 mysql-test/suite/perfschema/r/memory_aggregate_no_a_no_u.result create mode 100644 mysql-test/suite/perfschema/r/memory_aggregate_no_a_no_u_no_h.result create mode 100644 mysql-test/suite/perfschema/r/memory_aggregate_no_h.result create mode 100644 mysql-test/suite/perfschema/r/memory_aggregate_no_u.result create mode 100644 mysql-test/suite/perfschema/r/memory_aggregate_no_u_no_h.result create mode 100644 mysql-test/suite/perfschema/r/memory_table_io.result create mode 100644 mysql-test/suite/perfschema/r/merge_table_io.result create mode 100644 mysql-test/suite/perfschema/r/misc.result create mode 100644 mysql-test/suite/perfschema/r/misc_global_status.result create mode 100644 mysql-test/suite/perfschema/r/mks_timer-6258.result create mode 100644 mysql-test/suite/perfschema/r/multi_table_io.result create mode 100644 mysql-test/suite/perfschema/r/myisam_file_io.result create mode 100644 mysql-test/suite/perfschema/r/myisam_table_io.result create mode 100644 mysql-test/suite/perfschema/r/nesting.result create mode 100644 mysql-test/suite/perfschema/r/no_threads.result create mode 100644 mysql-test/suite/perfschema/r/one_thread_per_con.result create mode 100644 mysql-test/suite/perfschema/r/ortho_iter.result create mode 100644 mysql-test/suite/perfschema/r/part_table_io.result create mode 100644 mysql-test/suite/perfschema/r/partition.result create mode 100644 mysql-test/suite/perfschema/r/pfs_upgrade_event.result create mode 100644 mysql-test/suite/perfschema/r/pfs_upgrade_func.result create mode 100644 mysql-test/suite/perfschema/r/pfs_upgrade_proc.result create mode 100644 mysql-test/suite/perfschema/r/pfs_upgrade_table.result create mode 100644 mysql-test/suite/perfschema/r/pfs_upgrade_view.result create mode 100644 mysql-test/suite/perfschema/r/prepared_statements.result create mode 100644 mysql-test/suite/perfschema/r/prepared_stmts_by_stored_programs.result create mode 100644 mysql-test/suite/perfschema/r/privilege.result create mode 100644 mysql-test/suite/perfschema/r/privilege_table_io.result create mode 100644 mysql-test/suite/perfschema/r/processlist.result create mode 100644 mysql-test/suite/perfschema/r/processlist_57.result create mode 100644 mysql-test/suite/perfschema/r/processlist_acl.result create mode 100644 mysql-test/suite/perfschema/r/processlist_anonymous.result create mode 100644 mysql-test/suite/perfschema/r/processlist_no_pfs.result create mode 100644 mysql-test/suite/perfschema/r/processlist_port.result create mode 100644 mysql-test/suite/perfschema/r/processlist_reg_user.result create mode 100644 mysql-test/suite/perfschema/r/query_cache.result create mode 100644 mysql-test/suite/perfschema/r/read_only.result create mode 100644 mysql-test/suite/perfschema/r/relaylog.result create mode 100644 mysql-test/suite/perfschema/r/rollback_table_io.result create mode 100644 mysql-test/suite/perfschema/r/rpl_group_member_stats.result create mode 100644 mysql-test/suite/perfschema/r/rpl_group_members.result create mode 100644 mysql-test/suite/perfschema/r/rpl_gtid_func.result create mode 100644 mysql-test/suite/perfschema/r/rpl_statements.result create mode 100644 mysql-test/suite/perfschema/r/rpl_threads.result create mode 100644 mysql-test/suite/perfschema/r/schema.result create mode 100644 mysql-test/suite/perfschema/r/selects.result create mode 100644 mysql-test/suite/perfschema/r/server_init.result create mode 100644 mysql-test/suite/perfschema/r/setup_actors.result create mode 100644 mysql-test/suite/perfschema/r/setup_actors_enabled.result create mode 100644 mysql-test/suite/perfschema/r/setup_actors_history.result create mode 100644 mysql-test/suite/perfschema/r/setup_consumers_defaults.result create mode 100644 mysql-test/suite/perfschema/r/setup_instruments_defaults.result create mode 100644 mysql-test/suite/perfschema/r/setup_object_table_lock_io.result create mode 100644 mysql-test/suite/perfschema/r/setup_objects.result create mode 100644 mysql-test/suite/perfschema/r/short_option_1.result create mode 100644 mysql-test/suite/perfschema/r/short_option_2.result create mode 100644 mysql-test/suite/perfschema/r/show_aggregate.result create mode 100644 mysql-test/suite/perfschema/r/show_coverage.result create mode 100644 mysql-test/suite/perfschema/r/show_misc.result create mode 100644 mysql-test/suite/perfschema/r/show_plugin.result create mode 100644 mysql-test/suite/perfschema/r/show_sanity.result create mode 100644 mysql-test/suite/perfschema/r/socket_connect.result create mode 100644 mysql-test/suite/perfschema/r/socket_instances_func.result create mode 100644 mysql-test/suite/perfschema/r/socket_instances_func_win.result create mode 100644 mysql-test/suite/perfschema/r/socket_summary_by_event_name_func.result create mode 100644 mysql-test/suite/perfschema/r/socket_summary_by_instance_func.result create mode 100644 mysql-test/suite/perfschema/r/socket_summary_by_instance_func_win.result create mode 100644 mysql-test/suite/perfschema/r/stage_mdl_function.result create mode 100644 mysql-test/suite/perfschema/r/stage_mdl_global.result create mode 100644 mysql-test/suite/perfschema/r/stage_mdl_procedure.result create mode 100644 mysql-test/suite/perfschema/r/stage_mdl_table.result create mode 100644 mysql-test/suite/perfschema/r/start_server_1_digest.result create mode 100644 mysql-test/suite/perfschema/r/start_server_disable_idle.result create mode 100644 mysql-test/suite/perfschema/r/start_server_disable_stages.result create mode 100644 mysql-test/suite/perfschema/r/start_server_disable_statements.result create mode 100644 mysql-test/suite/perfschema/r/start_server_disable_transactions.result create mode 100644 mysql-test/suite/perfschema/r/start_server_disable_waits.result create mode 100644 mysql-test/suite/perfschema/r/start_server_innodb.result create mode 100644 mysql-test/suite/perfschema/r/start_server_low_digest.result create mode 100644 mysql-test/suite/perfschema/r/start_server_low_digest_sql_length.result create mode 100644 mysql-test/suite/perfschema/r/start_server_low_index.result create mode 100644 mysql-test/suite/perfschema/r/start_server_low_table_lock.result create mode 100644 mysql-test/suite/perfschema/r/start_server_no_account.result create mode 100644 mysql-test/suite/perfschema/r/start_server_no_cond_class.result create mode 100644 mysql-test/suite/perfschema/r/start_server_no_cond_inst.result create mode 100644 mysql-test/suite/perfschema/r/start_server_no_digests.result create mode 100644 mysql-test/suite/perfschema/r/start_server_no_file_class.result create mode 100644 mysql-test/suite/perfschema/r/start_server_no_file_inst.result create mode 100644 mysql-test/suite/perfschema/r/start_server_no_host.result create mode 100644 mysql-test/suite/perfschema/r/start_server_no_index.result create mode 100644 mysql-test/suite/perfschema/r/start_server_no_mdl.result create mode 100644 mysql-test/suite/perfschema/r/start_server_no_memory_class.result create mode 100644 mysql-test/suite/perfschema/r/start_server_no_mutex_class.result create mode 100644 mysql-test/suite/perfschema/r/start_server_no_mutex_inst.result create mode 100644 mysql-test/suite/perfschema/r/start_server_no_prepared_stmts_instances.result create mode 100644 mysql-test/suite/perfschema/r/start_server_no_rwlock_class.result create mode 100644 mysql-test/suite/perfschema/r/start_server_no_rwlock_inst.result create mode 100644 mysql-test/suite/perfschema/r/start_server_no_setup_actors.result create mode 100644 mysql-test/suite/perfschema/r/start_server_no_setup_objects.result create mode 100644 mysql-test/suite/perfschema/r/start_server_no_socket_class.result create mode 100644 mysql-test/suite/perfschema/r/start_server_no_socket_inst.result create mode 100644 mysql-test/suite/perfschema/r/start_server_no_stage_class.result create mode 100644 mysql-test/suite/perfschema/r/start_server_no_stages_history.result create mode 100644 mysql-test/suite/perfschema/r/start_server_no_stages_history_long.result create mode 100644 mysql-test/suite/perfschema/r/start_server_no_statement_class.result create mode 100644 mysql-test/suite/perfschema/r/start_server_no_statements_history.result create mode 100644 mysql-test/suite/perfschema/r/start_server_no_statements_history_long.result create mode 100644 mysql-test/suite/perfschema/r/start_server_no_table_hdl.result create mode 100644 mysql-test/suite/perfschema/r/start_server_no_table_inst.result create mode 100644 mysql-test/suite/perfschema/r/start_server_no_table_lock.result create mode 100644 mysql-test/suite/perfschema/r/start_server_no_thread_class.result create mode 100644 mysql-test/suite/perfschema/r/start_server_no_thread_inst.result create mode 100644 mysql-test/suite/perfschema/r/start_server_no_transactions_history.result create mode 100644 mysql-test/suite/perfschema/r/start_server_no_transactions_history_long.result create mode 100644 mysql-test/suite/perfschema/r/start_server_no_user.result create mode 100644 mysql-test/suite/perfschema/r/start_server_no_waits_history.result create mode 100644 mysql-test/suite/perfschema/r/start_server_no_waits_history_long.result create mode 100644 mysql-test/suite/perfschema/r/start_server_nothing.result create mode 100644 mysql-test/suite/perfschema/r/start_server_off.result create mode 100644 mysql-test/suite/perfschema/r/start_server_on.result create mode 100644 mysql-test/suite/perfschema/r/start_server_variables.result create mode 100644 mysql-test/suite/perfschema/r/start_server_zero_digest_sql_length.result create mode 100644 mysql-test/suite/perfschema/r/statement_digest.result create mode 100644 mysql-test/suite/perfschema/r/statement_digest_charset.result create mode 100644 mysql-test/suite/perfschema/r/statement_digest_consumers.result create mode 100644 mysql-test/suite/perfschema/r/statement_digest_consumers2.result create mode 100644 mysql-test/suite/perfschema/r/statement_digest_long_query.result create mode 100644 mysql-test/suite/perfschema/r/statement_program_concurrency.result create mode 100644 mysql-test/suite/perfschema/r/statement_program_lost_inst.result create mode 100644 mysql-test/suite/perfschema/r/statement_program_nested.result create mode 100644 mysql-test/suite/perfschema/r/statement_program_nesting_event_check.result create mode 100644 mysql-test/suite/perfschema/r/statement_program_non_nested.result create mode 100644 mysql-test/suite/perfschema/r/status_reprepare.result create mode 100644 mysql-test/suite/perfschema/r/sxlock_func.result create mode 100644 mysql-test/suite/perfschema/r/table_aggregate_global_2u_2t.result create mode 100644 mysql-test/suite/perfschema/r/table_aggregate_global_2u_3t.result create mode 100644 mysql-test/suite/perfschema/r/table_aggregate_global_4u_2t.result create mode 100644 mysql-test/suite/perfschema/r/table_aggregate_global_4u_3t.result create mode 100644 mysql-test/suite/perfschema/r/table_aggregate_hist_2u_2t.result create mode 100644 mysql-test/suite/perfschema/r/table_aggregate_hist_2u_3t.result create mode 100644 mysql-test/suite/perfschema/r/table_aggregate_hist_4u_2t.result create mode 100644 mysql-test/suite/perfschema/r/table_aggregate_hist_4u_3t.result create mode 100644 mysql-test/suite/perfschema/r/table_aggregate_off.result create mode 100644 mysql-test/suite/perfschema/r/table_aggregate_thread_2u_2t.result create mode 100644 mysql-test/suite/perfschema/r/table_aggregate_thread_2u_3t.result create mode 100644 mysql-test/suite/perfschema/r/table_aggregate_thread_4u_2t.result create mode 100644 mysql-test/suite/perfschema/r/table_aggregate_thread_4u_3t.result create mode 100644 mysql-test/suite/perfschema/r/table_io_aggregate_global_2u_2t.result create mode 100644 mysql-test/suite/perfschema/r/table_io_aggregate_global_2u_3t.result create mode 100644 mysql-test/suite/perfschema/r/table_io_aggregate_global_4u_2t.result create mode 100644 mysql-test/suite/perfschema/r/table_io_aggregate_global_4u_3t.result create mode 100644 mysql-test/suite/perfschema/r/table_io_aggregate_hist_2u_2t.result create mode 100644 mysql-test/suite/perfschema/r/table_io_aggregate_hist_2u_3t.result create mode 100644 mysql-test/suite/perfschema/r/table_io_aggregate_hist_4u_2t.result create mode 100644 mysql-test/suite/perfschema/r/table_io_aggregate_hist_4u_3t.result create mode 100644 mysql-test/suite/perfschema/r/table_io_aggregate_thread_2u_2t.result create mode 100644 mysql-test/suite/perfschema/r/table_io_aggregate_thread_2u_3t.result create mode 100644 mysql-test/suite/perfschema/r/table_io_aggregate_thread_4u_2t.result create mode 100644 mysql-test/suite/perfschema/r/table_io_aggregate_thread_4u_3t.result create mode 100644 mysql-test/suite/perfschema/r/table_lock_aggregate_global_2u_2t.result create mode 100644 mysql-test/suite/perfschema/r/table_lock_aggregate_global_2u_3t.result create mode 100644 mysql-test/suite/perfschema/r/table_lock_aggregate_global_4u_2t.result create mode 100644 mysql-test/suite/perfschema/r/table_lock_aggregate_global_4u_3t.result create mode 100644 mysql-test/suite/perfschema/r/table_lock_aggregate_hist_2u_2t.result create mode 100644 mysql-test/suite/perfschema/r/table_lock_aggregate_hist_2u_3t.result create mode 100644 mysql-test/suite/perfschema/r/table_lock_aggregate_hist_4u_2t.result create mode 100644 mysql-test/suite/perfschema/r/table_lock_aggregate_hist_4u_3t.result create mode 100644 mysql-test/suite/perfschema/r/table_lock_aggregate_thread_2u_2t.result create mode 100644 mysql-test/suite/perfschema/r/table_lock_aggregate_thread_2u_3t.result create mode 100644 mysql-test/suite/perfschema/r/table_lock_aggregate_thread_4u_2t.result create mode 100644 mysql-test/suite/perfschema/r/table_lock_aggregate_thread_4u_3t.result create mode 100644 mysql-test/suite/perfschema/r/table_name.result create mode 100644 mysql-test/suite/perfschema/r/table_schema.result create mode 100644 mysql-test/suite/perfschema/r/temp_table_io.result create mode 100644 mysql-test/suite/perfschema/r/thread_cache.result create mode 100644 mysql-test/suite/perfschema/r/thread_misc.result create mode 100644 mysql-test/suite/perfschema/r/threads_history.result create mode 100644 mysql-test/suite/perfschema/r/threads_innodb.result create mode 100644 mysql-test/suite/perfschema/r/threads_insert_delayed.result create mode 100644 mysql-test/suite/perfschema/r/threads_mysql.result create mode 100644 mysql-test/suite/perfschema/r/threads_mysql_freebsd.result create mode 100644 mysql-test/suite/perfschema/r/threads_mysql_linux.result create mode 100644 mysql-test/suite/perfschema/r/threads_mysql_windows.result create mode 100644 mysql-test/suite/perfschema/r/transaction.result create mode 100644 mysql-test/suite/perfschema/r/transaction_gtid.result create mode 100644 mysql-test/suite/perfschema/r/transaction_nested_events.result create mode 100644 mysql-test/suite/perfschema/r/trigger_table_io.result create mode 100644 mysql-test/suite/perfschema/r/unary_digest.result create mode 100644 mysql-test/suite/perfschema/r/update_order-3837.result create mode 100644 mysql-test/suite/perfschema/r/user_var_func.result create mode 100644 mysql-test/suite/perfschema/r/view_table_io.result (limited to 'mysql-test/suite/perfschema/r') diff --git a/mysql-test/suite/perfschema/r/all_tests.result b/mysql-test/suite/perfschema/r/all_tests.result new file mode 100644 index 00000000..6b343d9d --- /dev/null +++ b/mysql-test/suite/perfschema/r/all_tests.result @@ -0,0 +1,24 @@ +drop table if exists t1; +drop table if exists t2; +create table t1 (test_name text); +create table t2 (test_name text); +load data infile "/tmp/perfschema-all_tests.txt" into table t1; +insert into t2 select concat('ddl_', table_name, '.test') from information_schema.tables +where table_schema='performance_schema'; +insert into t2 select concat('dml_', table_name, '.test') from information_schema.tables +where table_schema='performance_schema'; +update t2 set test_name= replace(test_name, "events_waits_summary_", "ews_"); +update t2 set test_name= replace(test_name, "events_stages_summary_", "esgs_"); +update t2 set test_name= replace(test_name, "events_statements_summary_", "esms_"); +update t2 set test_name= replace(test_name, "events_transactions_summary_", "ets_"); +update t2 set test_name= replace(test_name, "file_summary_", "fs_"); +update t2 set test_name= replace(test_name, "objects_summary_", "os_"); +update t2 set test_name= replace(test_name, "table_io_waits_summary_", "tiws_"); +update t2 set test_name= replace(test_name, "table_lock_waits_summary_", "tlws_"); +update t2 set test_name= replace(test_name, "memory_summary_", "mems_"); +update t2 set test_name= replace(test_name, "user_variables_", "uvar_"); +delete from t2 where t2.test_name in (select t1.test_name from t1); +select test_name as `MISSING DDL/DML TESTS` from t2; +MISSING DDL/DML TESTS +drop table t1; +drop table t2; diff --git a/mysql-test/suite/perfschema/r/alter_table_progress.result b/mysql-test/suite/perfschema/r/alter_table_progress.result new file mode 100644 index 00000000..08c2c3a6 --- /dev/null +++ b/mysql-test/suite/perfschema/r/alter_table_progress.result @@ -0,0 +1,100 @@ +connect con1, localhost, root, , ; +drop table if exists t1; +create table t1(a int) engine = myisam; +insert into t1 values (1), (2), (3), (4), (5); +connection default; +update performance_schema.threads +set instrumented = 'NO' + where processlist_id = connection_id(); +truncate table performance_schema.events_statements_history_long; +truncate table performance_schema.events_stages_history_long; +connection con1; +SET DEBUG_SYNC='RESET'; +SET DEBUG_SYNC='copy_data_between_tables_before SIGNAL found_row WAIT_FOR wait_row EXECUTE 5'; +ALTER TABLE t1 engine = innodb;; +connection default; +SET DEBUG_SYNC='now WAIT_FOR found_row'; +select event_id from performance_schema.events_statements_current +where thread_id = @con1_thread_id into @con1_stmt_id; +Warnings: +Warning 1287 ' INTO FROM...' instead +select EVENT_NAME, WORK_COMPLETED, WORK_ESTIMATED +from performance_schema.events_stages_current +where (thread_id = @con1_thread_id); +EVENT_NAME WORK_COMPLETED WORK_ESTIMATED +stage/sql/copy to tmp table 0 5 +SET DEBUG_SYNC='now SIGNAL wait_row'; +SET DEBUG_SYNC='now WAIT_FOR found_row'; +select EVENT_NAME, WORK_COMPLETED, WORK_ESTIMATED +from performance_schema.events_stages_current +where (thread_id = @con1_thread_id); +EVENT_NAME WORK_COMPLETED WORK_ESTIMATED +stage/sql/copy to tmp table 1 5 +SET DEBUG_SYNC='now SIGNAL wait_row'; +SET DEBUG_SYNC='now WAIT_FOR found_row'; +select EVENT_NAME, WORK_COMPLETED, WORK_ESTIMATED +from performance_schema.events_stages_current +where (thread_id = @con1_thread_id); +EVENT_NAME WORK_COMPLETED WORK_ESTIMATED +stage/sql/copy to tmp table 2 5 +SET DEBUG_SYNC='now SIGNAL wait_row'; +SET DEBUG_SYNC='now WAIT_FOR found_row'; +select EVENT_NAME, WORK_COMPLETED, WORK_ESTIMATED +from performance_schema.events_stages_current +where (thread_id = @con1_thread_id); +EVENT_NAME WORK_COMPLETED WORK_ESTIMATED +stage/sql/copy to tmp table 3 5 +SET DEBUG_SYNC='now SIGNAL wait_row'; +SET DEBUG_SYNC='now WAIT_FOR found_row'; +select EVENT_NAME, WORK_COMPLETED, WORK_ESTIMATED +from performance_schema.events_stages_current +where (thread_id = @con1_thread_id); +EVENT_NAME WORK_COMPLETED WORK_ESTIMATED +stage/sql/copy to tmp table 4 5 +SET DEBUG_SYNC='now SIGNAL wait_row'; +connection con1; +select "After payload"; +After payload +After payload +connection default; +# Dumping ALTER TABLE stages +select EVENT_NAME, WORK_COMPLETED, WORK_ESTIMATED +from performance_schema.events_stages_history_long +where (thread_id = @con1_thread_id) +and (nesting_event_id = @con1_stmt_id) +order by thread_id, event_id; +EVENT_NAME WORK_COMPLETED WORK_ESTIMATED +stage/sql/starting NULL NULL +stage/sql/checking permissions NULL NULL +stage/sql/init for update NULL NULL +stage/sql/Opening tables NULL NULL +stage/sql/After opening tables NULL NULL +stage/sql/setup NULL NULL +stage/sql/creating table NULL NULL +stage/sql/After create NULL NULL +stage/sql/System lock NULL NULL +stage/sql/table lock NULL NULL +stage/sql/After create NULL NULL +stage/sql/copy to tmp table 5 5 +stage/sql/Enabling keys NULL NULL +stage/sql/Rename result table NULL NULL +stage/sql/Unlocking tables NULL NULL +stage/sql/Rename result table NULL NULL +stage/sql/End of update loop NULL NULL +stage/sql/Query end NULL NULL +stage/sql/Commit NULL NULL +stage/sql/closing tables NULL NULL +stage/sql/Unlocking tables NULL NULL +stage/sql/closing tables NULL NULL +stage/sql/Commit implicit NULL NULL +stage/sql/Starting cleanup NULL NULL +stage/sql/Freeing items NULL NULL +stage/sql/Reset for next command NULL NULL +SET DEBUG_SYNC='RESET'; +connection con1; +drop table t1; +disconnect con1; +connection default; +update performance_schema.threads +set instrumented = 'YES' + where processlist_id = connection_id(); diff --git a/mysql-test/suite/perfschema/r/bad_option.result b/mysql-test/suite/perfschema/r/bad_option.result new file mode 100644 index 00000000..b14dad96 --- /dev/null +++ b/mysql-test/suite/perfschema/r/bad_option.result @@ -0,0 +1,8 @@ +FOUND 1 /\[ERROR\].*unknown variable 'performance-schema-enabled=maybe'/ in my_restart.err +# Server start with invalid startup option value 'performance-schema-enabled=maybe' : pass +FOUND 1 /\[ERROR\].*unknown variable 'performance-schema-max_=12'/ in my_restart.err +# Server start with ambigous startup option 'performance-schema-max_=12' : pass +FOUND 1 /\[ERROR\].*unknown option '--performance-schema-unknown_99'/ in my_restart.err +# Server start with invalid startup option '--performance-schema-unknown_99' : pass +FOUND 1 /Can.t change dir to .*bad_option_h_param/ in my_restart.err +# Server start with invalid startup option value '--datadir=bad_option_h_param' : pass diff --git a/mysql-test/suite/perfschema/r/batch_table_io_func.result b/mysql-test/suite/perfschema/r/batch_table_io_func.result new file mode 100644 index 00000000..212c08c7 --- /dev/null +++ b/mysql-test/suite/perfschema/r/batch_table_io_func.result @@ -0,0 +1,195 @@ +UPDATE performance_schema.setup_instruments SET enabled = 'NO', timed = 'YES'; +UPDATE performance_schema.setup_instruments SET enabled = 'YES' +WHERE name in ('wait/io/table/sql/handler', +'wait/lock/table/sql/handler'); +drop procedure if exists before_payload; +drop procedure if exists after_payload; +create procedure before_payload() +begin +TRUNCATE TABLE performance_schema.table_io_waits_summary_by_index_usage; +TRUNCATE TABLE performance_schema.table_io_waits_summary_by_table; +TRUNCATE TABLE performance_schema.events_waits_history_long; +TRUNCATE TABLE performance_schema.events_waits_history; +TRUNCATE TABLE performance_schema.events_waits_current; +end +$$ +create procedure after_payload() +begin +select count(1) as number_seen, +OBJECT_TYPE, OBJECT_SCHEMA, OBJECT_NAME, INDEX_NAME, +OPERATION, NUMBER_OF_BYTES +from performance_schema.events_waits_history_long +where OBJECT_SCHEMA = "test" + group by OBJECT_TYPE, OBJECT_SCHEMA, OBJECT_NAME, INDEX_NAME, OPERATION, NUMBER_OF_BYTES; +select OBJECT_TYPE, OBJECT_SCHEMA, OBJECT_NAME, INDEX_NAME, +COUNT_STAR, COUNT_READ, COUNT_WRITE +from performance_schema.table_io_waits_summary_by_index_usage +where OBJECT_SCHEMA = "test" + order by OBJECT_TYPE, OBJECT_SCHEMA, OBJECT_NAME, INDEX_NAME; +select OBJECT_TYPE, OBJECT_SCHEMA, OBJECT_NAME, +COUNT_STAR, COUNT_READ, COUNT_WRITE +from performance_schema.table_io_waits_summary_by_table +where OBJECT_SCHEMA = "test" + order by OBJECT_TYPE, OBJECT_SCHEMA, OBJECT_NAME; +end +$$ +drop table if exists t1; +drop table if exists t2; +drop table if exists t3; +create table t0(v int); +create table t1(id1 int, a int); +create table t2(id1 int, id2 int, b int); +create table t3(id2 int, id3 int, c int); +insert into t0 values +(0), (1), (2), (3), (4), +(5), (6), (7), (8), (9); +insert into t1(id1, a) +select v, 100*v from t0; +insert into t2(id1, id2, b) +select X.v, 10*X.v + Y.v, 100*X.v + 10*Y.v +from t0 X, t0 Y; +insert into t3(id2, id3, c) +select 10*X.v + Y.v, 100*X.v + 10*Y.v + Z.v, 100*X.v + 10*Y.v + Z.v +from t0 X, t0 Y, t0 Z; +analyze table t1; +Table Op Msg_type Msg_text +test.t1 analyze status Engine-independent statistics collected +test.t1 analyze status OK +analyze table t2; +Table Op Msg_type Msg_text +test.t2 analyze status Engine-independent statistics collected +test.t2 analyze status OK +analyze table t3; +Table Op Msg_type Msg_text +test.t3 analyze status Engine-independent statistics collected +test.t3 analyze status OK +select * from t1 order by a; +id1 a +0 0 +1 100 +2 200 +3 300 +4 400 +5 500 +6 600 +7 700 +8 800 +9 900 +select * from t2 +where (b >= 180) and (b <= 220) +order by b; +id1 id2 b +1 18 180 +1 19 190 +2 20 200 +2 21 210 +2 22 220 +select * from t3 +where (c >= 587) and (c <= 612) +order by c; +id2 id3 c +58 587 587 +58 588 588 +58 589 589 +59 590 590 +59 591 591 +59 592 592 +59 593 593 +59 594 594 +59 595 595 +59 596 596 +59 597 597 +59 598 598 +59 599 599 +60 600 600 +60 601 601 +60 602 602 +60 603 603 +60 604 604 +60 605 605 +60 606 606 +60 607 607 +60 608 608 +60 609 609 +61 610 610 +61 611 611 +61 612 612 +explain extended select t1.*, t2.*, t3.* +from t1 join t2 using (id1) join t3 using (id2); +id select_type table type possible_keys key key_len ref rows filtered Extra +1 SIMPLE t1 ALL NULL NULL NULL NULL 10 100.00 +1 SIMPLE t2 ALL NULL NULL NULL NULL 100 100.00 Using where; Using join buffer (flat, BNL join) +1 SIMPLE t3 ALL NULL NULL NULL NULL 1000 100.00 Using where; Using join buffer (incremental, BNL join) +Warnings: +Note 1003 select `test`.`t1`.`id1` AS `id1`,`test`.`t1`.`a` AS `a`,`test`.`t2`.`id1` AS `id1`,`test`.`t2`.`id2` AS `id2`,`test`.`t2`.`b` AS `b`,`test`.`t3`.`id2` AS `id2`,`test`.`t3`.`id3` AS `id3`,`test`.`t3`.`c` AS `c` from `test`.`t1` join `test`.`t2` join `test`.`t3` where `test`.`t3`.`id2` = `test`.`t2`.`id2` and `test`.`t2`.`id1` = `test`.`t1`.`id1` +call before_payload(); +select t1.*, t2.*, t3.* +from t1 join t2 using (id1) join t3 using (id2); +call after_payload(); +number_seen OBJECT_TYPE OBJECT_SCHEMA OBJECT_NAME INDEX_NAME OPERATION NUMBER_OF_BYTES +11 TABLE test t1 NULL fetch 1 +1 TABLE test t1 NULL read external NULL +1 TABLE test t1 NULL read normal NULL +101 TABLE test t2 NULL fetch 1 +1 TABLE test t2 NULL read external NULL +1 TABLE test t2 NULL read normal NULL +1 TABLE test t3 NULL fetch 1000 +1 TABLE test t3 NULL read external NULL +1 TABLE test t3 NULL read normal NULL +OBJECT_TYPE OBJECT_SCHEMA OBJECT_NAME INDEX_NAME COUNT_STAR COUNT_READ COUNT_WRITE +TABLE test t0 NULL 0 0 0 +TABLE test t1 NULL 11 11 0 +TABLE test t2 NULL 101 101 0 +TABLE test t3 NULL 1000 1000 0 +OBJECT_TYPE OBJECT_SCHEMA OBJECT_NAME COUNT_STAR COUNT_READ COUNT_WRITE +TABLE test t0 0 0 0 +TABLE test t1 11 11 0 +TABLE test t2 101 101 0 +TABLE test t3 1000 1000 0 +alter table t1 add unique index(id1); +alter table t2 add unique index(id2); +alter table t2 add index(id1); +alter table t3 add unique index(id3); +alter table t3 add index(id2); +explain extended select t1.*, t2.*, t3.* +from t1 join t2 using (id1) join t3 using (id2); +id select_type table type possible_keys key key_len ref rows filtered Extra +1 SIMPLE t1 ALL id1 NULL NULL NULL 10 100.00 Using where +1 SIMPLE t2 ref id2,id1 id1 5 test.t1.id1 10 100.00 Using where +1 SIMPLE t3 ref id2 id2 5 test.t2.id2 10 100.00 +Warnings: +Note 1003 select `test`.`t1`.`id1` AS `id1`,`test`.`t1`.`a` AS `a`,`test`.`t2`.`id1` AS `id1`,`test`.`t2`.`id2` AS `id2`,`test`.`t2`.`b` AS `b`,`test`.`t3`.`id2` AS `id2`,`test`.`t3`.`id3` AS `id3`,`test`.`t3`.`c` AS `c` from `test`.`t1` join `test`.`t2` join `test`.`t3` where `test`.`t3`.`id2` = `test`.`t2`.`id2` and `test`.`t2`.`id1` = `test`.`t1`.`id1` +call before_payload(); +select t1.*, t2.*, t3.* +from t1 join t2 using (id1) join t3 using (id2); +call after_payload(); +number_seen OBJECT_TYPE OBJECT_SCHEMA OBJECT_NAME INDEX_NAME OPERATION NUMBER_OF_BYTES +11 TABLE test t1 NULL fetch 1 +1 TABLE test t1 id1 read external NULL +1 TABLE test t1 id1 read normal NULL +110 TABLE test t2 id1 fetch 1 +1 TABLE test t2 id2 read external NULL +1 TABLE test t2 id2 read normal NULL +100 TABLE test t3 id2 fetch 10 +1 TABLE test t3 id3 read external NULL +1 TABLE test t3 id3 read normal NULL +OBJECT_TYPE OBJECT_SCHEMA OBJECT_NAME INDEX_NAME COUNT_STAR COUNT_READ COUNT_WRITE +TABLE test t0 NULL 0 0 0 +TABLE test t1 NULL 11 11 0 +TABLE test t1 id1 0 0 0 +TABLE test t2 id1 110 110 0 +TABLE test t2 id2 0 0 0 +TABLE test t3 id2 1000 1000 0 +TABLE test t3 id3 0 0 0 +OBJECT_TYPE OBJECT_SCHEMA OBJECT_NAME COUNT_STAR COUNT_READ COUNT_WRITE +TABLE test t0 0 0 0 +TABLE test t1 11 11 0 +TABLE test t2 110 110 0 +TABLE test t3 1000 1000 0 +drop table t0; +drop table t1; +drop table t2; +drop table t3; +drop procedure before_payload; +drop procedure after_payload; +UPDATE performance_schema.setup_instruments SET enabled = 'YES', timed = 'YES'; diff --git a/mysql-test/suite/perfschema/r/binlog_edge_mix.result b/mysql-test/suite/perfschema/r/binlog_edge_mix.result new file mode 100644 index 00000000..e4b95cb6 --- /dev/null +++ b/mysql-test/suite/perfschema/r/binlog_edge_mix.result @@ -0,0 +1,178 @@ +set binlog_format=mixed; +RESET MASTER; +drop database if exists my_replicated_db; +call mtr.add_suppression("Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT"); +create database my_replicated_db; +create table my_replicated_db.my_tx_table(a bigint) engine = innodb; +create table my_replicated_db.my_non_tx_table(a bigint) engine = myisam; +create table my_replicated_db.my_bh_table(a bigint) engine = blackhole; +use test; +drop table if exists marker_start; +Warnings: +Note 1051 Unknown table 'test.marker_start' +use my_replicated_db; +insert into my_tx_table(a) +values (1000), (2000), (3000); +insert into my_non_tx_table(a) +values (1000), (2000), (3000); +insert into my_bh_table(a) +values (1000), (2000), (3000); +use test; +drop table if exists marker_insert_select; +Warnings: +Note 1051 Unknown table 'test.marker_insert_select' +use my_replicated_db; +insert into my_tx_table(a) +select thread_id from performance_schema.threads; +insert into my_non_tx_table(a) +select thread_id from performance_schema.threads; +insert into my_bh_table(a) +select thread_id from performance_schema.threads; +insert into my_tx_table(a) +select id from information_schema.processlist; +insert into my_non_tx_table(a) +select id from information_schema.processlist; +insert into my_bh_table(a) +select id from information_schema.processlist; +insert into my_tx_table(a) +select thread_id from mysql.general_log; +insert into my_non_tx_table(a) +select thread_id from mysql.general_log; +insert into my_bh_table(a) +select thread_id from mysql.general_log; +insert into my_tx_table(a) +select thread_id from mysql.slow_log; +insert into my_non_tx_table(a) +select thread_id from mysql.slow_log; +insert into my_bh_table(a) +select thread_id from mysql.slow_log; +insert into my_tx_table(a) +select Relay_log_pos from mysql.slave_relay_log_info; +insert into my_non_tx_table(a) +select Relay_log_pos from mysql.slave_relay_log_info; +insert into my_bh_table(a) +select Relay_log_pos from mysql.slave_relay_log_info; +insert into my_tx_table(a) +select Master_log_pos from mysql.slave_master_info; +insert into my_non_tx_table(a) +select Master_log_pos from mysql.slave_master_info; +insert into my_bh_table(a) +select Master_log_pos from mysql.slave_master_info; +insert into my_tx_table(a) +select Relay_log_pos from mysql.slave_worker_info; +insert into my_non_tx_table(a) +select Relay_log_pos from mysql.slave_worker_info; +insert into my_bh_table(a) +select Relay_log_pos from mysql.slave_worker_info; +use test; +drop table if exists marker_multi_update; +Warnings: +Note 1051 Unknown table 'test.marker_multi_update' +use my_replicated_db; +update my_tx_table, performance_schema.setup_instruments +set my_tx_table.a = my_tx_table.a + 1, +performance_schema.setup_instruments.timed= 'NO'; +update my_non_tx_table, performance_schema.setup_instruments +set my_non_tx_table.a = my_non_tx_table.a + 1, +performance_schema.setup_instruments.timed= 'NO'; +update my_bh_table, performance_schema.setup_instruments +set my_bh_table.a = my_bh_table.a + 1, +performance_schema.setup_instruments.timed= 'NO'; +use test; +drop table if exists marker_multi_delete; +Warnings: +Note 1051 Unknown table 'test.marker_multi_delete' +use my_replicated_db; +insert into performance_schema.setup_actors +values ('FOO', 'FOO', 'FOO', 'YES', 'YES'); +delete my_tx_table.*, performance_schema.setup_actors.* +from my_tx_table, performance_schema.setup_actors +where my_tx_table.a != 1000 +or performance_schema.setup_actors.role='FOO'; +insert into performance_schema.setup_actors +values ('BAR', 'BAR', 'BAR', 'YES', 'YES'); +delete my_non_tx_table.*, performance_schema.setup_actors.* +from my_non_tx_table, performance_schema.setup_actors +where my_non_tx_table.a != 1000 +or performance_schema.setup_actors.role='BAR'; +insert into performance_schema.setup_actors +values ('BAZ', 'BAZ', 'BAZ', 'YES', 'YES'); +delete my_bh_table.*, performance_schema.setup_actors.* +from my_bh_table, performance_schema.setup_actors +where my_bh_table.a != 1000 +or performance_schema.setup_actors.role='BAZ'; +use test; +drop table if exists marker_end; +Warnings: +Note 1051 Unknown table 'test.marker_end' +drop database my_replicated_db; +include/show_binlog_events.inc +Log_name Pos Event_type Server_id End_log_pos Info +master-bin.000001 # Query # # drop database if exists my_replicated_db +master-bin.000001 # Query # # BEGIN +master-bin.000001 # Query # # use `mtr`; INSERT INTO test_suppressions (pattern) VALUES ( NAME_CONST('pattern',_latin1'Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT' COLLATE 'latin1_swedish_ci')) +master-bin.000001 # Query # # COMMIT +master-bin.000001 # Query # # create database my_replicated_db +master-bin.000001 # Query # # use `test`; create table my_replicated_db.my_tx_table(a bigint) engine = innodb +master-bin.000001 # Query # # use `test`; create table my_replicated_db.my_non_tx_table(a bigint) engine = myisam +master-bin.000001 # Query # # use `test`; create table my_replicated_db.my_bh_table(a bigint) engine = blackhole +master-bin.000001 # Query # # use `test`; DROP TABLE IF EXISTS `marker_start` /* generated by server */ +master-bin.000001 # Query # # BEGIN +master-bin.000001 # Query # # use `my_replicated_db`; insert into my_tx_table(a) +values (1000), (2000), (3000) +master-bin.000001 # Xid # # COMMIT /* XID */ +master-bin.000001 # Query # # BEGIN +master-bin.000001 # Query # # use `my_replicated_db`; insert into my_non_tx_table(a) +values (1000), (2000), (3000) +master-bin.000001 # Query # # COMMIT +master-bin.000001 # Query # # BEGIN +master-bin.000001 # Query # # use `my_replicated_db`; insert into my_bh_table(a) +values (1000), (2000), (3000) +master-bin.000001 # Query # # COMMIT +master-bin.000001 # Query # # use `test`; DROP TABLE IF EXISTS `marker_insert_select` /* generated by server */ +master-bin.000001 # Query # # BEGIN +master-bin.000001 # Table_map # # table_id: # (my_replicated_db.my_tx_table) +master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F +master-bin.000001 # Xid # # COMMIT /* XID */ +master-bin.000001 # Query # # BEGIN +master-bin.000001 # Table_map # # table_id: # (my_replicated_db.my_non_tx_table) +master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F +master-bin.000001 # Query # # COMMIT +master-bin.000001 # Query # # BEGIN +master-bin.000001 # Table_map # # table_id: # (my_replicated_db.my_bh_table) +master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F +master-bin.000001 # Query # # COMMIT +master-bin.000001 # Query # # BEGIN +master-bin.000001 # Query # # use `my_replicated_db`; insert into my_tx_table(a) +select id from information_schema.processlist +master-bin.000001 # Xid # # COMMIT /* XID */ +master-bin.000001 # Query # # BEGIN +master-bin.000001 # Query # # use `my_replicated_db`; insert into my_non_tx_table(a) +select id from information_schema.processlist +master-bin.000001 # Query # # COMMIT +master-bin.000001 # Query # # BEGIN +master-bin.000001 # Query # # use `my_replicated_db`; insert into my_bh_table(a) +select id from information_schema.processlist +master-bin.000001 # Query # # COMMIT +master-bin.000001 # Query # # use `test`; DROP TABLE IF EXISTS `marker_multi_update` /* generated by server */ +master-bin.000001 # Query # # BEGIN +master-bin.000001 # Table_map # # table_id: # (my_replicated_db.my_tx_table) +master-bin.000001 # Update_rows # # table_id: # flags: STMT_END_F +master-bin.000001 # Xid # # COMMIT /* XID */ +master-bin.000001 # Query # # BEGIN +master-bin.000001 # Table_map # # table_id: # (my_replicated_db.my_non_tx_table) +master-bin.000001 # Update_rows # # table_id: # flags: STMT_END_F +master-bin.000001 # Query # # COMMIT +master-bin.000001 # Query # # use `test`; DROP TABLE IF EXISTS `marker_multi_delete` /* generated by server */ +master-bin.000001 # Query # # BEGIN +master-bin.000001 # Table_map # # table_id: # (my_replicated_db.my_tx_table) +master-bin.000001 # Delete_rows # # table_id: # flags: STMT_END_F +master-bin.000001 # Xid # # COMMIT /* XID */ +master-bin.000001 # Query # # BEGIN +master-bin.000001 # Table_map # # table_id: # (my_replicated_db.my_non_tx_table) +master-bin.000001 # Delete_rows # # table_id: # flags: STMT_END_F +master-bin.000001 # Query # # COMMIT +master-bin.000001 # Query # # use `test`; DROP TABLE IF EXISTS `marker_end` /* generated by server */ +master-bin.000001 # Query # # drop database my_replicated_db +truncate table performance_schema.setup_actors; +insert into performance_schema.setup_actors values ('%', '%', '%', 'YES', 'YES'); diff --git a/mysql-test/suite/perfschema/r/binlog_edge_row.result b/mysql-test/suite/perfschema/r/binlog_edge_row.result new file mode 100644 index 00000000..52296de4 --- /dev/null +++ b/mysql-test/suite/perfschema/r/binlog_edge_row.result @@ -0,0 +1,183 @@ +set binlog_format=row; +RESET MASTER; +drop database if exists my_replicated_db; +call mtr.add_suppression("Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT"); +create database my_replicated_db; +create table my_replicated_db.my_tx_table(a bigint) engine = innodb; +create table my_replicated_db.my_non_tx_table(a bigint) engine = myisam; +create table my_replicated_db.my_bh_table(a bigint) engine = blackhole; +use test; +drop table if exists marker_start; +Warnings: +Note 1051 Unknown table 'test.marker_start' +use my_replicated_db; +insert into my_tx_table(a) +values (1000), (2000), (3000); +insert into my_non_tx_table(a) +values (1000), (2000), (3000); +insert into my_bh_table(a) +values (1000), (2000), (3000); +use test; +drop table if exists marker_insert_select; +Warnings: +Note 1051 Unknown table 'test.marker_insert_select' +use my_replicated_db; +insert into my_tx_table(a) +select thread_id from performance_schema.threads; +insert into my_non_tx_table(a) +select thread_id from performance_schema.threads; +insert into my_bh_table(a) +select thread_id from performance_schema.threads; +insert into my_tx_table(a) +select id from information_schema.processlist; +insert into my_non_tx_table(a) +select id from information_schema.processlist; +insert into my_bh_table(a) +select id from information_schema.processlist; +insert into my_tx_table(a) +select thread_id from mysql.general_log; +insert into my_non_tx_table(a) +select thread_id from mysql.general_log; +insert into my_bh_table(a) +select thread_id from mysql.general_log; +insert into my_tx_table(a) +select thread_id from mysql.slow_log; +insert into my_non_tx_table(a) +select thread_id from mysql.slow_log; +insert into my_bh_table(a) +select thread_id from mysql.slow_log; +insert into my_tx_table(a) +select Relay_log_pos from mysql.slave_relay_log_info; +insert into my_non_tx_table(a) +select Relay_log_pos from mysql.slave_relay_log_info; +insert into my_bh_table(a) +select Relay_log_pos from mysql.slave_relay_log_info; +insert into my_tx_table(a) +select Master_log_pos from mysql.slave_master_info; +insert into my_non_tx_table(a) +select Master_log_pos from mysql.slave_master_info; +insert into my_bh_table(a) +select Master_log_pos from mysql.slave_master_info; +insert into my_tx_table(a) +select Relay_log_pos from mysql.slave_worker_info; +insert into my_non_tx_table(a) +select Relay_log_pos from mysql.slave_worker_info; +insert into my_bh_table(a) +select Relay_log_pos from mysql.slave_worker_info; +use test; +drop table if exists marker_multi_update; +Warnings: +Note 1051 Unknown table 'test.marker_multi_update' +use my_replicated_db; +update my_tx_table, performance_schema.setup_instruments +set my_tx_table.a = my_tx_table.a + 1, +performance_schema.setup_instruments.timed= 'NO'; +update my_non_tx_table, performance_schema.setup_instruments +set my_non_tx_table.a = my_non_tx_table.a + 1, +performance_schema.setup_instruments.timed= 'NO'; +update my_bh_table, performance_schema.setup_instruments +set my_bh_table.a = my_bh_table.a + 1, +performance_schema.setup_instruments.timed= 'NO'; +Warnings: +Warning 1870 Row events are not logged for UPDATE statements that modify BLACKHOLE tables in row format. Table(s): 'my_bh_table.' +use test; +drop table if exists marker_multi_delete; +Warnings: +Note 1051 Unknown table 'test.marker_multi_delete' +use my_replicated_db; +insert into performance_schema.setup_actors +values ('FOO', 'FOO', 'FOO', 'YES', 'YES'); +delete my_tx_table.*, performance_schema.setup_actors.* +from my_tx_table, performance_schema.setup_actors +where my_tx_table.a != 1000 +or performance_schema.setup_actors.role='FOO'; +insert into performance_schema.setup_actors +values ('BAR', 'BAR', 'BAR', 'YES', 'YES'); +delete my_non_tx_table.*, performance_schema.setup_actors.* +from my_non_tx_table, performance_schema.setup_actors +where my_non_tx_table.a != 1000 +or performance_schema.setup_actors.role='BAR'; +insert into performance_schema.setup_actors +values ('BAZ', 'BAZ', 'BAZ', 'YES', 'YES'); +delete my_bh_table.*, performance_schema.setup_actors.* +from my_bh_table, performance_schema.setup_actors +where my_bh_table.a != 1000 +or performance_schema.setup_actors.role='BAZ'; +Warnings: +Warning 1870 Row events are not logged for DELETE statements that modify BLACKHOLE tables in row format. Table(s): 'my_bh_table.' +use test; +drop table if exists marker_end; +Warnings: +Note 1051 Unknown table 'test.marker_end' +drop database my_replicated_db; +include/show_binlog_events.inc +Log_name Pos Event_type Server_id End_log_pos Info +master-bin.000001 # Query # # drop database if exists my_replicated_db +master-bin.000001 # Query # # BEGIN +master-bin.000001 # Table_map # # table_id: # (mtr.test_suppressions) +master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F +master-bin.000001 # Query # # COMMIT +master-bin.000001 # Query # # create database my_replicated_db +master-bin.000001 # Query # # use `test`; create table my_replicated_db.my_tx_table(a bigint) engine = innodb +master-bin.000001 # Query # # use `test`; create table my_replicated_db.my_non_tx_table(a bigint) engine = myisam +master-bin.000001 # Query # # use `test`; create table my_replicated_db.my_bh_table(a bigint) engine = blackhole +master-bin.000001 # Query # # use `test`; DROP TABLE IF EXISTS `marker_start` /* generated by server */ +master-bin.000001 # Query # # BEGIN +master-bin.000001 # Table_map # # table_id: # (my_replicated_db.my_tx_table) +master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F +master-bin.000001 # Xid # # COMMIT /* XID */ +master-bin.000001 # Query # # BEGIN +master-bin.000001 # Table_map # # table_id: # (my_replicated_db.my_non_tx_table) +master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F +master-bin.000001 # Query # # COMMIT +master-bin.000001 # Query # # BEGIN +master-bin.000001 # Table_map # # table_id: # (my_replicated_db.my_bh_table) +master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F +master-bin.000001 # Query # # COMMIT +master-bin.000001 # Query # # use `test`; DROP TABLE IF EXISTS `marker_insert_select` /* generated by server */ +master-bin.000001 # Query # # BEGIN +master-bin.000001 # Table_map # # table_id: # (my_replicated_db.my_tx_table) +master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F +master-bin.000001 # Xid # # COMMIT /* XID */ +master-bin.000001 # Query # # BEGIN +master-bin.000001 # Table_map # # table_id: # (my_replicated_db.my_non_tx_table) +master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F +master-bin.000001 # Query # # COMMIT +master-bin.000001 # Query # # BEGIN +master-bin.000001 # Table_map # # table_id: # (my_replicated_db.my_bh_table) +master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F +master-bin.000001 # Query # # COMMIT +master-bin.000001 # Query # # BEGIN +master-bin.000001 # Table_map # # table_id: # (my_replicated_db.my_tx_table) +master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F +master-bin.000001 # Xid # # COMMIT /* XID */ +master-bin.000001 # Query # # BEGIN +master-bin.000001 # Table_map # # table_id: # (my_replicated_db.my_non_tx_table) +master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F +master-bin.000001 # Query # # COMMIT +master-bin.000001 # Query # # BEGIN +master-bin.000001 # Table_map # # table_id: # (my_replicated_db.my_bh_table) +master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F +master-bin.000001 # Query # # COMMIT +master-bin.000001 # Query # # use `test`; DROP TABLE IF EXISTS `marker_multi_update` /* generated by server */ +master-bin.000001 # Query # # BEGIN +master-bin.000001 # Table_map # # table_id: # (my_replicated_db.my_tx_table) +master-bin.000001 # Update_rows # # table_id: # flags: STMT_END_F +master-bin.000001 # Xid # # COMMIT /* XID */ +master-bin.000001 # Query # # BEGIN +master-bin.000001 # Table_map # # table_id: # (my_replicated_db.my_non_tx_table) +master-bin.000001 # Update_rows # # table_id: # flags: STMT_END_F +master-bin.000001 # Query # # COMMIT +master-bin.000001 # Query # # use `test`; DROP TABLE IF EXISTS `marker_multi_delete` /* generated by server */ +master-bin.000001 # Query # # BEGIN +master-bin.000001 # Table_map # # table_id: # (my_replicated_db.my_tx_table) +master-bin.000001 # Delete_rows # # table_id: # flags: STMT_END_F +master-bin.000001 # Xid # # COMMIT /* XID */ +master-bin.000001 # Query # # BEGIN +master-bin.000001 # Table_map # # table_id: # (my_replicated_db.my_non_tx_table) +master-bin.000001 # Delete_rows # # table_id: # flags: STMT_END_F +master-bin.000001 # Query # # COMMIT +master-bin.000001 # Query # # use `test`; DROP TABLE IF EXISTS `marker_end` /* generated by server */ +master-bin.000001 # Query # # drop database my_replicated_db +truncate table performance_schema.setup_actors; +insert into performance_schema.setup_actors values ('%', '%', '%', 'YES', 'YES'); diff --git a/mysql-test/suite/perfschema/r/binlog_edge_stmt.result b/mysql-test/suite/perfschema/r/binlog_edge_stmt.result new file mode 100644 index 00000000..2a096141 --- /dev/null +++ b/mysql-test/suite/perfschema/r/binlog_edge_stmt.result @@ -0,0 +1,258 @@ +set binlog_format=statement; +RESET MASTER; +drop database if exists my_replicated_db; +call mtr.add_suppression("Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT"); +create database my_replicated_db; +create table my_replicated_db.my_tx_table(a bigint) engine = innodb; +create table my_replicated_db.my_non_tx_table(a bigint) engine = myisam; +create table my_replicated_db.my_bh_table(a bigint) engine = blackhole; +use test; +drop table if exists marker_start; +Warnings: +Note 1051 Unknown table 'test.marker_start' +use my_replicated_db; +insert into my_tx_table(a) +values (1000), (2000), (3000); +insert into my_non_tx_table(a) +values (1000), (2000), (3000); +insert into my_bh_table(a) +values (1000), (2000), (3000); +use test; +drop table if exists marker_insert_select; +Warnings: +Note 1051 Unknown table 'test.marker_insert_select' +use my_replicated_db; +insert into my_tx_table(a) +select thread_id from performance_schema.threads; +Warnings: +Note 1592 Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. The statement is unsafe because it uses the general log, slow query log, or performance_schema table(s). This is unsafe because system tables may differ on slaves +insert into my_non_tx_table(a) +select thread_id from performance_schema.threads; +Warnings: +Note 1592 Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. The statement is unsafe because it uses the general log, slow query log, or performance_schema table(s). This is unsafe because system tables may differ on slaves +insert into my_bh_table(a) +select thread_id from performance_schema.threads; +Warnings: +Note 1592 Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. The statement is unsafe because it uses the general log, slow query log, or performance_schema table(s). This is unsafe because system tables may differ on slaves +insert into my_tx_table(a) +select id from information_schema.processlist; +insert into my_non_tx_table(a) +select id from information_schema.processlist; +insert into my_bh_table(a) +select id from information_schema.processlist; +insert into my_tx_table(a) +select thread_id from mysql.general_log; +Warnings: +Note 1592 Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. The statement is unsafe because it uses the general log, slow query log, or performance_schema table(s). This is unsafe because system tables may differ on slaves +insert into my_non_tx_table(a) +select thread_id from mysql.general_log; +Warnings: +Note 1592 Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. The statement is unsafe because it uses the general log, slow query log, or performance_schema table(s). This is unsafe because system tables may differ on slaves +insert into my_bh_table(a) +select thread_id from mysql.general_log; +Warnings: +Note 1592 Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. The statement is unsafe because it uses the general log, slow query log, or performance_schema table(s). This is unsafe because system tables may differ on slaves +insert into my_tx_table(a) +select thread_id from mysql.slow_log; +Warnings: +Note 1592 Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. The statement is unsafe because it uses the general log, slow query log, or performance_schema table(s). This is unsafe because system tables may differ on slaves +insert into my_non_tx_table(a) +select thread_id from mysql.slow_log; +Warnings: +Note 1592 Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. The statement is unsafe because it uses the general log, slow query log, or performance_schema table(s). This is unsafe because system tables may differ on slaves +insert into my_bh_table(a) +select thread_id from mysql.slow_log; +Warnings: +Note 1592 Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. The statement is unsafe because it uses the general log, slow query log, or performance_schema table(s). This is unsafe because system tables may differ on slaves +insert into my_tx_table(a) +select Relay_log_pos from mysql.slave_relay_log_info; +Warnings: +Note 1592 Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. The statement is unsafe because it uses the general log, slow query log, or performance_schema table(s). This is unsafe because system tables may differ on slaves +insert into my_non_tx_table(a) +select Relay_log_pos from mysql.slave_relay_log_info; +Warnings: +Note 1592 Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. The statement is unsafe because it uses the general log, slow query log, or performance_schema table(s). This is unsafe because system tables may differ on slaves +insert into my_bh_table(a) +select Relay_log_pos from mysql.slave_relay_log_info; +Warnings: +Note 1592 Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. The statement is unsafe because it uses the general log, slow query log, or performance_schema table(s). This is unsafe because system tables may differ on slaves +insert into my_tx_table(a) +select Master_log_pos from mysql.slave_master_info; +Warnings: +Note 1592 Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. The statement is unsafe because it uses the general log, slow query log, or performance_schema table(s). This is unsafe because system tables may differ on slaves +insert into my_non_tx_table(a) +select Master_log_pos from mysql.slave_master_info; +Warnings: +Note 1592 Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. The statement is unsafe because it uses the general log, slow query log, or performance_schema table(s). This is unsafe because system tables may differ on slaves +insert into my_bh_table(a) +select Master_log_pos from mysql.slave_master_info; +Warnings: +Note 1592 Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. The statement is unsafe because it uses the general log, slow query log, or performance_schema table(s). This is unsafe because system tables may differ on slaves +insert into my_tx_table(a) +select Relay_log_pos from mysql.slave_worker_info; +Warnings: +Note 1592 Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. The statement is unsafe because it uses the general log, slow query log, or performance_schema table(s). This is unsafe because system tables may differ on slaves +insert into my_non_tx_table(a) +select Relay_log_pos from mysql.slave_worker_info; +Warnings: +Note 1592 Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. The statement is unsafe because it uses the general log, slow query log, or performance_schema table(s). This is unsafe because system tables may differ on slaves +insert into my_bh_table(a) +select Relay_log_pos from mysql.slave_worker_info; +Warnings: +Note 1592 Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. The statement is unsafe because it uses the general log, slow query log, or performance_schema table(s). This is unsafe because system tables may differ on slaves +use test; +drop table if exists marker_multi_update; +Warnings: +Note 1051 Unknown table 'test.marker_multi_update' +use my_replicated_db; +update my_tx_table, performance_schema.setup_instruments +set my_tx_table.a = my_tx_table.a + 1, +performance_schema.setup_instruments.timed= 'NO'; +update my_non_tx_table, performance_schema.setup_instruments +set my_non_tx_table.a = my_non_tx_table.a + 1, +performance_schema.setup_instruments.timed= 'NO'; +update my_bh_table, performance_schema.setup_instruments +set my_bh_table.a = my_bh_table.a + 1, +performance_schema.setup_instruments.timed= 'NO'; +use test; +drop table if exists marker_multi_delete; +Warnings: +Note 1051 Unknown table 'test.marker_multi_delete' +use my_replicated_db; +insert into performance_schema.setup_actors +values ('FOO', 'FOO', 'FOO', 'YES', 'YES'); +delete my_tx_table.*, performance_schema.setup_actors.* +from my_tx_table, performance_schema.setup_actors +where my_tx_table.a != 1000 +or performance_schema.setup_actors.role='FOO'; +insert into performance_schema.setup_actors +values ('BAR', 'BAR', 'BAR', 'YES', 'YES'); +delete my_non_tx_table.*, performance_schema.setup_actors.* +from my_non_tx_table, performance_schema.setup_actors +where my_non_tx_table.a != 1000 +or performance_schema.setup_actors.role='BAR'; +insert into performance_schema.setup_actors +values ('BAZ', 'BAZ', 'BAZ', 'YES', 'YES'); +delete my_bh_table.*, performance_schema.setup_actors.* +from my_bh_table, performance_schema.setup_actors +where my_bh_table.a != 1000 +or performance_schema.setup_actors.role='BAZ'; +use test; +drop table if exists marker_end; +Warnings: +Note 1051 Unknown table 'test.marker_end' +drop database my_replicated_db; +include/show_binlog_events.inc +Log_name Pos Event_type Server_id End_log_pos Info +master-bin.000001 # Query # # drop database if exists my_replicated_db +master-bin.000001 # Query # # BEGIN +master-bin.000001 # Query # # use `mtr`; INSERT INTO test_suppressions (pattern) VALUES ( NAME_CONST('pattern',_latin1'Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT' COLLATE 'latin1_swedish_ci')) +master-bin.000001 # Query # # COMMIT +master-bin.000001 # Query # # create database my_replicated_db +master-bin.000001 # Query # # use `test`; create table my_replicated_db.my_tx_table(a bigint) engine = innodb +master-bin.000001 # Query # # use `test`; create table my_replicated_db.my_non_tx_table(a bigint) engine = myisam +master-bin.000001 # Query # # use `test`; create table my_replicated_db.my_bh_table(a bigint) engine = blackhole +master-bin.000001 # Query # # use `test`; DROP TABLE IF EXISTS `marker_start` /* generated by server */ +master-bin.000001 # Query # # BEGIN +master-bin.000001 # Query # # use `my_replicated_db`; insert into my_tx_table(a) +values (1000), (2000), (3000) +master-bin.000001 # Xid # # COMMIT /* XID */ +master-bin.000001 # Query # # BEGIN +master-bin.000001 # Query # # use `my_replicated_db`; insert into my_non_tx_table(a) +values (1000), (2000), (3000) +master-bin.000001 # Query # # COMMIT +master-bin.000001 # Query # # BEGIN +master-bin.000001 # Query # # use `my_replicated_db`; insert into my_bh_table(a) +values (1000), (2000), (3000) +master-bin.000001 # Query # # COMMIT +master-bin.000001 # Query # # use `test`; DROP TABLE IF EXISTS `marker_insert_select` /* generated by server */ +master-bin.000001 # Query # # BEGIN +master-bin.000001 # Query # # use `my_replicated_db`; insert into my_tx_table(a) +select thread_id from performance_schema.threads +master-bin.000001 # Xid # # COMMIT /* XID */ +master-bin.000001 # Query # # BEGIN +master-bin.000001 # Query # # use `my_replicated_db`; insert into my_non_tx_table(a) +select thread_id from performance_schema.threads +master-bin.000001 # Query # # COMMIT +master-bin.000001 # Query # # BEGIN +master-bin.000001 # Query # # use `my_replicated_db`; insert into my_bh_table(a) +select thread_id from performance_schema.threads +master-bin.000001 # Query # # COMMIT +master-bin.000001 # Query # # BEGIN +master-bin.000001 # Query # # use `my_replicated_db`; insert into my_tx_table(a) +select id from information_schema.processlist +master-bin.000001 # Xid # # COMMIT /* XID */ +master-bin.000001 # Query # # BEGIN +master-bin.000001 # Query # # use `my_replicated_db`; insert into my_non_tx_table(a) +select id from information_schema.processlist +master-bin.000001 # Query # # COMMIT +master-bin.000001 # Query # # BEGIN +master-bin.000001 # Query # # use `my_replicated_db`; insert into my_bh_table(a) +select id from information_schema.processlist +master-bin.000001 # Query # # COMMIT +master-bin.000001 # Query # # BEGIN +master-bin.000001 # Query # # use `my_replicated_db`; insert into my_tx_table(a) +select thread_id from mysql.general_log +master-bin.000001 # Query # # COMMIT +master-bin.000001 # Query # # BEGIN +master-bin.000001 # Query # # use `my_replicated_db`; insert into my_non_tx_table(a) +select thread_id from mysql.general_log +master-bin.000001 # Query # # COMMIT +master-bin.000001 # Query # # BEGIN +master-bin.000001 # Query # # use `my_replicated_db`; insert into my_bh_table(a) +select thread_id from mysql.general_log +master-bin.000001 # Query # # COMMIT +master-bin.000001 # Query # # BEGIN +master-bin.000001 # Query # # use `my_replicated_db`; insert into my_tx_table(a) +select thread_id from mysql.slow_log +master-bin.000001 # Query # # COMMIT +master-bin.000001 # Query # # BEGIN +master-bin.000001 # Query # # use `my_replicated_db`; insert into my_non_tx_table(a) +select thread_id from mysql.slow_log +master-bin.000001 # Query # # COMMIT +master-bin.000001 # Query # # BEGIN +master-bin.000001 # Query # # use `my_replicated_db`; insert into my_bh_table(a) +select thread_id from mysql.slow_log +master-bin.000001 # Query # # COMMIT +master-bin.000001 # Query # # BEGIN +master-bin.000001 # Query # # use `my_replicated_db`; insert into my_tx_table(a) +select Relay_log_pos from mysql.slave_relay_log_info +master-bin.000001 # Query # # COMMIT +master-bin.000001 # Query # # BEGIN +master-bin.000001 # Query # # use `my_replicated_db`; insert into my_non_tx_table(a) +select Relay_log_pos from mysql.slave_relay_log_info +master-bin.000001 # Query # # COMMIT +master-bin.000001 # Query # # BEGIN +master-bin.000001 # Query # # use `my_replicated_db`; insert into my_bh_table(a) +select Relay_log_pos from mysql.slave_relay_log_info +master-bin.000001 # Query # # COMMIT +master-bin.000001 # Query # # BEGIN +master-bin.000001 # Query # # use `my_replicated_db`; insert into my_tx_table(a) +select Master_log_pos from mysql.slave_master_info +master-bin.000001 # Query # # COMMIT +master-bin.000001 # Query # # BEGIN +master-bin.000001 # Query # # use `my_replicated_db`; insert into my_non_tx_table(a) +select Master_log_pos from mysql.slave_master_info +master-bin.000001 # Query # # COMMIT +master-bin.000001 # Query # # BEGIN +master-bin.000001 # Query # # use `my_replicated_db`; insert into my_bh_table(a) +select Master_log_pos from mysql.slave_master_info +master-bin.000001 # Query # # COMMIT +master-bin.000001 # Query # # BEGIN +master-bin.000001 # Query # # use `my_replicated_db`; insert into my_tx_table(a) +select Relay_log_pos from mysql.slave_worker_info +master-bin.000001 # Query # # COMMIT +master-bin.000001 # Query # # BEGIN +master-bin.000001 # Query # # use `my_replicated_db`; insert into my_non_tx_table(a) +select Relay_log_pos from mysql.slave_worker_info +master-bin.000001 # Query # # COMMIT +master-bin.000001 # Query # # BEGIN +master-bin.000001 # Query # # use `my_replicated_db`; insert into my_bh_table(a) +select Relay_log_pos from mysql.slave_worker_info +master-bin.000001 # Query # # COMMIT +master-bin.000001 # Query # # use `test`; DROP TABLE IF EXISTS `marker_multi_update` /* generated by server */ +master-bin.000001 # Query # # use `test`; DROP TABLE IF EXISTS `marker_multi_delete` /* generated by server */ +master-bin.000001 # Query # # use `test`; DROP TABLE IF EXISTS `marker_end` /* generated by server */ +master-bin.000001 # Query # # drop database my_replicated_db +truncate table performance_schema.setup_actors; +insert into performance_schema.setup_actors values ('%', '%', '%', 'YES', 'YES'); diff --git a/mysql-test/suite/perfschema/r/binlog_mix.result b/mysql-test/suite/perfschema/r/binlog_mix.result new file mode 100644 index 00000000..5d7d715c --- /dev/null +++ b/mysql-test/suite/perfschema/r/binlog_mix.result @@ -0,0 +1,54 @@ +set binlog_format=mixed; +RESET MASTER; +select count(*) > 0 from performance_schema.setup_instruments; +count(*) > 0 +1 +update performance_schema.setup_instruments set enabled='NO' + where name like "wait/synch/rwlock/sql/%" + and name not in ("wait/synch/rwlock/sql/CRYPTO_dynlock_value::lock"); +select count(*) > 0 from performance_schema.events_waits_current; +count(*) > 0 +1 +drop table if exists test.t1; +drop table if exists test.t2; +create table test.t1 (thread_id integer); +create table test.t2 (name varchar(128)); +insert into test.t1 +select thread_id from performance_schema.events_waits_current; +insert into test.t2 +select name from performance_schema.setup_instruments +where name like "wait/synch/rwlock/sql/%" + and name not in ("wait/synch/rwlock/sql/CRYPTO_dynlock_value::lock"); +drop table test.t1; +drop table test.t2; +update performance_schema.setup_instruments set enabled='YES' + where name like "wait/synch/rwlock/sql/%" + and name not in ("wait/synch/rwlock/sql/CRYPTO_dynlock_value::lock"); +include/show_binlog_events.inc +Log_name Pos Event_type Server_id End_log_pos Info +master-bin.000001 # Gtid # # GTID #-#-# +master-bin.000001 # Query # # use `test`; DROP TABLE IF EXISTS `t1` /* generated by server */ +master-bin.000001 # Gtid # # GTID #-#-# +master-bin.000001 # Query # # use `test`; DROP TABLE IF EXISTS `t2` /* generated by server */ +master-bin.000001 # Gtid # # GTID #-#-# +master-bin.000001 # Query # # use `test`; create table test.t1 (thread_id integer) +master-bin.000001 # Gtid # # GTID #-#-# +master-bin.000001 # Query # # use `test`; create table test.t2 (name varchar(128)) +master-bin.000001 # Gtid # # BEGIN GTID #-#-# +master-bin.000001 # Annotate_rows # # insert into test.t1 +select thread_id from performance_schema.events_waits_current +master-bin.000001 # Table_map # # table_id: # (test.t1) +master-bin.000001 # Write_rows_v1 # # table_id: # flags: STMT_END_F +master-bin.000001 # Query # # COMMIT +master-bin.000001 # Gtid # # BEGIN GTID #-#-# +master-bin.000001 # Annotate_rows # # insert into test.t2 +select name from performance_schema.setup_instruments +where name like "wait/synch/rwlock/sql/%" + and name not in ("wait/synch/rwlock/sql/CRYPTO_dynlock_value::lock") +master-bin.000001 # Table_map # # table_id: # (test.t2) +master-bin.000001 # Write_rows_v1 # # table_id: # flags: STMT_END_F +master-bin.000001 # Query # # COMMIT +master-bin.000001 # Gtid # # GTID #-#-# +master-bin.000001 # Query # # use `test`; DROP TABLE `t1` /* generated by server */ +master-bin.000001 # Gtid # # GTID #-#-# +master-bin.000001 # Query # # use `test`; DROP TABLE `t2` /* generated by server */ diff --git a/mysql-test/suite/perfschema/r/binlog_ok_mix.result b/mysql-test/suite/perfschema/r/binlog_ok_mix.result new file mode 100644 index 00000000..cc2c08ba --- /dev/null +++ b/mysql-test/suite/perfschema/r/binlog_ok_mix.result @@ -0,0 +1,119 @@ +set binlog_format=mixed; +RESET MASTER; +drop database if exists my_local_db; +create database my_local_db; +create table my_local_db.my_tx_table(a bigint) engine = innodb; +create table my_local_db.my_non_tx_table(a bigint) engine = myisam; +use test; +drop table if exists marker_start; +Warnings: +Note 1051 Unknown table 'test.marker_start' +use my_local_db; +insert into my_tx_table(a) +values (1000), (2000), (3000); +insert into my_non_tx_table(a) +values (1000), (2000), (3000); +use test; +drop table if exists marker_truncate; +Warnings: +Note 1051 Unknown table 'test.marker_truncate' +use performance_schema; +truncate table events_waits_history; +truncate table events_waits_history_long; +use test; +truncate table performance_schema.events_statements_history_long; +truncate table performance_schema.host_cache; +use test; +drop table if exists marker_update; +Warnings: +Note 1051 Unknown table 'test.marker_update' +use performance_schema; +update setup_instruments set enabled='NO'; +update setup_instruments set timed='NO'; +use test; +update performance_schema.setup_instruments set enabled='YES', timed='YES'; +update performance_schema.threads set instrumented='YES'; +use test; +drop table if exists marker_insert; +Warnings: +Note 1051 Unknown table 'test.marker_insert' +insert into performance_schema.setup_actors(`user`, `host`, `role`) +values ('XXX', 'XXX', 'XXX'), +('YYY', 'YYY', 'YYY'), +('ZZZ', 'ZZZ', 'ZZZ'); +select * from performance_schema.setup_actors +where user in ('XXX', 'YYY', 'ZZZ') order by user; +HOST USER ROLE ENABLED HISTORY +XXX XXX XXX YES YES +YYY YYY YYY YES YES +ZZZ ZZZ ZZZ YES YES +insert into performance_schema.setup_objects +(object_type, object_schema, object_name, enabled, timed) +values ('TABLE', 'DB1', 'AAA', 'YES', 'YES'), +('TABLE', 'DB1', 'BBB', 'NO', 'NO'), +('TABLE', 'DB2', 'CCC', 'YES', 'NO'), +('TABLE', 'DB2', 'DDD', 'NO', 'YES'); +select * from performance_schema.setup_objects +where object_schema like 'DB%' order by object_name; +OBJECT_TYPE OBJECT_SCHEMA OBJECT_NAME ENABLED TIMED +TABLE DB1 AAA YES YES +TABLE DB1 BBB NO NO +TABLE DB2 CCC YES NO +TABLE DB2 DDD NO YES +use test; +drop table if exists marker_insert_select; +Warnings: +Note 1051 Unknown table 'test.marker_insert_select' +use my_local_db; +insert into my_tx_table(a) +select thread_id from performance_schema.threads; +insert into my_non_tx_table(a) +select thread_id from performance_schema.threads; +insert into my_tx_table(a) +select id from information_schema.processlist; +insert into my_non_tx_table(a) +select id from information_schema.processlist; +insert into my_tx_table(a) +select thread_id from mysql.general_log; +insert into my_non_tx_table(a) +select thread_id from mysql.general_log; +insert into my_tx_table(a) +select thread_id from mysql.slow_log; +insert into my_non_tx_table(a) +select thread_id from mysql.slow_log; +insert into my_tx_table(a) +select Relay_log_pos from mysql.slave_relay_log_info; +insert into my_non_tx_table(a) +select Relay_log_pos from mysql.slave_relay_log_info; +insert into my_tx_table(a) +select Master_log_pos from mysql.slave_master_info; +insert into my_non_tx_table(a) +select Master_log_pos from mysql.slave_master_info; +insert into my_tx_table(a) +select Relay_log_pos from mysql.slave_worker_info; +insert into my_non_tx_table(a) +select Relay_log_pos from mysql.slave_worker_info; +use test; +drop table if exists marker_delete; +Warnings: +Note 1051 Unknown table 'test.marker_delete' +delete from performance_schema.setup_actors +where user in ('XXX', 'YYY', 'ZZZ'); +delete from performance_schema.setup_objects +where object_schema like 'DB%'; +use test; +drop table if exists marker_end; +Warnings: +Note 1051 Unknown table 'test.marker_end' +drop database my_local_db; +include/show_binlog_events.inc +Log_name Pos Event_type Server_id End_log_pos Info +master-bin.000001 # Query # # use `test`; create table my_local_db.my_tx_table(a bigint) engine = innodb +master-bin.000001 # Query # # use `test`; create table my_local_db.my_non_tx_table(a bigint) engine = myisam +master-bin.000001 # Query # # use `test`; DROP TABLE IF EXISTS `marker_start` /* generated by server */ +master-bin.000001 # Query # # use `test`; DROP TABLE IF EXISTS `marker_truncate` /* generated by server */ +master-bin.000001 # Query # # use `test`; DROP TABLE IF EXISTS `marker_update` /* generated by server */ +master-bin.000001 # Query # # use `test`; DROP TABLE IF EXISTS `marker_insert` /* generated by server */ +master-bin.000001 # Query # # use `test`; DROP TABLE IF EXISTS `marker_insert_select` /* generated by server */ +master-bin.000001 # Query # # use `test`; DROP TABLE IF EXISTS `marker_delete` /* generated by server */ +master-bin.000001 # Query # # use `test`; DROP TABLE IF EXISTS `marker_end` /* generated by server */ diff --git a/mysql-test/suite/perfschema/r/binlog_ok_row.result b/mysql-test/suite/perfschema/r/binlog_ok_row.result new file mode 100644 index 00000000..0beea6ae --- /dev/null +++ b/mysql-test/suite/perfschema/r/binlog_ok_row.result @@ -0,0 +1,119 @@ +set binlog_format=row; +RESET MASTER; +drop database if exists my_local_db; +create database my_local_db; +create table my_local_db.my_tx_table(a bigint) engine = innodb; +create table my_local_db.my_non_tx_table(a bigint) engine = myisam; +use test; +drop table if exists marker_start; +Warnings: +Note 1051 Unknown table 'test.marker_start' +use my_local_db; +insert into my_tx_table(a) +values (1000), (2000), (3000); +insert into my_non_tx_table(a) +values (1000), (2000), (3000); +use test; +drop table if exists marker_truncate; +Warnings: +Note 1051 Unknown table 'test.marker_truncate' +use performance_schema; +truncate table events_waits_history; +truncate table events_waits_history_long; +use test; +truncate table performance_schema.events_statements_history_long; +truncate table performance_schema.host_cache; +use test; +drop table if exists marker_update; +Warnings: +Note 1051 Unknown table 'test.marker_update' +use performance_schema; +update setup_instruments set enabled='NO'; +update setup_instruments set timed='NO'; +use test; +update performance_schema.setup_instruments set enabled='YES', timed='YES'; +update performance_schema.threads set instrumented='YES'; +use test; +drop table if exists marker_insert; +Warnings: +Note 1051 Unknown table 'test.marker_insert' +insert into performance_schema.setup_actors(`user`, `host`, `role`) +values ('XXX', 'XXX', 'XXX'), +('YYY', 'YYY', 'YYY'), +('ZZZ', 'ZZZ', 'ZZZ'); +select * from performance_schema.setup_actors +where user in ('XXX', 'YYY', 'ZZZ') order by user; +HOST USER ROLE ENABLED HISTORY +XXX XXX XXX YES YES +YYY YYY YYY YES YES +ZZZ ZZZ ZZZ YES YES +insert into performance_schema.setup_objects +(object_type, object_schema, object_name, enabled, timed) +values ('TABLE', 'DB1', 'AAA', 'YES', 'YES'), +('TABLE', 'DB1', 'BBB', 'NO', 'NO'), +('TABLE', 'DB2', 'CCC', 'YES', 'NO'), +('TABLE', 'DB2', 'DDD', 'NO', 'YES'); +select * from performance_schema.setup_objects +where object_schema like 'DB%' order by object_name; +OBJECT_TYPE OBJECT_SCHEMA OBJECT_NAME ENABLED TIMED +TABLE DB1 AAA YES YES +TABLE DB1 BBB NO NO +TABLE DB2 CCC YES NO +TABLE DB2 DDD NO YES +use test; +drop table if exists marker_insert_select; +Warnings: +Note 1051 Unknown table 'test.marker_insert_select' +use my_local_db; +insert into my_tx_table(a) +select thread_id from performance_schema.threads; +insert into my_non_tx_table(a) +select thread_id from performance_schema.threads; +insert into my_tx_table(a) +select id from information_schema.processlist; +insert into my_non_tx_table(a) +select id from information_schema.processlist; +insert into my_tx_table(a) +select thread_id from mysql.general_log; +insert into my_non_tx_table(a) +select thread_id from mysql.general_log; +insert into my_tx_table(a) +select thread_id from mysql.slow_log; +insert into my_non_tx_table(a) +select thread_id from mysql.slow_log; +insert into my_tx_table(a) +select Relay_log_pos from mysql.slave_relay_log_info; +insert into my_non_tx_table(a) +select Relay_log_pos from mysql.slave_relay_log_info; +insert into my_tx_table(a) +select Master_log_pos from mysql.slave_master_info; +insert into my_non_tx_table(a) +select Master_log_pos from mysql.slave_master_info; +insert into my_tx_table(a) +select Relay_log_pos from mysql.slave_worker_info; +insert into my_non_tx_table(a) +select Relay_log_pos from mysql.slave_worker_info; +use test; +drop table if exists marker_delete; +Warnings: +Note 1051 Unknown table 'test.marker_delete' +delete from performance_schema.setup_actors +where user in ('XXX', 'YYY', 'ZZZ'); +delete from performance_schema.setup_objects +where object_schema like 'DB%'; +use test; +drop table if exists marker_end; +Warnings: +Note 1051 Unknown table 'test.marker_end' +drop database my_local_db; +include/show_binlog_events.inc +Log_name Pos Event_type Server_id End_log_pos Info +master-bin.000001 # Query # # use `test`; create table my_local_db.my_tx_table(a bigint) engine = innodb +master-bin.000001 # Query # # use `test`; create table my_local_db.my_non_tx_table(a bigint) engine = myisam +master-bin.000001 # Query # # use `test`; DROP TABLE IF EXISTS `marker_start` /* generated by server */ +master-bin.000001 # Query # # use `test`; DROP TABLE IF EXISTS `marker_truncate` /* generated by server */ +master-bin.000001 # Query # # use `test`; DROP TABLE IF EXISTS `marker_update` /* generated by server */ +master-bin.000001 # Query # # use `test`; DROP TABLE IF EXISTS `marker_insert` /* generated by server */ +master-bin.000001 # Query # # use `test`; DROP TABLE IF EXISTS `marker_insert_select` /* generated by server */ +master-bin.000001 # Query # # use `test`; DROP TABLE IF EXISTS `marker_delete` /* generated by server */ +master-bin.000001 # Query # # use `test`; DROP TABLE IF EXISTS `marker_end` /* generated by server */ diff --git a/mysql-test/suite/perfschema/r/binlog_ok_stmt.result b/mysql-test/suite/perfschema/r/binlog_ok_stmt.result new file mode 100644 index 00000000..9fd9af6c --- /dev/null +++ b/mysql-test/suite/perfschema/r/binlog_ok_stmt.result @@ -0,0 +1,119 @@ +set binlog_format=statement; +RESET MASTER; +drop database if exists my_local_db; +create database my_local_db; +create table my_local_db.my_tx_table(a bigint) engine = innodb; +create table my_local_db.my_non_tx_table(a bigint) engine = myisam; +use test; +drop table if exists marker_start; +Warnings: +Note 1051 Unknown table 'test.marker_start' +use my_local_db; +insert into my_tx_table(a) +values (1000), (2000), (3000); +insert into my_non_tx_table(a) +values (1000), (2000), (3000); +use test; +drop table if exists marker_truncate; +Warnings: +Note 1051 Unknown table 'test.marker_truncate' +use performance_schema; +truncate table events_waits_history; +truncate table events_waits_history_long; +use test; +truncate table performance_schema.events_statements_history_long; +truncate table performance_schema.host_cache; +use test; +drop table if exists marker_update; +Warnings: +Note 1051 Unknown table 'test.marker_update' +use performance_schema; +update setup_instruments set enabled='NO'; +update setup_instruments set timed='NO'; +use test; +update performance_schema.setup_instruments set enabled='YES', timed='YES'; +update performance_schema.threads set instrumented='YES'; +use test; +drop table if exists marker_insert; +Warnings: +Note 1051 Unknown table 'test.marker_insert' +insert into performance_schema.setup_actors(`user`, `host`, `role`) +values ('XXX', 'XXX', 'XXX'), +('YYY', 'YYY', 'YYY'), +('ZZZ', 'ZZZ', 'ZZZ'); +select * from performance_schema.setup_actors +where user in ('XXX', 'YYY', 'ZZZ') order by user; +HOST USER ROLE ENABLED HISTORY +XXX XXX XXX YES YES +YYY YYY YYY YES YES +ZZZ ZZZ ZZZ YES YES +insert into performance_schema.setup_objects +(object_type, object_schema, object_name, enabled, timed) +values ('TABLE', 'DB1', 'AAA', 'YES', 'YES'), +('TABLE', 'DB1', 'BBB', 'NO', 'NO'), +('TABLE', 'DB2', 'CCC', 'YES', 'NO'), +('TABLE', 'DB2', 'DDD', 'NO', 'YES'); +select * from performance_schema.setup_objects +where object_schema like 'DB%' order by object_name; +OBJECT_TYPE OBJECT_SCHEMA OBJECT_NAME ENABLED TIMED +TABLE DB1 AAA YES YES +TABLE DB1 BBB NO NO +TABLE DB2 CCC YES NO +TABLE DB2 DDD NO YES +use test; +drop table if exists marker_insert_select; +Warnings: +Note 1051 Unknown table 'test.marker_insert_select' +use my_local_db; +insert into my_tx_table(a) +select thread_id from performance_schema.threads; +insert into my_non_tx_table(a) +select thread_id from performance_schema.threads; +insert into my_tx_table(a) +select id from information_schema.processlist; +insert into my_non_tx_table(a) +select id from information_schema.processlist; +insert into my_tx_table(a) +select thread_id from mysql.general_log; +insert into my_non_tx_table(a) +select thread_id from mysql.general_log; +insert into my_tx_table(a) +select thread_id from mysql.slow_log; +insert into my_non_tx_table(a) +select thread_id from mysql.slow_log; +insert into my_tx_table(a) +select Relay_log_pos from mysql.slave_relay_log_info; +insert into my_non_tx_table(a) +select Relay_log_pos from mysql.slave_relay_log_info; +insert into my_tx_table(a) +select Master_log_pos from mysql.slave_master_info; +insert into my_non_tx_table(a) +select Master_log_pos from mysql.slave_master_info; +insert into my_tx_table(a) +select Relay_log_pos from mysql.slave_worker_info; +insert into my_non_tx_table(a) +select Relay_log_pos from mysql.slave_worker_info; +use test; +drop table if exists marker_delete; +Warnings: +Note 1051 Unknown table 'test.marker_delete' +delete from performance_schema.setup_actors +where user in ('XXX', 'YYY', 'ZZZ'); +delete from performance_schema.setup_objects +where object_schema like 'DB%'; +use test; +drop table if exists marker_end; +Warnings: +Note 1051 Unknown table 'test.marker_end' +drop database my_local_db; +include/show_binlog_events.inc +Log_name Pos Event_type Server_id End_log_pos Info +master-bin.000001 # Query # # use `test`; create table my_local_db.my_tx_table(a bigint) engine = innodb +master-bin.000001 # Query # # use `test`; create table my_local_db.my_non_tx_table(a bigint) engine = myisam +master-bin.000001 # Query # # use `test`; DROP TABLE IF EXISTS `marker_start` /* generated by server */ +master-bin.000001 # Query # # use `test`; DROP TABLE IF EXISTS `marker_truncate` /* generated by server */ +master-bin.000001 # Query # # use `test`; DROP TABLE IF EXISTS `marker_update` /* generated by server */ +master-bin.000001 # Query # # use `test`; DROP TABLE IF EXISTS `marker_insert` /* generated by server */ +master-bin.000001 # Query # # use `test`; DROP TABLE IF EXISTS `marker_insert_select` /* generated by server */ +master-bin.000001 # Query # # use `test`; DROP TABLE IF EXISTS `marker_delete` /* generated by server */ +master-bin.000001 # Query # # use `test`; DROP TABLE IF EXISTS `marker_end` /* generated by server */ diff --git a/mysql-test/suite/perfschema/r/binlog_row.result b/mysql-test/suite/perfschema/r/binlog_row.result new file mode 100644 index 00000000..59b1b290 --- /dev/null +++ b/mysql-test/suite/perfschema/r/binlog_row.result @@ -0,0 +1,54 @@ +set binlog_format=row; +RESET MASTER; +select count(*) > 0 from performance_schema.setup_instruments; +count(*) > 0 +1 +update performance_schema.setup_instruments set enabled='NO' + where name like "wait/synch/rwlock/sql/%" + and name not in ("wait/synch/rwlock/sql/CRYPTO_dynlock_value::lock"); +select count(*) > 0 from performance_schema.events_waits_current; +count(*) > 0 +1 +drop table if exists test.t1; +drop table if exists test.t2; +create table test.t1 (thread_id integer); +create table test.t2 (name varchar(128)); +insert into test.t1 +select thread_id from performance_schema.events_waits_current; +insert into test.t2 +select name from performance_schema.setup_instruments +where name like "wait/synch/rwlock/sql/%" + and name not in ("wait/synch/rwlock/sql/CRYPTO_dynlock_value::lock"); +drop table test.t1; +drop table test.t2; +update performance_schema.setup_instruments set enabled='YES' + where name like "wait/synch/rwlock/sql/%" + and name not in ("wait/synch/rwlock/sql/CRYPTO_dynlock_value::lock"); +include/show_binlog_events.inc +Log_name Pos Event_type Server_id End_log_pos Info +master-bin.000001 # Gtid # # GTID #-#-# +master-bin.000001 # Query # # use `test`; DROP TABLE IF EXISTS `t1` /* generated by server */ +master-bin.000001 # Gtid # # GTID #-#-# +master-bin.000001 # Query # # use `test`; DROP TABLE IF EXISTS `t2` /* generated by server */ +master-bin.000001 # Gtid # # GTID #-#-# +master-bin.000001 # Query # # use `test`; create table test.t1 (thread_id integer) +master-bin.000001 # Gtid # # GTID #-#-# +master-bin.000001 # Query # # use `test`; create table test.t2 (name varchar(128)) +master-bin.000001 # Gtid # # BEGIN GTID #-#-# +master-bin.000001 # Annotate_rows # # insert into test.t1 +select thread_id from performance_schema.events_waits_current +master-bin.000001 # Table_map # # table_id: # (test.t1) +master-bin.000001 # Write_rows_v1 # # table_id: # flags: STMT_END_F +master-bin.000001 # Query # # COMMIT +master-bin.000001 # Gtid # # BEGIN GTID #-#-# +master-bin.000001 # Annotate_rows # # insert into test.t2 +select name from performance_schema.setup_instruments +where name like "wait/synch/rwlock/sql/%" + and name not in ("wait/synch/rwlock/sql/CRYPTO_dynlock_value::lock") +master-bin.000001 # Table_map # # table_id: # (test.t2) +master-bin.000001 # Write_rows_v1 # # table_id: # flags: STMT_END_F +master-bin.000001 # Query # # COMMIT +master-bin.000001 # Gtid # # GTID #-#-# +master-bin.000001 # Query # # use `test`; DROP TABLE `t1` /* generated by server */ +master-bin.000001 # Gtid # # GTID #-#-# +master-bin.000001 # Query # # use `test`; DROP TABLE `t2` /* generated by server */ diff --git a/mysql-test/suite/perfschema/r/binlog_stmt.result b/mysql-test/suite/perfschema/r/binlog_stmt.result new file mode 100644 index 00000000..c02e71bf --- /dev/null +++ b/mysql-test/suite/perfschema/r/binlog_stmt.result @@ -0,0 +1,55 @@ +set binlog_format=statement; +call mtr.add_suppression("Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT"); +RESET MASTER; +select count(*) > 0 from performance_schema.setup_instruments; +count(*) > 0 +1 +update performance_schema.setup_instruments set enabled='NO' + where name like "wait/synch/rwlock/sql/%" + and name not in ("wait/synch/rwlock/sql/CRYPTO_dynlock_value::lock"); +select count(*) > 0 from performance_schema.events_waits_current; +count(*) > 0 +1 +drop table if exists test.t1; +drop table if exists test.t2; +create table test.t1 (thread_id integer); +create table test.t2 (name varchar(128)); +insert into test.t1 +select thread_id from performance_schema.events_waits_current; +Warnings: +Note 1592 Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. The statement is unsafe because it uses the general log, slow query log, or performance_schema table(s). This is unsafe because system tables may differ on slaves +insert into test.t2 +select name from performance_schema.setup_instruments +where name like "wait/synch/rwlock/sql/%" + and name not in ("wait/synch/rwlock/sql/CRYPTO_dynlock_value::lock"); +Warnings: +Note 1592 Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. The statement is unsafe because it uses the general log, slow query log, or performance_schema table(s). This is unsafe because system tables may differ on slaves +drop table test.t1; +drop table test.t2; +update performance_schema.setup_instruments set enabled='YES' + where name like "wait/synch/rwlock/sql/%" + and name not in ("wait/synch/rwlock/sql/CRYPTO_dynlock_value::lock"); +include/show_binlog_events.inc +Log_name Pos Event_type Server_id End_log_pos Info +master-bin.000001 # Gtid # # GTID #-#-# +master-bin.000001 # Query # # use `test`; DROP TABLE IF EXISTS `t1` /* generated by server */ +master-bin.000001 # Gtid # # GTID #-#-# +master-bin.000001 # Query # # use `test`; DROP TABLE IF EXISTS `t2` /* generated by server */ +master-bin.000001 # Gtid # # GTID #-#-# +master-bin.000001 # Query # # use `test`; create table test.t1 (thread_id integer) +master-bin.000001 # Gtid # # GTID #-#-# +master-bin.000001 # Query # # use `test`; create table test.t2 (name varchar(128)) +master-bin.000001 # Gtid # # BEGIN GTID #-#-# +master-bin.000001 # Query # # use `test`; insert into test.t1 +select thread_id from performance_schema.events_waits_current +master-bin.000001 # Query # # COMMIT +master-bin.000001 # Gtid # # BEGIN GTID #-#-# +master-bin.000001 # Query # # use `test`; insert into test.t2 +select name from performance_schema.setup_instruments +where name like "wait/synch/rwlock/sql/%" + and name not in ("wait/synch/rwlock/sql/CRYPTO_dynlock_value::lock") +master-bin.000001 # Query # # COMMIT +master-bin.000001 # Gtid # # GTID #-#-# +master-bin.000001 # Query # # use `test`; DROP TABLE `t1` /* generated by server */ +master-bin.000001 # Gtid # # GTID #-#-# +master-bin.000001 # Query # # use `test`; DROP TABLE `t2` /* generated by server */ diff --git a/mysql-test/suite/perfschema/r/checksum.result b/mysql-test/suite/perfschema/r/checksum.result new file mode 100644 index 00000000..1ed6e70e --- /dev/null +++ b/mysql-test/suite/perfschema/r/checksum.result @@ -0,0 +1,106 @@ +checksum table performance_schema.accounts; +checksum table performance_schema.cond_instances; +checksum table performance_schema.events_stages_current; +checksum table performance_schema.events_stages_history; +checksum table performance_schema.events_stages_history_long; +checksum table performance_schema.events_stages_summary_by_account_by_event_name; +checksum table performance_schema.events_stages_summary_by_host_by_event_name; +checksum table performance_schema.events_stages_summary_by_thread_by_event_name; +checksum table performance_schema.events_stages_summary_by_user_by_event_name; +checksum table performance_schema.events_stages_summary_global_by_event_name; +checksum table performance_schema.events_statements_current; +checksum table performance_schema.events_statements_history; +checksum table performance_schema.events_statements_history_long; +checksum table performance_schema.events_statements_summary_by_account_by_event_name; +checksum table performance_schema.events_statements_summary_by_host_by_event_name; +checksum table performance_schema.events_statements_summary_by_thread_by_event_name; +checksum table performance_schema.events_statements_summary_by_user_by_event_name; +checksum table performance_schema.events_statements_summary_global_by_event_name; +checksum table performance_schema.events_transactions_current; +checksum table performance_schema.events_transactions_history; +checksum table performance_schema.events_transactions_history_long; +checksum table performance_schema.events_transactions_summary_by_account_by_event_name; +checksum table performance_schema.events_transactions_summary_by_host_by_event_name; +checksum table performance_schema.events_transactions_summary_by_thread_by_event_name; +checksum table performance_schema.events_transactions_summary_by_user_by_event_name; +checksum table performance_schema.events_transactions_summary_global_by_event_name; +checksum table performance_schema.events_waits_current; +checksum table performance_schema.events_waits_history; +checksum table performance_schema.events_waits_history_long; +checksum table performance_schema.events_waits_summary_by_account_by_event_name; +checksum table performance_schema.events_waits_summary_by_host_by_event_name; +checksum table performance_schema.events_waits_summary_by_instance; +checksum table performance_schema.events_waits_summary_by_thread_by_event_name; +checksum table performance_schema.events_waits_summary_by_user_by_event_name; +checksum table performance_schema.events_waits_summary_global_by_event_name; +checksum table performance_schema.file_instances; +checksum table performance_schema.file_summary_by_event_name; +checksum table performance_schema.file_summary_by_instance; +checksum table performance_schema.hosts; +checksum table performance_schema.mutex_instances; +checksum table performance_schema.objects_summary_global_by_type; +checksum table performance_schema.performance_timers; +checksum table performance_schema.rwlock_instances; +checksum table performance_schema.setup_actors; +checksum table performance_schema.setup_consumers; +checksum table performance_schema.setup_instruments; +checksum table performance_schema.setup_objects; +checksum table performance_schema.setup_timers; +checksum table performance_schema.table_io_waits_summary_by_index_usage; +checksum table performance_schema.table_io_waits_summary_by_table; +checksum table performance_schema.table_lock_waits_summary_by_table; +checksum table performance_schema.threads; +checksum table performance_schema.users; +checksum table performance_schema.accounts extended; +checksum table performance_schema.cond_instances extended; +checksum table performance_schema.events_stages_current extended; +checksum table performance_schema.events_stages_history extended; +checksum table performance_schema.events_stages_history_long extended; +checksum table performance_schema.events_stages_summary_by_account_by_event_name extended; +checksum table performance_schema.events_stages_summary_by_host_by_event_name extended; +checksum table performance_schema.events_stages_summary_by_thread_by_event_name extended; +checksum table performance_schema.events_stages_summary_by_user_by_event_name extended; +checksum table performance_schema.events_stages_summary_global_by_event_name extended; +checksum table performance_schema.events_statements_current extended; +checksum table performance_schema.events_statements_history extended; +checksum table performance_schema.events_statements_history_long extended; +checksum table performance_schema.events_statements_summary_by_account_by_event_name extended; +checksum table performance_schema.events_statements_summary_by_host_by_event_name extended; +checksum table performance_schema.events_statements_summary_by_thread_by_event_name extended; +checksum table performance_schema.events_statements_summary_by_user_by_event_name extended; +checksum table performance_schema.events_statements_summary_global_by_event_name extended; +checksum table performance_schema.events_transactions_current extended; +checksum table performance_schema.events_transactions_history extended; +checksum table performance_schema.events_transactions_history_long extended; +checksum table performance_schema.events_transactions_summary_by_account_by_event_name extended; +checksum table performance_schema.events_transactions_summary_by_host_by_event_name extended; +checksum table performance_schema.events_transactions_summary_by_thread_by_event_name extended; +checksum table performance_schema.events_transactions_summary_by_user_by_event_name extended; +checksum table performance_schema.events_transactions_summary_global_by_event_name extended; +checksum table performance_schema.events_waits_current extended; +checksum table performance_schema.events_waits_history extended; +checksum table performance_schema.events_waits_history_long extended; +checksum table performance_schema.events_waits_summary_by_account_by_event_name extended; +checksum table performance_schema.events_waits_summary_by_host_by_event_name extended; +checksum table performance_schema.events_waits_summary_by_instance extended; +checksum table performance_schema.events_waits_summary_by_thread_by_event_name extended; +checksum table performance_schema.events_waits_summary_by_user_by_event_name extended; +checksum table performance_schema.events_waits_summary_global_by_event_name extended; +checksum table performance_schema.file_instances extended; +checksum table performance_schema.file_summary_by_event_name extended; +checksum table performance_schema.file_summary_by_instance extended; +checksum table performance_schema.hosts extended; +checksum table performance_schema.mutex_instances extended; +checksum table performance_schema.objects_summary_global_by_type extended; +checksum table performance_schema.performance_timers extended; +checksum table performance_schema.rwlock_instances extended; +checksum table performance_schema.setup_actors extended; +checksum table performance_schema.setup_consumers extended; +checksum table performance_schema.setup_instruments extended; +checksum table performance_schema.setup_objects extended; +checksum table performance_schema.setup_timers extended; +checksum table performance_schema.table_io_waits_summary_by_index_usage extended; +checksum table performance_schema.table_io_waits_summary_by_table extended; +checksum table performance_schema.table_lock_waits_summary_by_table extended; +checksum table performance_schema.threads extended; +checksum table performance_schema.users extended; diff --git a/mysql-test/suite/perfschema/r/cnf_option.result b/mysql-test/suite/perfschema/r/cnf_option.result new file mode 100644 index 00000000..c991311d --- /dev/null +++ b/mysql-test/suite/perfschema/r/cnf_option.result @@ -0,0 +1,6 @@ +show global variables like 'performance_schema_max_thread_classes'; +Variable_name Value +performance_schema_max_thread_classes 12 +show global variables like 'performance_schema_max_thread_instances'; +Variable_name Value +performance_schema_max_thread_instances 318 diff --git a/mysql-test/suite/perfschema/r/column_privilege.result b/mysql-test/suite/perfschema/r/column_privilege.result new file mode 100644 index 00000000..b8fff059 --- /dev/null +++ b/mysql-test/suite/perfschema/r/column_privilege.result @@ -0,0 +1,30 @@ +show grants; +Grants for root@localhost +GRANT ALL PRIVILEGES ON *.* TO `root`@`localhost` WITH GRANT OPTION +GRANT PROXY ON ''@'%' TO 'root'@'localhost' WITH GRANT OPTION +create user 'pfs_user_5'@localhost; +grant usage on *.* to 'pfs_user_5'@localhost with GRANT OPTION; +grant SELECT(thread_id, event_id) on performance_schema.events_waits_current +to 'pfs_user_5'@localhost; +grant UPDATE(enabled) on performance_schema.setup_instruments +to 'pfs_user_5'@localhost; +flush privileges; +connect con1, localhost, pfs_user_5, , ; +select thread_id from performance_schema.events_waits_current; +select thread_id, event_id from performance_schema.events_waits_current; +update performance_schema.setup_instruments set enabled='YES'; +select event_name from performance_schema.events_waits_current; +ERROR 42000: SELECT command denied to user 'pfs_user_5'@'localhost' for column 'event_name' in table 'events_waits_current' +select thread_id, event_id, event_name +from performance_schema.events_waits_current; +ERROR 42000: SELECT command denied to user 'pfs_user_5'@'localhost' for column 'event_name' in table 'events_waits_current' +update performance_schema.setup_instruments set name='illegal'; +ERROR 42000: UPDATE command denied to user 'pfs_user_5'@'localhost' for column 'name' in table 'setup_instruments' +update performance_schema.setup_instruments set timed='NO'; +ERROR 42000: UPDATE command denied to user 'pfs_user_5'@'localhost' for column 'timed' in table 'setup_instruments' +connection default; +disconnect con1; +REVOKE ALL PRIVILEGES, GRANT OPTION FROM 'pfs_user_5'@localhost; +DROP USER 'pfs_user_5'@localhost; +flush privileges; +UPDATE performance_schema.setup_instruments SET enabled = 'YES', timed = 'YES'; diff --git a/mysql-test/suite/perfschema/r/connect_attrs.result b/mysql-test/suite/perfschema/r/connect_attrs.result new file mode 100644 index 00000000..6db8f358 --- /dev/null +++ b/mysql-test/suite/perfschema/r/connect_attrs.result @@ -0,0 +1,59 @@ +# must return 0, 6 +SELECT SUM(ISNULL(ATTR_VALUE)), COUNT(*) +FROM performance_schema.session_connect_attrs +WHERE ATTR_NAME IN ('_os', '_client_name', '_pid', +'_client_version', '_platform', 'program_name') +AND PROCESSLIST_ID = CONNECTION_ID(); +SUM(ISNULL(ATTR_VALUE)) COUNT(*) +0 6 +# must return 1 +SELECT COUNT(DISTINCT PROCESSLIST_ID) +FROM performance_schema.session_connect_attrs; +COUNT(DISTINCT PROCESSLIST_ID) +1 +# must return 0, 6 +SELECT SUM(ISNULL(ATTR_VALUE)), COUNT(*) +FROM performance_schema.session_account_connect_attrs +WHERE ATTR_NAME IN ('_os', '_client_name', '_pid', +'_client_version', '_platform', 'program_name') +AND PROCESSLIST_ID = CONNECTION_ID(); +SUM(ISNULL(ATTR_VALUE)) COUNT(*) +0 6 +# must return 1 +SELECT COUNT(DISTINCT PROCESSLIST_ID) +FROM performance_schema.session_account_connect_attrs; +COUNT(DISTINCT PROCESSLIST_ID) +1 +CREATE USER wl5924@localhost; +connect non_privileged_user,localhost,wl5924,,"*NO-ONE*"; +connection default; +# must return 1 +SELECT COUNT(DISTINCT PROCESSLIST_ID) +FROM performance_schema.session_account_connect_attrs; +COUNT(DISTINCT PROCESSLIST_ID) +1 +# must return 2 +SELECT COUNT(DISTINCT PROCESSLIST_ID) +FROM performance_schema.session_connect_attrs; +COUNT(DISTINCT PROCESSLIST_ID) +2 +connection non_privileged_user; +# must return 1 +SELECT COUNT(DISTINCT PROCESSLIST_ID) +FROM performance_schema.session_account_connect_attrs; +COUNT(DISTINCT PROCESSLIST_ID) +1 +SELECT COUNT(DISTINCT PROCESSLIST_ID) +FROM performance_schema.session_connect_attrs; +ERROR 42000: SELECT command denied to user 'wl5924'@'localhost' for table `performance_schema`.`session_connect_attrs` +connection default; +disconnect non_privileged_user; +grant select on performance_schema.* to wl5924@localhost; +SELECT SUM(ISNULL(ATTR_VALUE)), COUNT(*) +FROM performance_schema.session_account_connect_attrs +WHERE ATTR_NAME IN ('_os', '_client_name', '_pid', +'_client_version', '_platform', 'program_name') +AND PROCESSLIST_ID = CONNECTION_ID(); +SUM(ISNULL(ATTR_VALUE)) COUNT(*) +0 6 +DROP USER wl5924@localhost; diff --git a/mysql-test/suite/perfschema/r/connection.result b/mysql-test/suite/perfschema/r/connection.result new file mode 100644 index 00000000..332b5a43 --- /dev/null +++ b/mysql-test/suite/perfschema/r/connection.result @@ -0,0 +1,908 @@ +call dump_all(); +processlist_user processlist_host +root localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 1 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +connect con1a, localhost, user1, , ; +select "user1 in con1a" as status; +status +user1 in con1a +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 2 2 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +connect con1b, localhost, user1, , ; +select "user1 in con1b" as status; +status +user1 in con1b +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user1 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 2 2 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 2 2 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 3 3 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +connect con1c, localhost, user1, , ; +select "user1 in con1c" as status; +status +user1 in con1c +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user1 localhost +user1 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 3 3 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 3 3 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 4 4 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +connect con2a, localhost, user2, , ; +select "user2 in con2a" as status; +status +user2 in con2a +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user1 localhost +user1 localhost +user2 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 3 3 +user2 localhost 1 1 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 3 3 +user2 1 1 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 5 5 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +connect con2b, localhost, user2, , ; +select "user2 in con2b" as status; +status +user2 in con2b +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user1 localhost +user1 localhost +user2 localhost +user2 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 3 3 +user2 localhost 2 2 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 3 3 +user2 2 2 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 6 6 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +connect con2c, localhost, user2, , ; +select "user2 in con2c" as status; +status +user2 in con2c +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user1 localhost +user1 localhost +user2 localhost +user2 localhost +user2 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 3 3 +user2 localhost 3 3 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 3 3 +user2 3 3 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 7 7 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +connect con3a, localhost, user3, , ; +select "user3 in con3a" as status; +status +user3 in con3a +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user1 localhost +user1 localhost +user2 localhost +user2 localhost +user2 localhost +user3 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 3 3 +user2 localhost 3 3 +user3 localhost 1 1 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 3 3 +user2 3 3 +user3 1 1 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 8 8 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +connect con3b, localhost, user3, , ; +select "user3 in con3b" as status; +status +user3 in con3b +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user1 localhost +user1 localhost +user2 localhost +user2 localhost +user2 localhost +user3 localhost +user3 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 3 3 +user2 localhost 3 3 +user3 localhost 2 2 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 3 3 +user2 3 3 +user3 2 2 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 9 9 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +connect con3c, localhost, user3, , ; +select "user3 in con3c" as status; +status +user3 in con3c +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user1 localhost +user1 localhost +user2 localhost +user2 localhost +user2 localhost +user3 localhost +user3 localhost +user3 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 3 3 +user2 localhost 3 3 +user3 localhost 3 3 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 3 3 +user2 3 3 +user3 3 3 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 10 10 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +connection default; +disconnect con1a; +select "con1a disconnected" as status; +status +con1a disconnected +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user1 localhost +user2 localhost +user2 localhost +user2 localhost +user3 localhost +user3 localhost +user3 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 2 3 +user2 localhost 3 3 +user3 localhost 3 3 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 2 3 +user2 3 3 +user3 3 3 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 9 10 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +disconnect con2a; +select "con2a disconnected" as status; +status +con2a disconnected +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user1 localhost +user2 localhost +user2 localhost +user3 localhost +user3 localhost +user3 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 2 3 +user2 localhost 2 3 +user3 localhost 3 3 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 2 3 +user2 2 3 +user3 3 3 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 8 10 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +disconnect con3a; +select "con3a disconnected" as status; +status +con3a disconnected +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user1 localhost +user2 localhost +user2 localhost +user3 localhost +user3 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 2 3 +user2 localhost 2 3 +user3 localhost 2 3 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 2 3 +user2 2 3 +user3 2 3 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 7 10 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +truncate table performance_schema.accounts; +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user1 localhost +user2 localhost +user2 localhost +user3 localhost +user3 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 2 2 +user2 localhost 2 2 +user3 localhost 2 2 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 2 3 +user2 2 3 +user3 2 3 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 7 10 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +truncate table performance_schema.users; +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user1 localhost +user2 localhost +user2 localhost +user3 localhost +user3 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 2 2 +user2 localhost 2 2 +user3 localhost 2 2 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 2 2 +user2 2 2 +user3 2 2 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 7 10 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +truncate table performance_schema.hosts; +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user1 localhost +user2 localhost +user2 localhost +user3 localhost +user3 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 2 2 +user2 localhost 2 2 +user3 localhost 2 2 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 2 2 +user2 2 2 +user3 2 2 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 7 7 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +connect con4a, localhost, user4, , ; +select "user4 in con4a" as status; +status +user4 in con4a +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user1 localhost +user2 localhost +user2 localhost +user3 localhost +user3 localhost +user4 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 2 2 +user2 localhost 2 2 +user3 localhost 2 2 +user4 localhost 1 1 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 2 2 +user2 2 2 +user3 2 2 +user4 1 1 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 8 8 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +connect con4b, localhost, user4, , ; +select "user4 in con4b" as status; +status +user4 in con4b +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user1 localhost +user2 localhost +user2 localhost +user3 localhost +user3 localhost +user4 localhost +user4 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 2 2 +user2 localhost 2 2 +user3 localhost 2 2 +user4 localhost 2 2 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 2 2 +user2 2 2 +user3 2 2 +user4 2 2 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 9 9 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +connect con4c, localhost, user4, , ; +select "user4 in con4c" as status; +status +user4 in con4c +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user1 localhost +user2 localhost +user2 localhost +user3 localhost +user3 localhost +user4 localhost +user4 localhost +user4 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 2 2 +user2 localhost 2 2 +user3 localhost 2 2 +user4 localhost 3 3 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 2 2 +user2 2 2 +user3 2 2 +user4 3 3 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 10 10 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +connection default; +disconnect con1b; +select "con1b disconnected" as status; +status +con1b disconnected +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user2 localhost +user2 localhost +user3 localhost +user3 localhost +user4 localhost +user4 localhost +user4 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 2 +user2 localhost 2 2 +user3 localhost 2 2 +user4 localhost 3 3 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 2 +user2 2 2 +user3 2 2 +user4 3 3 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 9 10 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +disconnect con2b; +select "con2b disconnected" as status; +status +con2b disconnected +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user2 localhost +user3 localhost +user3 localhost +user4 localhost +user4 localhost +user4 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 2 +user2 localhost 1 2 +user3 localhost 2 2 +user4 localhost 3 3 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 2 +user2 1 2 +user3 2 2 +user4 3 3 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 8 10 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +disconnect con3b; +select "con3b disconnected" as status; +status +con3b disconnected +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user2 localhost +user3 localhost +user4 localhost +user4 localhost +user4 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 2 +user2 localhost 1 2 +user3 localhost 1 2 +user4 localhost 3 3 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 2 +user2 1 2 +user3 1 2 +user4 3 3 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 7 10 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +disconnect con1c; +select "con1c disconnected" as status; +status +con1c disconnected +call dump_all(); +processlist_user processlist_host +root localhost +user2 localhost +user3 localhost +user4 localhost +user4 localhost +user4 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 2 +user2 localhost 1 2 +user3 localhost 1 2 +user4 localhost 3 3 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 2 +user2 1 2 +user3 1 2 +user4 3 3 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 6 10 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +disconnect con2c; +select "con2c disconnected" as status; +status +con2c disconnected +call dump_all(); +processlist_user processlist_host +root localhost +user3 localhost +user4 localhost +user4 localhost +user4 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 2 +user2 localhost 0 2 +user3 localhost 1 2 +user4 localhost 3 3 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 2 +user2 0 2 +user3 1 2 +user4 3 3 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 5 10 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +disconnect con3c; +select "con3c disconnected" as status; +status +con3c disconnected +call dump_all(); +processlist_user processlist_host +root localhost +user4 localhost +user4 localhost +user4 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 2 +user2 localhost 0 2 +user3 localhost 0 2 +user4 localhost 3 3 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 2 +user2 0 2 +user3 0 2 +user4 3 3 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 4 10 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +truncate table performance_schema.accounts; +call dump_all(); +processlist_user processlist_host +root localhost +user4 localhost +user4 localhost +user4 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user4 localhost 3 3 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 2 +user2 0 2 +user3 0 2 +user4 3 3 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 4 10 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +truncate table performance_schema.users; +call dump_all(); +processlist_user processlist_host +root localhost +user4 localhost +user4 localhost +user4 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user4 localhost 3 3 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user4 3 3 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 4 10 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +truncate table performance_schema.hosts; +call dump_all(); +processlist_user processlist_host +root localhost +user4 localhost +user4 localhost +user4 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user4 localhost 3 3 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user4 3 3 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 4 4 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +connect con5a, localhost, user5, , ; +select "user5 in con5a" as status; +status +user5 in con5a +call dump_all(); +processlist_user processlist_host +root localhost +user4 localhost +user4 localhost +user4 localhost +user5 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user4 localhost 3 3 +user5 localhost 1 1 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user4 3 3 +user5 1 1 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 5 5 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +connect con5b, localhost, user5, , ; +select "user5 in con5b" as status; +status +user5 in con5b +call dump_all(); +processlist_user processlist_host +root localhost +user4 localhost +user4 localhost +user4 localhost +user5 localhost +user5 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user4 localhost 3 3 +user5 localhost 2 2 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user4 3 3 +user5 2 2 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 6 6 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +connect con5c, localhost, user5, , ; +select "user5 in con5c" as status; +status +user5 in con5c +call dump_all(); +processlist_user processlist_host +root localhost +user4 localhost +user4 localhost +user4 localhost +user5 localhost +user5 localhost +user5 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user4 localhost 3 3 +user5 localhost 3 3 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user4 3 3 +user5 3 3 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 7 7 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +connection default; +disconnect con4a; +disconnect con4b; +disconnect con4c; +disconnect con5a; +disconnect con5b; +disconnect con5c; +select "con 5a, 5b, 5c, 6a, 6b, 6c disconnected" as status; +status +con 5a, 5b, 5c, 6a, 6b, 6c disconnected +call dump_all(); +processlist_user processlist_host +root localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user4 localhost 0 3 +user5 localhost 0 3 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user4 0 3 +user5 0 3 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 7 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +truncate table performance_schema.hosts; +call dump_all(); +processlist_user processlist_host +root localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user4 0 3 +user5 0 3 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 1 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +truncate table performance_schema.users; +call dump_all(); +processlist_user processlist_host +root localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 1 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +truncate table performance_schema.accounts; +call dump_all(); +processlist_user processlist_host +root localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 1 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 diff --git a/mysql-test/suite/perfschema/r/connection_3a.result b/mysql-test/suite/perfschema/r/connection_3a.result new file mode 100644 index 00000000..e799864e --- /dev/null +++ b/mysql-test/suite/perfschema/r/connection_3a.result @@ -0,0 +1,853 @@ +call dump_all(); +processlist_user processlist_host +root localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 1 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +connect con1a, localhost, user1, , ; +select "user1 in con1a" as status; +status +user1 in con1a +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 2 2 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +connect con1b, localhost, user1, , ; +select "user1 in con1b" as status; +status +user1 in con1b +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user1 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 2 2 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 2 2 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 3 3 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +connect con1c, localhost, user1, , ; +select "user1 in con1c" as status; +status +user1 in con1c +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user1 localhost +user1 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 3 3 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 3 3 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 4 4 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +connect con2a, localhost, user2, , ; +select "user2 in con2a" as status; +status +user2 in con2a +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user1 localhost +user1 localhost +user2 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 3 3 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 3 3 +user2 1 1 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 5 5 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 1 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +connect con2b, localhost, user2, , ; +select "user2 in con2b" as status; +status +user2 in con2b +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user1 localhost +user1 localhost +user2 localhost +user2 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 3 3 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 3 3 +user2 2 2 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 6 6 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 2 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +connect con2c, localhost, user2, , ; +select "user2 in con2c" as status; +status +user2 in con2c +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user1 localhost +user1 localhost +user2 localhost +user2 localhost +user2 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 3 3 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 3 3 +user2 3 3 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 7 7 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 3 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +connect con3a, localhost, user3, , ; +select "user3 in con3a" as status; +status +user3 in con3a +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user1 localhost +user1 localhost +user2 localhost +user2 localhost +user2 localhost +user3 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 3 3 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 3 3 +user2 3 3 +user3 1 1 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 8 8 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 4 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +connect con3b, localhost, user3, , ; +select "user3 in con3b" as status; +status +user3 in con3b +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user1 localhost +user1 localhost +user2 localhost +user2 localhost +user2 localhost +user3 localhost +user3 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 3 3 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 3 3 +user2 3 3 +user3 2 2 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 9 9 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 5 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +connect con3c, localhost, user3, , ; +select "user3 in con3c" as status; +status +user3 in con3c +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user1 localhost +user1 localhost +user2 localhost +user2 localhost +user2 localhost +user3 localhost +user3 localhost +user3 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 3 3 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 3 3 +user2 3 3 +user3 3 3 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 10 10 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 6 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +connection default; +disconnect con1a; +select "con1a disconnected" as status; +status +con1a disconnected +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user1 localhost +user2 localhost +user2 localhost +user2 localhost +user3 localhost +user3 localhost +user3 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 2 3 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 2 3 +user2 3 3 +user3 3 3 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 9 10 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 6 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +disconnect con2a; +select "con2a disconnected" as status; +status +con2a disconnected +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user1 localhost +user2 localhost +user2 localhost +user3 localhost +user3 localhost +user3 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 2 3 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 2 3 +user2 2 3 +user3 3 3 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 8 10 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 6 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +disconnect con3a; +select "con3a disconnected" as status; +status +con3a disconnected +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user1 localhost +user2 localhost +user2 localhost +user3 localhost +user3 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 2 3 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 2 3 +user2 2 3 +user3 2 3 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 7 10 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 6 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +truncate table performance_schema.accounts; +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user1 localhost +user2 localhost +user2 localhost +user3 localhost +user3 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 2 2 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 2 3 +user2 2 3 +user3 2 3 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 7 10 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 6 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +truncate table performance_schema.users; +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user1 localhost +user2 localhost +user2 localhost +user3 localhost +user3 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 2 2 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 2 2 +user2 2 2 +user3 2 2 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 7 10 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 6 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +truncate table performance_schema.hosts; +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user1 localhost +user2 localhost +user2 localhost +user3 localhost +user3 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 2 2 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 2 2 +user2 2 2 +user3 2 2 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 7 7 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 6 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +connect con4a, localhost, user4, , ; +select "user4 in con4a" as status; +status +user4 in con4a +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user1 localhost +user2 localhost +user2 localhost +user3 localhost +user3 localhost +user4 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 2 2 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 2 2 +user2 2 2 +user3 2 2 +user4 1 1 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 8 8 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 7 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +connect con4b, localhost, user4, , ; +select "user4 in con4b" as status; +status +user4 in con4b +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user1 localhost +user2 localhost +user2 localhost +user3 localhost +user3 localhost +user4 localhost +user4 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 2 2 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 2 2 +user2 2 2 +user3 2 2 +user4 2 2 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 9 9 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 8 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +connect con4c, localhost, user4, , ; +select "user4 in con4c" as status; +status +user4 in con4c +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user1 localhost +user2 localhost +user2 localhost +user3 localhost +user3 localhost +user4 localhost +user4 localhost +user4 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 2 2 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 2 2 +user2 2 2 +user3 2 2 +user4 3 3 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 10 10 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 9 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +connection default; +disconnect con1b; +select "con1b disconnected" as status; +status +con1b disconnected +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user2 localhost +user2 localhost +user3 localhost +user3 localhost +user4 localhost +user4 localhost +user4 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 2 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 2 +user2 2 2 +user3 2 2 +user4 3 3 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 9 10 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 9 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +disconnect con2b; +select "con2b disconnected" as status; +status +con2b disconnected +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user2 localhost +user3 localhost +user3 localhost +user4 localhost +user4 localhost +user4 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 2 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 2 +user2 1 2 +user3 2 2 +user4 3 3 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 8 10 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 9 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +disconnect con3b; +select "con3b disconnected" as status; +status +con3b disconnected +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user2 localhost +user3 localhost +user4 localhost +user4 localhost +user4 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 2 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 2 +user2 1 2 +user3 1 2 +user4 3 3 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 7 10 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 9 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +disconnect con1c; +select "con1c disconnected" as status; +status +con1c disconnected +call dump_all(); +processlist_user processlist_host +root localhost +user2 localhost +user3 localhost +user4 localhost +user4 localhost +user4 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 2 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 2 +user2 1 2 +user3 1 2 +user4 3 3 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 6 10 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 9 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +disconnect con2c; +select "con2c disconnected" as status; +status +con2c disconnected +call dump_all(); +processlist_user processlist_host +root localhost +user3 localhost +user4 localhost +user4 localhost +user4 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 2 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 2 +user2 0 2 +user3 1 2 +user4 3 3 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 5 10 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 9 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +disconnect con3c; +select "con3c disconnected" as status; +status +con3c disconnected +call dump_all(); +processlist_user processlist_host +root localhost +user4 localhost +user4 localhost +user4 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 2 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 2 +user2 0 2 +user3 0 2 +user4 3 3 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 4 10 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 9 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +truncate table performance_schema.accounts; +call dump_all(); +processlist_user processlist_host +root localhost +user4 localhost +user4 localhost +user4 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 2 +user2 0 2 +user3 0 2 +user4 3 3 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 4 10 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 9 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +truncate table performance_schema.users; +call dump_all(); +processlist_user processlist_host +root localhost +user4 localhost +user4 localhost +user4 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user4 3 3 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 4 10 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 9 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +truncate table performance_schema.hosts; +call dump_all(); +processlist_user processlist_host +root localhost +user4 localhost +user4 localhost +user4 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user4 3 3 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 4 4 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 9 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +connect con5a, localhost, user5, , ; +select "user5 in con5a" as status; +status +user5 in con5a +call dump_all(); +processlist_user processlist_host +root localhost +user4 localhost +user4 localhost +user4 localhost +user5 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user5 localhost 1 1 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user4 3 3 +user5 1 1 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 5 5 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 9 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +connect con5b, localhost, user5, , ; +select "user5 in con5b" as status; +status +user5 in con5b +call dump_all(); +processlist_user processlist_host +root localhost +user4 localhost +user4 localhost +user4 localhost +user5 localhost +user5 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user5 localhost 2 2 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user4 3 3 +user5 2 2 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 6 6 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 9 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +connect con5c, localhost, user5, , ; +select "user5 in con5c" as status; +status +user5 in con5c +call dump_all(); +processlist_user processlist_host +root localhost +user4 localhost +user4 localhost +user4 localhost +user5 localhost +user5 localhost +user5 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user5 localhost 3 3 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user4 3 3 +user5 3 3 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 7 7 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 9 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +connection default; +disconnect con4a; +disconnect con4b; +disconnect con4c; +disconnect con5a; +disconnect con5b; +disconnect con5c; +select "con 5a, 5b, 5c, 6a, 6b, 6c disconnected" as status; +status +con 5a, 5b, 5c, 6a, 6b, 6c disconnected +call dump_all(); +processlist_user processlist_host +root localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user5 localhost 0 3 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user4 0 3 +user5 0 3 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 7 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 9 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +truncate table performance_schema.hosts; +call dump_all(); +processlist_user processlist_host +root localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user4 0 3 +user5 0 3 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 1 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 9 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +truncate table performance_schema.users; +call dump_all(); +processlist_user processlist_host +root localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 1 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 9 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +truncate table performance_schema.accounts; +call dump_all(); +processlist_user processlist_host +root localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 1 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 9 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 diff --git a/mysql-test/suite/perfschema/r/connection_3a_3u.result b/mysql-test/suite/perfschema/r/connection_3a_3u.result new file mode 100644 index 00000000..a3758a6a --- /dev/null +++ b/mysql-test/suite/perfschema/r/connection_3a_3u.result @@ -0,0 +1,795 @@ +call dump_all(); +processlist_user processlist_host +root localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 1 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +connect con1a, localhost, user1, , ; +select "user1 in con1a" as status; +status +user1 in con1a +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 2 2 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +connect con1b, localhost, user1, , ; +select "user1 in con1b" as status; +status +user1 in con1b +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user1 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 2 2 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 2 2 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 3 3 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +connect con1c, localhost, user1, , ; +select "user1 in con1c" as status; +status +user1 in con1c +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user1 localhost +user1 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 3 3 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 3 3 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 4 4 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +connect con2a, localhost, user2, , ; +select "user2 in con2a" as status; +status +user2 in con2a +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user1 localhost +user1 localhost +user2 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 3 3 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 3 3 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 5 5 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 1 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 1 +connect con2b, localhost, user2, , ; +select "user2 in con2b" as status; +status +user2 in con2b +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user1 localhost +user1 localhost +user2 localhost +user2 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 3 3 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 3 3 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 6 6 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 2 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 2 +connect con2c, localhost, user2, , ; +select "user2 in con2c" as status; +status +user2 in con2c +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user1 localhost +user1 localhost +user2 localhost +user2 localhost +user2 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 3 3 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 3 3 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 7 7 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 3 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 3 +connect con3a, localhost, user3, , ; +select "user3 in con3a" as status; +status +user3 in con3a +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user1 localhost +user1 localhost +user2 localhost +user2 localhost +user2 localhost +user3 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 3 3 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 3 3 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 8 8 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 4 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 4 +connect con3b, localhost, user3, , ; +select "user3 in con3b" as status; +status +user3 in con3b +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user1 localhost +user1 localhost +user2 localhost +user2 localhost +user2 localhost +user3 localhost +user3 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 3 3 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 3 3 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 9 9 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 5 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 5 +connect con3c, localhost, user3, , ; +select "user3 in con3c" as status; +status +user3 in con3c +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user1 localhost +user1 localhost +user2 localhost +user2 localhost +user2 localhost +user3 localhost +user3 localhost +user3 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 3 3 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 3 3 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 10 10 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 6 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 6 +connection default; +disconnect con1a; +select "con1a disconnected" as status; +status +con1a disconnected +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user1 localhost +user2 localhost +user2 localhost +user2 localhost +user3 localhost +user3 localhost +user3 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 2 3 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 2 3 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 9 10 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 6 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 6 +disconnect con2a; +select "con2a disconnected" as status; +status +con2a disconnected +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user1 localhost +user2 localhost +user2 localhost +user3 localhost +user3 localhost +user3 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 2 3 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 2 3 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 8 10 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 6 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 6 +disconnect con3a; +select "con3a disconnected" as status; +status +con3a disconnected +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user1 localhost +user2 localhost +user2 localhost +user3 localhost +user3 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 2 3 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 2 3 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 7 10 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 6 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 6 +truncate table performance_schema.accounts; +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user1 localhost +user2 localhost +user2 localhost +user3 localhost +user3 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 2 2 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 2 3 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 7 10 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 6 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 6 +truncate table performance_schema.users; +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user1 localhost +user2 localhost +user2 localhost +user3 localhost +user3 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 2 2 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 2 2 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 7 10 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 6 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 6 +truncate table performance_schema.hosts; +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user1 localhost +user2 localhost +user2 localhost +user3 localhost +user3 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 2 2 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 2 2 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 7 7 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 6 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 6 +connect con4a, localhost, user4, , ; +select "user4 in con4a" as status; +status +user4 in con4a +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user1 localhost +user2 localhost +user2 localhost +user3 localhost +user3 localhost +user4 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 2 2 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 2 2 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 8 8 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 7 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 7 +connect con4b, localhost, user4, , ; +select "user4 in con4b" as status; +status +user4 in con4b +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user1 localhost +user2 localhost +user2 localhost +user3 localhost +user3 localhost +user4 localhost +user4 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 2 2 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 2 2 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 9 9 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 8 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 8 +connect con4c, localhost, user4, , ; +select "user4 in con4c" as status; +status +user4 in con4c +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user1 localhost +user2 localhost +user2 localhost +user3 localhost +user3 localhost +user4 localhost +user4 localhost +user4 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 2 2 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 2 2 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 10 10 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 9 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 9 +connection default; +disconnect con1b; +select "con1b disconnected" as status; +status +con1b disconnected +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user2 localhost +user2 localhost +user3 localhost +user3 localhost +user4 localhost +user4 localhost +user4 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 2 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 2 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 9 10 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 9 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 9 +disconnect con2b; +select "con2b disconnected" as status; +status +con2b disconnected +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user2 localhost +user3 localhost +user3 localhost +user4 localhost +user4 localhost +user4 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 2 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 2 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 8 10 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 9 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 9 +disconnect con3b; +select "con3b disconnected" as status; +status +con3b disconnected +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user2 localhost +user3 localhost +user4 localhost +user4 localhost +user4 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 2 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 2 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 7 10 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 9 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 9 +disconnect con1c; +select "con1c disconnected" as status; +status +con1c disconnected +call dump_all(); +processlist_user processlist_host +root localhost +user2 localhost +user3 localhost +user4 localhost +user4 localhost +user4 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 2 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 2 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 6 10 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 9 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 9 +disconnect con2c; +select "con2c disconnected" as status; +status +con2c disconnected +call dump_all(); +processlist_user processlist_host +root localhost +user3 localhost +user4 localhost +user4 localhost +user4 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 2 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 2 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 5 10 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 9 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 9 +disconnect con3c; +select "con3c disconnected" as status; +status +con3c disconnected +call dump_all(); +processlist_user processlist_host +root localhost +user4 localhost +user4 localhost +user4 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 2 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 2 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 4 10 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 9 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 9 +truncate table performance_schema.accounts; +call dump_all(); +processlist_user processlist_host +root localhost +user4 localhost +user4 localhost +user4 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 2 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 4 10 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 9 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 9 +truncate table performance_schema.users; +call dump_all(); +processlist_user processlist_host +root localhost +user4 localhost +user4 localhost +user4 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 4 10 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 9 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 9 +truncate table performance_schema.hosts; +call dump_all(); +processlist_user processlist_host +root localhost +user4 localhost +user4 localhost +user4 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 4 4 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 9 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 9 +connect con5a, localhost, user5, , ; +select "user5 in con5a" as status; +status +user5 in con5a +call dump_all(); +processlist_user processlist_host +root localhost +user4 localhost +user4 localhost +user4 localhost +user5 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user5 localhost 1 1 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user5 1 1 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 5 5 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 9 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 9 +connect con5b, localhost, user5, , ; +select "user5 in con5b" as status; +status +user5 in con5b +call dump_all(); +processlist_user processlist_host +root localhost +user4 localhost +user4 localhost +user4 localhost +user5 localhost +user5 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user5 localhost 2 2 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user5 2 2 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 6 6 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 9 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 9 +connect con5c, localhost, user5, , ; +select "user5 in con5c" as status; +status +user5 in con5c +call dump_all(); +processlist_user processlist_host +root localhost +user4 localhost +user4 localhost +user4 localhost +user5 localhost +user5 localhost +user5 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user5 localhost 3 3 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user5 3 3 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 7 7 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 9 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 9 +connection default; +disconnect con4a; +disconnect con4b; +disconnect con4c; +disconnect con5a; +disconnect con5b; +disconnect con5c; +select "con 5a, 5b, 5c, 6a, 6b, 6c disconnected" as status; +status +con 5a, 5b, 5c, 6a, 6b, 6c disconnected +call dump_all(); +processlist_user processlist_host +root localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user5 localhost 0 3 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user5 0 3 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 7 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 9 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 9 +truncate table performance_schema.hosts; +call dump_all(); +processlist_user processlist_host +root localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user5 0 3 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 1 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 9 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 9 +truncate table performance_schema.users; +call dump_all(); +processlist_user processlist_host +root localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 1 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 9 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 9 +truncate table performance_schema.accounts; +call dump_all(); +processlist_user processlist_host +root localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 1 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 9 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 9 diff --git a/mysql-test/suite/perfschema/r/connection_3u.result b/mysql-test/suite/perfschema/r/connection_3u.result new file mode 100644 index 00000000..7bb5691c --- /dev/null +++ b/mysql-test/suite/perfschema/r/connection_3u.result @@ -0,0 +1,850 @@ +call dump_all(); +processlist_user processlist_host +root localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 1 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +connect con1a, localhost, user1, , ; +select "user1 in con1a" as status; +status +user1 in con1a +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 2 2 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +connect con1b, localhost, user1, , ; +select "user1 in con1b" as status; +status +user1 in con1b +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user1 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 2 2 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 2 2 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 3 3 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +connect con1c, localhost, user1, , ; +select "user1 in con1c" as status; +status +user1 in con1c +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user1 localhost +user1 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 3 3 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 3 3 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 4 4 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 0 +connect con2a, localhost, user2, , ; +select "user2 in con2a" as status; +status +user2 in con2a +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user1 localhost +user1 localhost +user2 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 3 3 +user2 localhost 1 1 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 3 3 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 5 5 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 1 +connect con2b, localhost, user2, , ; +select "user2 in con2b" as status; +status +user2 in con2b +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user1 localhost +user1 localhost +user2 localhost +user2 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 3 3 +user2 localhost 2 2 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 3 3 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 6 6 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 1 +connect con2c, localhost, user2, , ; +select "user2 in con2c" as status; +status +user2 in con2c +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user1 localhost +user1 localhost +user2 localhost +user2 localhost +user2 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 3 3 +user2 localhost 3 3 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 3 3 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 7 7 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 1 +connect con3a, localhost, user3, , ; +select "user3 in con3a" as status; +status +user3 in con3a +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user1 localhost +user1 localhost +user2 localhost +user2 localhost +user2 localhost +user3 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 3 3 +user2 localhost 3 3 +user3 localhost 1 1 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 3 3 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 8 8 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 2 +connect con3b, localhost, user3, , ; +select "user3 in con3b" as status; +status +user3 in con3b +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user1 localhost +user1 localhost +user2 localhost +user2 localhost +user2 localhost +user3 localhost +user3 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 3 3 +user2 localhost 3 3 +user3 localhost 2 2 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 3 3 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 9 9 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 2 +connect con3c, localhost, user3, , ; +select "user3 in con3c" as status; +status +user3 in con3c +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user1 localhost +user1 localhost +user2 localhost +user2 localhost +user2 localhost +user3 localhost +user3 localhost +user3 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 3 3 +user2 localhost 3 3 +user3 localhost 3 3 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 3 3 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 10 10 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 2 +connection default; +disconnect con1a; +select "con1a disconnected" as status; +status +con1a disconnected +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user1 localhost +user2 localhost +user2 localhost +user2 localhost +user3 localhost +user3 localhost +user3 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 2 3 +user2 localhost 3 3 +user3 localhost 3 3 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 2 3 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 9 10 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 2 +disconnect con2a; +select "con2a disconnected" as status; +status +con2a disconnected +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user1 localhost +user2 localhost +user2 localhost +user3 localhost +user3 localhost +user3 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 2 3 +user2 localhost 2 3 +user3 localhost 3 3 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 2 3 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 8 10 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 2 +disconnect con3a; +select "con3a disconnected" as status; +status +con3a disconnected +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user1 localhost +user2 localhost +user2 localhost +user3 localhost +user3 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 2 3 +user2 localhost 2 3 +user3 localhost 2 3 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 2 3 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 7 10 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 2 +truncate table performance_schema.accounts; +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user1 localhost +user2 localhost +user2 localhost +user3 localhost +user3 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 2 2 +user2 localhost 2 2 +user3 localhost 2 2 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 2 3 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 7 10 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 2 +truncate table performance_schema.users; +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user1 localhost +user2 localhost +user2 localhost +user3 localhost +user3 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 2 2 +user2 localhost 2 2 +user3 localhost 2 2 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 2 2 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 7 10 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 2 +truncate table performance_schema.hosts; +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user1 localhost +user2 localhost +user2 localhost +user3 localhost +user3 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 2 2 +user2 localhost 2 2 +user3 localhost 2 2 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 2 2 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 7 7 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 2 +connect con4a, localhost, user4, , ; +select "user4 in con4a" as status; +status +user4 in con4a +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user1 localhost +user2 localhost +user2 localhost +user3 localhost +user3 localhost +user4 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 2 2 +user2 localhost 2 2 +user3 localhost 2 2 +user4 localhost 1 1 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 2 2 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 8 8 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 3 +connect con4b, localhost, user4, , ; +select "user4 in con4b" as status; +status +user4 in con4b +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user1 localhost +user2 localhost +user2 localhost +user3 localhost +user3 localhost +user4 localhost +user4 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 2 2 +user2 localhost 2 2 +user3 localhost 2 2 +user4 localhost 2 2 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 2 2 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 9 9 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 3 +connect con4c, localhost, user4, , ; +select "user4 in con4c" as status; +status +user4 in con4c +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user1 localhost +user2 localhost +user2 localhost +user3 localhost +user3 localhost +user4 localhost +user4 localhost +user4 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 2 2 +user2 localhost 2 2 +user3 localhost 2 2 +user4 localhost 3 3 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 2 2 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 10 10 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 3 +connection default; +disconnect con1b; +select "con1b disconnected" as status; +status +con1b disconnected +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user2 localhost +user2 localhost +user3 localhost +user3 localhost +user4 localhost +user4 localhost +user4 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 2 +user2 localhost 2 2 +user3 localhost 2 2 +user4 localhost 3 3 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 2 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 9 10 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 3 +disconnect con2b; +select "con2b disconnected" as status; +status +con2b disconnected +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user2 localhost +user3 localhost +user3 localhost +user4 localhost +user4 localhost +user4 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 2 +user2 localhost 1 2 +user3 localhost 2 2 +user4 localhost 3 3 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 2 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 8 10 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 3 +disconnect con3b; +select "con3b disconnected" as status; +status +con3b disconnected +call dump_all(); +processlist_user processlist_host +root localhost +user1 localhost +user2 localhost +user3 localhost +user4 localhost +user4 localhost +user4 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 2 +user2 localhost 1 2 +user3 localhost 1 2 +user4 localhost 3 3 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 2 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 7 10 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 3 +disconnect con1c; +select "con1c disconnected" as status; +status +con1c disconnected +call dump_all(); +processlist_user processlist_host +root localhost +user2 localhost +user3 localhost +user4 localhost +user4 localhost +user4 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 2 +user2 localhost 1 2 +user3 localhost 1 2 +user4 localhost 3 3 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 2 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 6 10 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 3 +disconnect con2c; +select "con2c disconnected" as status; +status +con2c disconnected +call dump_all(); +processlist_user processlist_host +root localhost +user3 localhost +user4 localhost +user4 localhost +user4 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 2 +user2 localhost 0 2 +user3 localhost 1 2 +user4 localhost 3 3 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 2 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 5 10 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 3 +disconnect con3c; +select "con3c disconnected" as status; +status +con3c disconnected +call dump_all(); +processlist_user processlist_host +root localhost +user4 localhost +user4 localhost +user4 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 2 +user2 localhost 0 2 +user3 localhost 0 2 +user4 localhost 3 3 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 2 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 4 10 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 3 +truncate table performance_schema.accounts; +call dump_all(); +processlist_user processlist_host +root localhost +user4 localhost +user4 localhost +user4 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user4 localhost 3 3 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 2 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 4 10 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 3 +truncate table performance_schema.users; +call dump_all(); +processlist_user processlist_host +root localhost +user4 localhost +user4 localhost +user4 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user4 localhost 3 3 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 4 10 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 3 +truncate table performance_schema.hosts; +call dump_all(); +processlist_user processlist_host +root localhost +user4 localhost +user4 localhost +user4 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user4 localhost 3 3 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 4 4 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 3 +connect con5a, localhost, user5, , ; +select "user5 in con5a" as status; +status +user5 in con5a +call dump_all(); +processlist_user processlist_host +root localhost +user4 localhost +user4 localhost +user4 localhost +user5 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user4 localhost 3 3 +user5 localhost 1 1 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user5 1 1 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 5 5 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 3 +connect con5b, localhost, user5, , ; +select "user5 in con5b" as status; +status +user5 in con5b +call dump_all(); +processlist_user processlist_host +root localhost +user4 localhost +user4 localhost +user4 localhost +user5 localhost +user5 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user4 localhost 3 3 +user5 localhost 2 2 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user5 2 2 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 6 6 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 3 +connect con5c, localhost, user5, , ; +select "user5 in con5c" as status; +status +user5 in con5c +call dump_all(); +processlist_user processlist_host +root localhost +user4 localhost +user4 localhost +user4 localhost +user5 localhost +user5 localhost +user5 localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user4 localhost 3 3 +user5 localhost 3 3 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user5 3 3 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 7 7 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 3 +connection default; +disconnect con4a; +disconnect con4b; +disconnect con4c; +disconnect con5a; +disconnect con5b; +disconnect con5c; +select "con 5a, 5b, 5c, 6a, 6b, 6c disconnected" as status; +status +con 5a, 5b, 5c, 6a, 6b, 6c disconnected +call dump_all(); +processlist_user processlist_host +root localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user4 localhost 0 3 +user5 localhost 0 3 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user5 0 3 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 7 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 3 +truncate table performance_schema.hosts; +call dump_all(); +processlist_user processlist_host +root localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user5 0 3 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 1 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 3 +truncate table performance_schema.users; +call dump_all(); +processlist_user processlist_host +root localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 1 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 3 +truncate table performance_schema.accounts; +call dump_all(); +processlist_user processlist_host +root localhost +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 1 +variable_name variable_value +PERFORMANCE_SCHEMA_ACCOUNTS_LOST 0 +PERFORMANCE_SCHEMA_HOSTS_LOST 0 +PERFORMANCE_SCHEMA_USERS_LOST 3 diff --git a/mysql-test/suite/perfschema/r/connection_type_notwin.result b/mysql-test/suite/perfschema/r/connection_type_notwin.result new file mode 100644 index 00000000..079c7134 --- /dev/null +++ b/mysql-test/suite/perfschema/r/connection_type_notwin.result @@ -0,0 +1,79 @@ +# Default connection +select NAME, PROCESSLIST_USER, PROCESSLIST_HOST, CONNECTION_TYPE +from performance_schema.threads +where PROCESSLIST_ID = connection_id(); +NAME thread/sql/one_connection +PROCESSLIST_USER root +PROCESSLIST_HOST localhost +CONNECTION_TYPE Socket +create user 'root'@'santa.claus.ipv4.example.com'; +grant select on *.* to 'root'@'santa.claus.ipv4.example.com'; +create user 'rootssl'@'santa.claus.ipv4.example.com' + require SSL; +grant select on *.* to 'rootssl'@'santa.claus.ipv4.example.com'; +set @old_dbug=@@global.debug_dbug; +set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_fake_ipv4,getaddrinfo_fake_good_ipv4"; +TRUNCATE TABLE mysql.general_log; +SET @old_log_output= @@global.log_output; +SET @old_general_log= @@global.general_log; +SET @old_general_log_file= @@global.general_log_file; +SET GLOBAL general_log_file = '.../log/rewrite_general_con.log'; +SET GLOBAL log_output = 'FILE,TABLE'; +SET GLOBAL general_log= 'ON'; +connect con1, localhost, root,,test; +select NAME, PROCESSLIST_USER, PROCESSLIST_HOST, CONNECTION_TYPE +from performance_schema.threads +where PROCESSLIST_ID = connection_id(); +NAME thread/sql/one_connection +PROCESSLIST_USER root +PROCESSLIST_HOST localhost +CONNECTION_TYPE Socket +disconnect con1; +connect con2, "127.0.0.1", root,,test,$MASTER_MYPORT,; +select NAME, PROCESSLIST_USER, PROCESSLIST_HOST, CONNECTION_TYPE +from performance_schema.threads +where PROCESSLIST_ID = connection_id(); +NAME thread/sql/one_connection +PROCESSLIST_USER root +PROCESSLIST_HOST santa.claus.ipv4.example.com +CONNECTION_TYPE TCP/IP +disconnect con2; +connect con3, "127.0.0.1", rootssl,,test,$MASTER_MYPORT,,SSL; +select NAME, PROCESSLIST_USER, PROCESSLIST_HOST, CONNECTION_TYPE +from performance_schema.threads +where PROCESSLIST_ID = connection_id(); +NAME thread/sql/one_connection +PROCESSLIST_USER rootssl +PROCESSLIST_HOST santa.claus.ipv4.example.com +CONNECTION_TYPE SSL/TLS +disconnect con3; +connection default; +SET GLOBAL general_log= 'OFF'; +CREATE TABLE test_log (argument TEXT); +LOAD DATA LOCAL INFILE '.../log/rewrite_general_con.log' + INTO TABLE test_log FIELDS TERMINATED BY '\n' LINES TERMINATED BY '\n'; +select user_host, command_type, argument from mysql.general_log +where command_type = "Connect"; +user_host [root] @ localhost [] +command_type Connect +argument root@localhost on test using Socket +user_host [root] @ santa.claus.ipv4.example.com [192.0.2.4] +command_type Connect +argument root@santa.claus.ipv4.example.com on test using TCP/IP +user_host [rootssl] @ santa.claus.ipv4.example.com [192.0.2.4] +command_type Connect +argument rootssl@santa.claus.ipv4.example.com on test using SSL/TLS +select substring(argument, locate("Connect", argument)) from test_log +where argument like "%Connect%on test%"; +substring(argument, locate("Connect", argument)) Connect root@localhost on test using Socket +substring(argument, locate("Connect", argument)) Connect root@santa.claus.ipv4.example.com on test using TCP/IP +substring(argument, locate("Connect", argument)) Connect rootssl@santa.claus.ipv4.example.com on test using SSL/TLS +DROP TABLE test_log; +SET GLOBAL general_log_file= @old_general_log_file; +SET GLOBAL general_log= @old_general_log; +SET GLOBAL log_output= @old_log_output; +set global debug_dbug= @old_dbug; +revoke select on *.* from 'root'@'santa.claus.ipv4.example.com'; +drop user 'root'@'santa.claus.ipv4.example.com'; +revoke select on *.* from 'rootssl'@'santa.claus.ipv4.example.com'; +drop user 'rootssl'@'santa.claus.ipv4.example.com'; diff --git a/mysql-test/suite/perfschema/r/connection_type_win.result b/mysql-test/suite/perfschema/r/connection_type_win.result new file mode 100644 index 00000000..c6c8b6cc --- /dev/null +++ b/mysql-test/suite/perfschema/r/connection_type_win.result @@ -0,0 +1,77 @@ +# Default connection +select NAME, PROCESSLIST_USER, PROCESSLIST_HOST, CONNECTION_TYPE +from performance_schema.threads +where PROCESSLIST_ID = connection_id(); +NAME thread/sql/one_connection +PROCESSLIST_USER root +PROCESSLIST_HOST localhost +CONNECTION_TYPE TCP/IP +create user 'root'@'santa.claus.ipv4.example.com'; +grant select on *.* to 'root'@'santa.claus.ipv4.example.com'; +create user 'rootssl'@'santa.claus.ipv4.example.com' + require SSL; +grant select on *.* to 'rootssl'@'santa.claus.ipv4.example.com'; +set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_fake_ipv4,getaddrinfo_fake_good_ipv4"; +TRUNCATE TABLE mysql.general_log; +SET @old_log_output= @@global.log_output; +SET @old_general_log= @@global.general_log; +SET @old_general_log_file= @@global.general_log_file; +SET GLOBAL general_log_file = '.../log/rewrite_general_con.log'; +SET GLOBAL log_output = 'FILE,TABLE'; +SET GLOBAL general_log= 'ON'; +connect con1, localhost, root,,; +select NAME, PROCESSLIST_USER, PROCESSLIST_HOST, CONNECTION_TYPE +from performance_schema.threads +where PROCESSLIST_ID = connection_id(); +NAME thread/sql/one_connection +PROCESSLIST_USER root +PROCESSLIST_HOST santa.claus.ipv4.example.com +CONNECTION_TYPE TCP/IP +disconnect con1; +connect con2, "127.0.0.1", root,,test,$MASTER_MYPORT,; +select NAME, PROCESSLIST_USER, PROCESSLIST_HOST, CONNECTION_TYPE +from performance_schema.threads +where PROCESSLIST_ID = connection_id(); +NAME thread/sql/one_connection +PROCESSLIST_USER root +PROCESSLIST_HOST santa.claus.ipv4.example.com +CONNECTION_TYPE TCP/IP +disconnect con2; +connect con3, "127.0.0.1", rootssl,,test,$MASTER_MYPORT,,SSL; +select NAME, PROCESSLIST_USER, PROCESSLIST_HOST, CONNECTION_TYPE +from performance_schema.threads +where PROCESSLIST_ID = connection_id(); +NAME thread/sql/one_connection +PROCESSLIST_USER rootssl +PROCESSLIST_HOST santa.claus.ipv4.example.com +CONNECTION_TYPE SSL/TLS +disconnect con3; +connection default; +SET GLOBAL general_log= 'OFF'; +CREATE TABLE test_log (argument TEXT); +LOAD DATA LOCAL INFILE '.../log/rewrite_general_con.log' + INTO TABLE test_log FIELDS TERMINATED BY '\n' LINES TERMINATED BY '\n'; +select user_host, command_type, argument from mysql.general_log +where command_type = "Connect"; +user_host [root] @ santa.claus.ipv4.example.com [192.0.2.4] +command_type Connect +argument root@santa.claus.ipv4.example.com on using TCP/IP +user_host [root] @ santa.claus.ipv4.example.com [192.0.2.4] +command_type Connect +argument root@santa.claus.ipv4.example.com on test using TCP/IP +user_host [rootssl] @ santa.claus.ipv4.example.com [192.0.2.4] +command_type Connect +argument rootssl@santa.claus.ipv4.example.com on test using SSL/TLS +select substring(argument, locate("Connect", argument)) from test_log +where argument like "%Connect%on test%"; +substring(argument, locate("Connect", argument)) Connect root@santa.claus.ipv4.example.com on test using TCP/IP +substring(argument, locate("Connect", argument)) Connect rootssl@santa.claus.ipv4.example.com on test using SSL/TLS +DROP TABLE test_log; +SET GLOBAL general_log_file= @old_general_log_file; +SET GLOBAL general_log= @old_general_log; +SET GLOBAL log_output= @old_log_output; +set global debug_dbug= default; +revoke select on *.* from 'root'@'santa.claus.ipv4.example.com'; +drop user 'root'@'santa.claus.ipv4.example.com'; +revoke select on *.* from 'rootssl'@'santa.claus.ipv4.example.com'; +drop user 'rootssl'@'santa.claus.ipv4.example.com'; diff --git a/mysql-test/suite/perfschema/r/csv_table_io.result b/mysql-test/suite/perfschema/r/csv_table_io.result new file mode 100644 index 00000000..3d32f452 --- /dev/null +++ b/mysql-test/suite/perfschema/r/csv_table_io.result @@ -0,0 +1,145 @@ +drop table if exists test.marker; +create table test.marker(a int); +update performance_schema.setup_consumers set enabled='NO'; +update performance_schema.setup_instruments set enabled='NO'; +update performance_schema.setup_instruments set enabled='YES' + where name like "wait/io/table/%"; +truncate table performance_schema.events_waits_history_long; +flush status; +flush tables; +drop table if exists test.no_index_tab; +update performance_schema.setup_consumers set enabled='YES'; +insert into marker set a = 1; +create table test.no_index_tab +( a varchar(255) not null, b int not null) engine = CSV; +insert into marker set a = 1; +show create table test.no_index_tab; +Table Create Table +no_index_tab CREATE TABLE `no_index_tab` ( + `a` varchar(255) NOT NULL, + `b` int(11) NOT NULL +) ENGINE=CSV DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci +insert into marker set a = 1; +insert into test.no_index_tab set a = 'foo', b = 1; +insert into marker set a = 1; +insert into test.no_index_tab set a = 'foo', b = 2; +insert into marker set a = 1; +insert into test.no_index_tab set a = 'foo', b = 3; +insert into marker set a = 1; +select * from test.no_index_tab; +a b +foo 1 +foo 2 +foo 3 +insert into marker set a = 1; +update test.no_index_tab set a = 'bar'; +insert into marker set a = 1; +select * from test.no_index_tab limit 2; +a b +bar 1 +bar 2 +insert into marker set a = 1; +delete from test.no_index_tab where b = 3; +insert into marker set a = 1; +select * from test.no_index_tab; +a b +bar 1 +bar 2 +insert into marker set a = 1; +optimize table test.no_index_tab; +Table Op Msg_type Msg_text +test.no_index_tab optimize note The storage engine for the table doesn't support optimize +insert into marker set a = 1; +select * from test.no_index_tab; +a b +bar 1 +bar 2 +insert into marker set a = 1; +truncate table test.no_index_tab; +insert into marker set a = 1; +drop table test.no_index_tab; +update performance_schema.setup_consumers set enabled='NO'; +select event_name, +left(source, locate(":", source)) as short_source, +object_type, object_schema, +if (locate("#sql-", object_name), "#sql-XXXX", object_name) +as pretty_name, +operation, number_of_bytes +from performance_schema.events_waits_history_long +where event_name like 'wait/io/table/%' + and object_schema in ("test") +order by thread_id, event_id; +event_name short_source object_type object_schema pretty_name operation number_of_bytes +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test no_index_tab insert 1 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test no_index_tab insert 1 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test no_index_tab insert 1 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 3 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 1 +wait/io/table/sql/handler TABLE test no_index_tab update 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 1 +wait/io/table/sql/handler TABLE test no_index_tab update 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 1 +wait/io/table/sql/handler TABLE test no_index_tab update 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 1 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 2 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 1 +wait/io/table/sql/handler TABLE test no_index_tab delete 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 1 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 2 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 2 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test marker insert 1 +show global status like 'performance_schema_%'; +Variable_name Value +Performance_schema_accounts_lost 0 +Performance_schema_cond_classes_lost 0 +Performance_schema_cond_instances_lost 0 +Performance_schema_digest_lost 0 +Performance_schema_file_classes_lost 0 +Performance_schema_file_handles_lost 0 +Performance_schema_file_instances_lost 0 +Performance_schema_hosts_lost 0 +Performance_schema_index_stat_lost 0 +Performance_schema_locker_lost 0 +Performance_schema_memory_classes_lost 0 +Performance_schema_metadata_lock_lost 0 +Performance_schema_mutex_classes_lost 0 +Performance_schema_mutex_instances_lost 0 +Performance_schema_nested_statement_lost 0 +Performance_schema_prepared_statements_lost 0 +Performance_schema_program_lost 0 +Performance_schema_rwlock_classes_lost 0 +Performance_schema_rwlock_instances_lost 0 +Performance_schema_session_connect_attrs_lost 0 +Performance_schema_socket_classes_lost 0 +Performance_schema_socket_instances_lost 0 +Performance_schema_stage_classes_lost 0 +Performance_schema_statement_classes_lost 0 +Performance_schema_table_handles_lost 0 +Performance_schema_table_instances_lost 0 +Performance_schema_table_lock_stat_lost 0 +Performance_schema_thread_classes_lost 0 +Performance_schema_thread_instances_lost 0 +Performance_schema_users_lost 0 +truncate performance_schema.events_waits_history_long; +flush status; +update performance_schema.setup_consumers set enabled='NO'; +truncate performance_schema.events_waits_history_long; +drop table test.marker; +flush status; +update performance_schema.setup_instruments set enabled='YES'; +update performance_schema.setup_consumers set enabled='YES'; diff --git a/mysql-test/suite/perfschema/r/ddl_accounts.result b/mysql-test/suite/perfschema/r/ddl_accounts.result new file mode 100644 index 00000000..4884f053 --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_accounts.result @@ -0,0 +1,8 @@ +alter table performance_schema.accounts +add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.accounts; +ALTER TABLE performance_schema.accounts ADD INDEX test_index(CURRENT_CONNECTIONS); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index ON performance_schema.accounts(CURRENT_CONNECTIONS); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_cond_instances.result b/mysql-test/suite/perfschema/r/ddl_cond_instances.result new file mode 100644 index 00000000..f5e65bea --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_cond_instances.result @@ -0,0 +1,8 @@ +alter table performance_schema.cond_instances add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.cond_instances; +ERROR HY000: Invalid performance_schema usage +ALTER TABLE performance_schema.cond_instances ADD INDEX test_index(NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index ON performance_schema.cond_instances(NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_esgs_by_account_by_event_name.result b/mysql-test/suite/perfschema/r/ddl_esgs_by_account_by_event_name.result new file mode 100644 index 00000000..449a19e5 --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_esgs_by_account_by_event_name.result @@ -0,0 +1,10 @@ +alter table performance_schema.events_stages_summary_by_account_by_event_name +add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.events_stages_summary_by_account_by_event_name; +ALTER TABLE performance_schema.events_stages_summary_by_account_by_event_name +ADD INDEX test_index(USERNAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index +ON performance_schema.events_stages_summary_by_account_by_event_name(USERNAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_esgs_by_host_by_event_name.result b/mysql-test/suite/perfschema/r/ddl_esgs_by_host_by_event_name.result new file mode 100644 index 00000000..4760dbda --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_esgs_by_host_by_event_name.result @@ -0,0 +1,10 @@ +alter table performance_schema.events_stages_summary_by_host_by_event_name +add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.events_stages_summary_by_host_by_event_name; +ALTER TABLE performance_schema.events_stages_summary_by_host_by_event_name +ADD INDEX test_index(HOSTNAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index +ON performance_schema.events_stages_summary_by_host_by_event_name(HOSTNAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_esgs_by_thread_by_event_name.result b/mysql-test/suite/perfschema/r/ddl_esgs_by_thread_by_event_name.result new file mode 100644 index 00000000..0e070125 --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_esgs_by_thread_by_event_name.result @@ -0,0 +1,9 @@ +alter table performance_schema.events_stages_summary_by_thread_by_event_name +add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.events_stages_summary_by_thread_by_event_name; +ALTER TABLE performance_schema.events_stages_summary_by_thread_by_event_name ADD INDEX test_index(THREAD_ID); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index +ON performance_schema.events_stages_summary_by_thread_by_event_name(THREAD_ID); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_esgs_by_user_by_event_name.result b/mysql-test/suite/perfschema/r/ddl_esgs_by_user_by_event_name.result new file mode 100644 index 00000000..1d797234 --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_esgs_by_user_by_event_name.result @@ -0,0 +1,10 @@ +alter table performance_schema.events_stages_summary_by_user_by_event_name +add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.events_stages_summary_by_user_by_event_name; +ALTER TABLE performance_schema.events_stages_summary_by_user_by_event_name +ADD INDEX test_index(USERNAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index +ON performance_schema.events_stages_summary_by_user_by_event_name(USERNAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_esgs_global_by_event_name.result b/mysql-test/suite/perfschema/r/ddl_esgs_global_by_event_name.result new file mode 100644 index 00000000..0959af39 --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_esgs_global_by_event_name.result @@ -0,0 +1,10 @@ +alter table performance_schema.events_stages_summary_global_by_event_name +add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.events_stages_summary_global_by_event_name; +ALTER TABLE performance_schema.events_stages_summary_global_by_event_name +ADD INDEX test_index(EVENT_NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index +ON performance_schema.events_stages_summary_global_by_event_name(EVENT_NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_esms_by_account_by_event_name.result b/mysql-test/suite/perfschema/r/ddl_esms_by_account_by_event_name.result new file mode 100644 index 00000000..732f52d3 --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_esms_by_account_by_event_name.result @@ -0,0 +1,10 @@ +alter table performance_schema.events_statements_summary_by_account_by_event_name +add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.events_statements_summary_by_account_by_event_name; +ALTER TABLE performance_schema.events_statements_summary_by_account_by_event_name +ADD INDEX test_index(USERNAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index +ON performance_schema.events_statements_summary_by_account_by_event_name(USERNAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_esms_by_digest.result b/mysql-test/suite/perfschema/r/ddl_esms_by_digest.result new file mode 100644 index 00000000..2a2d0b12 --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_esms_by_digest.result @@ -0,0 +1,9 @@ +alter table performance_schema.events_statements_summary_by_digest +add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.events_statements_summary_by_digest; +ALTER TABLE performance_schema.events_statements_summary_by_digest ADD INDEX test_index(DIGEST); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index +ON performance_schema.events_statements_summary_by_digest(DIGEST); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_esms_by_host_by_event_name.result b/mysql-test/suite/perfschema/r/ddl_esms_by_host_by_event_name.result new file mode 100644 index 00000000..efedfe2e --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_esms_by_host_by_event_name.result @@ -0,0 +1,10 @@ +alter table performance_schema.events_statements_summary_by_host_by_event_name +add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.events_statements_summary_by_host_by_event_name; +ALTER TABLE performance_schema.events_statements_summary_by_host_by_event_name +ADD INDEX test_index(HOSTNAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index +ON performance_schema.events_statements_summary_by_host_by_event_name(HOSTNAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_esms_by_program.result b/mysql-test/suite/perfschema/r/ddl_esms_by_program.result new file mode 100644 index 00000000..66e49f8a --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_esms_by_program.result @@ -0,0 +1,9 @@ +alter table performance_schema.events_statements_summary_by_program +add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.events_statements_summary_by_program; +ALTER TABLE performance_schema.events_statements_summary_by_program ADD INDEX test_index(OBJECT_NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index +ON performance_schema.events_statements_summary_by_program(OBJECT_NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_esms_by_thread_by_event_name.result b/mysql-test/suite/perfschema/r/ddl_esms_by_thread_by_event_name.result new file mode 100644 index 00000000..edd03d38 --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_esms_by_thread_by_event_name.result @@ -0,0 +1,9 @@ +alter table performance_schema.events_statements_summary_by_thread_by_event_name +add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.events_statements_summary_by_thread_by_event_name; +ALTER TABLE performance_schema.events_statements_summary_by_thread_by_event_name ADD INDEX test_index(THREAD_ID); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index +ON performance_schema.events_statements_summary_by_thread_by_event_name(THREAD_ID); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_esms_by_user_by_event_name.result b/mysql-test/suite/perfschema/r/ddl_esms_by_user_by_event_name.result new file mode 100644 index 00000000..0334e578 --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_esms_by_user_by_event_name.result @@ -0,0 +1,10 @@ +alter table performance_schema.events_statements_summary_by_user_by_event_name +add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.events_statements_summary_by_user_by_event_name; +ALTER TABLE performance_schema.events_statements_summary_by_user_by_event_name +ADD INDEX test_index(USERNAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index +ON performance_schema.events_statements_summary_by_user_by_event_name(USERNAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_esms_global_by_event_name.result b/mysql-test/suite/perfschema/r/ddl_esms_global_by_event_name.result new file mode 100644 index 00000000..d2491c67 --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_esms_global_by_event_name.result @@ -0,0 +1,10 @@ +alter table performance_schema.events_statements_summary_global_by_event_name +add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.events_statements_summary_global_by_event_name; +ALTER TABLE performance_schema.events_statements_summary_global_by_event_name +ADD INDEX test_index(EVENT_NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index +ON performance_schema.events_statements_summary_global_by_event_name(EVENT_NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_ets_by_account_by_event_name.result b/mysql-test/suite/perfschema/r/ddl_ets_by_account_by_event_name.result new file mode 100644 index 00000000..23bd048d --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_ets_by_account_by_event_name.result @@ -0,0 +1,10 @@ +alter table performance_schema.events_transactions_summary_by_account_by_event_name +add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.events_transactions_summary_by_account_by_event_name; +ALTER TABLE performance_schema.events_transactions_summary_by_account_by_event_name +ADD INDEX test_index(USERNAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index +ON performance_schema.events_transactions_summary_by_account_by_event_name(USERNAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_ets_by_host_by_event_name.result b/mysql-test/suite/perfschema/r/ddl_ets_by_host_by_event_name.result new file mode 100644 index 00000000..7e3b5ccd --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_ets_by_host_by_event_name.result @@ -0,0 +1,10 @@ +alter table performance_schema.events_transactions_summary_by_host_by_event_name +add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.events_transactions_summary_by_host_by_event_name; +ALTER TABLE performance_schema.events_transactions_summary_by_host_by_event_name +ADD INDEX test_index(HOSTNAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index +ON performance_schema.events_transactions_summary_by_host_by_event_name(HOSTNAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_ets_by_thread_by_event_name.result b/mysql-test/suite/perfschema/r/ddl_ets_by_thread_by_event_name.result new file mode 100644 index 00000000..bd3c57f9 --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_ets_by_thread_by_event_name.result @@ -0,0 +1,9 @@ +alter table performance_schema.events_transactions_summary_by_thread_by_event_name +add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.events_transactions_summary_by_thread_by_event_name; +ALTER TABLE performance_schema.events_transactions_summary_by_thread_by_event_name ADD INDEX test_index(THREAD_ID); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index +ON performance_schema.events_transactions_summary_by_thread_by_event_name(THREAD_ID); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_ets_by_user_by_event_name.result b/mysql-test/suite/perfschema/r/ddl_ets_by_user_by_event_name.result new file mode 100644 index 00000000..981de1a7 --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_ets_by_user_by_event_name.result @@ -0,0 +1,10 @@ +alter table performance_schema.events_transactions_summary_by_user_by_event_name +add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.events_transactions_summary_by_user_by_event_name; +ALTER TABLE performance_schema.events_transactions_summary_by_user_by_event_name +ADD INDEX test_index(USERNAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index +ON performance_schema.events_transactions_summary_by_user_by_event_name(USERNAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_ets_global_by_event_name.result b/mysql-test/suite/perfschema/r/ddl_ets_global_by_event_name.result new file mode 100644 index 00000000..13606ace --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_ets_global_by_event_name.result @@ -0,0 +1,10 @@ +alter table performance_schema.events_transactions_summary_global_by_event_name +add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.events_transactions_summary_global_by_event_name; +ALTER TABLE performance_schema.events_transactions_summary_global_by_event_name +ADD INDEX test_index(EVENT_NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index +ON performance_schema.events_transactions_summary_global_by_event_name(EVENT_NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_events_stages_current.result b/mysql-test/suite/perfschema/r/ddl_events_stages_current.result new file mode 100644 index 00000000..cb7202bd --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_events_stages_current.result @@ -0,0 +1,10 @@ +alter table performance_schema.events_stages_current add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.events_stages_current; +ALTER TABLE performance_schema.events_stages_current ADD INDEX test_index(EVENT_ID); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index ON performance_schema.events_stages_current(EVENT_ID); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME ORDINAL_POSITION COLUMN_DEFAULT IS_NULLABLE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME COLUMN_TYPE COLUMN_KEY EXTRA PRIVILEGES COLUMN_COMMENT IS_GENERATED GENERATION_EXPRESSION +def performance_schema events_stages_current WORK_COMPLETED 9 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint(20) unsigned select,insert,update,references The number of work units completed for the stage. NULL if the stage event progress is not instrumented. NEVER NULL +def performance_schema events_stages_current WORK_ESTIMATED 10 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint(20) unsigned select,insert,update,references The number of work units expected for the stage. NULL if the stage event progress is not instrumented. NEVER NULL diff --git a/mysql-test/suite/perfschema/r/ddl_events_stages_history.result b/mysql-test/suite/perfschema/r/ddl_events_stages_history.result new file mode 100644 index 00000000..e12c8a1d --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_events_stages_history.result @@ -0,0 +1,10 @@ +alter table performance_schema.events_stages_history add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.events_stages_history; +ALTER TABLE performance_schema.events_stages_history ADD INDEX test_index(EVENT_ID); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index ON performance_schema.events_stages_history(EVENT_ID); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME ORDINAL_POSITION COLUMN_DEFAULT IS_NULLABLE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME COLUMN_TYPE COLUMN_KEY EXTRA PRIVILEGES COLUMN_COMMENT IS_GENERATED GENERATION_EXPRESSION +def performance_schema events_stages_history WORK_COMPLETED 9 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint(20) unsigned select,insert,update,references The number of work units completed for the stage. NULL if the stage event progress is not instrumented. NEVER NULL +def performance_schema events_stages_history WORK_ESTIMATED 10 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint(20) unsigned select,insert,update,references The number of work units expected for the stage. NULL if the stage event progress is not instrumented. NEVER NULL diff --git a/mysql-test/suite/perfschema/r/ddl_events_stages_history_long.result b/mysql-test/suite/perfschema/r/ddl_events_stages_history_long.result new file mode 100644 index 00000000..db8f9b8c --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_events_stages_history_long.result @@ -0,0 +1,10 @@ +alter table performance_schema.events_stages_history_long add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.events_stages_history_long; +ALTER TABLE performance_schema.events_stages_history_long ADD INDEX test_index(EVENT_ID); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index ON performance_schema.events_stages_history_long(EVENT_ID); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME ORDINAL_POSITION COLUMN_DEFAULT IS_NULLABLE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME COLUMN_TYPE COLUMN_KEY EXTRA PRIVILEGES COLUMN_COMMENT IS_GENERATED GENERATION_EXPRESSION +def performance_schema events_stages_history_long WORK_COMPLETED 9 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint(20) unsigned select,insert,update,references The number of work units completed for the stage. NULL if the stage event progress is not instrumented. NEVER NULL +def performance_schema events_stages_history_long WORK_ESTIMATED 10 NULL YES bigint NULL NULL 20 0 NULL NULL NULL bigint(20) unsigned select,insert,update,references The number of work units expected for the stage. NULL if the stage event progress is not instrumented. NEVER NULL diff --git a/mysql-test/suite/perfschema/r/ddl_events_statements_current.result b/mysql-test/suite/perfschema/r/ddl_events_statements_current.result new file mode 100644 index 00000000..bf458ab5 --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_events_statements_current.result @@ -0,0 +1,7 @@ +alter table performance_schema.events_statements_current add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.events_statements_current; +ALTER TABLE performance_schema.events_statements_current ADD INDEX test_index(EVENT_ID); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index ON performance_schema.events_statements_current(EVENT_ID); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_events_statements_history.result b/mysql-test/suite/perfschema/r/ddl_events_statements_history.result new file mode 100644 index 00000000..1ef7f6c8 --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_events_statements_history.result @@ -0,0 +1,7 @@ +alter table performance_schema.events_statements_history add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.events_statements_history; +ALTER TABLE performance_schema.events_statements_history ADD INDEX test_index(EVENT_ID); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index ON performance_schema.events_statements_history(EVENT_ID); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_events_statements_history_long.result b/mysql-test/suite/perfschema/r/ddl_events_statements_history_long.result new file mode 100644 index 00000000..e3f75681 --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_events_statements_history_long.result @@ -0,0 +1,7 @@ +alter table performance_schema.events_statements_history_long add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.events_statements_history_long; +ALTER TABLE performance_schema.events_statements_history_long ADD INDEX test_index(EVENT_ID); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index ON performance_schema.events_statements_history_long(EVENT_ID); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_events_transactions_current.result b/mysql-test/suite/perfschema/r/ddl_events_transactions_current.result new file mode 100644 index 00000000..6d4d2801 --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_events_transactions_current.result @@ -0,0 +1,7 @@ +alter table performance_schema.events_transactions_current add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.events_transactions_current; +ALTER TABLE performance_schema.events_transactions_current ADD INDEX test_index(EVENT_ID); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index ON performance_schema.events_transactions_current(EVENT_ID); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_events_transactions_history.result b/mysql-test/suite/perfschema/r/ddl_events_transactions_history.result new file mode 100644 index 00000000..dbbac3ea --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_events_transactions_history.result @@ -0,0 +1,7 @@ +alter table performance_schema.events_transactions_history add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.events_transactions_history; +ALTER TABLE performance_schema.events_transactions_history ADD INDEX test_index(EVENT_ID); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index ON performance_schema.events_transactions_history(EVENT_ID); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_events_transactions_history_long.result b/mysql-test/suite/perfschema/r/ddl_events_transactions_history_long.result new file mode 100644 index 00000000..7a4a5f05 --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_events_transactions_history_long.result @@ -0,0 +1,7 @@ +alter table performance_schema.events_transactions_history_long add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.events_transactions_history_long; +ALTER TABLE performance_schema.events_transactions_history_long ADD INDEX test_index(EVENT_ID); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index ON performance_schema.events_transactions_history_long(EVENT_ID); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_events_waits_current.result b/mysql-test/suite/perfschema/r/ddl_events_waits_current.result new file mode 100644 index 00000000..545134e5 --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_events_waits_current.result @@ -0,0 +1,7 @@ +alter table performance_schema.events_waits_current add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.events_waits_current; +ALTER TABLE performance_schema.events_waits_current ADD INDEX test_index(EVENT_ID); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index ON performance_schema.events_waits_current(EVENT_ID); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_events_waits_history.result b/mysql-test/suite/perfschema/r/ddl_events_waits_history.result new file mode 100644 index 00000000..2907e865 --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_events_waits_history.result @@ -0,0 +1,7 @@ +alter table performance_schema.events_waits_history add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.events_waits_history; +ALTER TABLE performance_schema.events_waits_history ADD INDEX test_index(EVENT_ID); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index ON performance_schema.events_waits_history(EVENT_ID); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_events_waits_history_long.result b/mysql-test/suite/perfschema/r/ddl_events_waits_history_long.result new file mode 100644 index 00000000..8926d393 --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_events_waits_history_long.result @@ -0,0 +1,7 @@ +alter table performance_schema.events_waits_history_long add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.events_waits_history_long; +ALTER TABLE performance_schema.events_waits_history_long ADD INDEX test_index(EVENT_ID); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index ON performance_schema.events_waits_history_long(EVENT_ID); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_ews_by_account_by_event_name.result b/mysql-test/suite/perfschema/r/ddl_ews_by_account_by_event_name.result new file mode 100644 index 00000000..2b50cd10 --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_ews_by_account_by_event_name.result @@ -0,0 +1,10 @@ +alter table performance_schema.events_waits_summary_by_account_by_event_name +add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.events_waits_summary_by_account_by_event_name; +ALTER TABLE performance_schema.events_waits_summary_by_account_by_event_name +ADD INDEX test_index(USERNAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index +ON performance_schema.events_waits_summary_by_account_by_event_name(USERNAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_ews_by_host_by_event_name.result b/mysql-test/suite/perfschema/r/ddl_ews_by_host_by_event_name.result new file mode 100644 index 00000000..5f1886b5 --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_ews_by_host_by_event_name.result @@ -0,0 +1,10 @@ +alter table performance_schema.events_waits_summary_by_host_by_event_name +add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.events_waits_summary_by_host_by_event_name; +ALTER TABLE performance_schema.events_waits_summary_by_host_by_event_name +ADD INDEX test_index(HOSTNAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index +ON performance_schema.events_waits_summary_by_host_by_event_name(HOSTNAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_ews_by_instance.result b/mysql-test/suite/perfschema/r/ddl_ews_by_instance.result new file mode 100644 index 00000000..94168f16 --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_ews_by_instance.result @@ -0,0 +1,7 @@ +alter table performance_schema.events_waits_summary_by_instance add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.events_waits_summary_by_instance; +ALTER TABLE performance_schema.events_waits_summary_by_instance ADD INDEX test_index(EVENT_NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index ON performance_schema.events_waits_summary_by_instance(EVENT_NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_ews_by_thread_by_event_name.result b/mysql-test/suite/perfschema/r/ddl_ews_by_thread_by_event_name.result new file mode 100644 index 00000000..1694ff92 --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_ews_by_thread_by_event_name.result @@ -0,0 +1,9 @@ +alter table performance_schema.events_waits_summary_by_thread_by_event_name +add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.events_waits_summary_by_thread_by_event_name; +ALTER TABLE performance_schema.events_waits_summary_by_thread_by_event_name ADD INDEX test_index(THREAD_ID); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index +ON performance_schema.events_waits_summary_by_thread_by_event_name(THREAD_ID); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_ews_by_user_by_event_name.result b/mysql-test/suite/perfschema/r/ddl_ews_by_user_by_event_name.result new file mode 100644 index 00000000..1ed4a8ef --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_ews_by_user_by_event_name.result @@ -0,0 +1,10 @@ +alter table performance_schema.events_waits_summary_by_user_by_event_name +add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.events_waits_summary_by_user_by_event_name; +ALTER TABLE performance_schema.events_waits_summary_by_user_by_event_name +ADD INDEX test_index(USERNAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index +ON performance_schema.events_waits_summary_by_user_by_event_name(USERNAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_ews_global_by_event_name.result b/mysql-test/suite/perfschema/r/ddl_ews_global_by_event_name.result new file mode 100644 index 00000000..3b8cf851 --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_ews_global_by_event_name.result @@ -0,0 +1,10 @@ +alter table performance_schema.events_waits_summary_global_by_event_name +add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.events_waits_summary_global_by_event_name; +ALTER TABLE performance_schema.events_waits_summary_global_by_event_name +ADD INDEX test_index(EVENT_NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index +ON performance_schema.events_waits_summary_global_by_event_name(EVENT_NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_file_instances.result b/mysql-test/suite/perfschema/r/ddl_file_instances.result new file mode 100644 index 00000000..e0eacf57 --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_file_instances.result @@ -0,0 +1,8 @@ +alter table performance_schema.file_instances add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.file_instances; +ERROR HY000: Invalid performance_schema usage +ALTER TABLE performance_schema.file_instances ADD INDEX test_index(FILE_NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index ON performance_schema.file_instances(FILE_NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_fs_by_event_name.result b/mysql-test/suite/perfschema/r/ddl_fs_by_event_name.result new file mode 100644 index 00000000..11bff410 --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_fs_by_event_name.result @@ -0,0 +1,7 @@ +alter table performance_schema.file_summary_by_event_name add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.file_summary_by_event_name; +ALTER TABLE performance_schema.file_summary_by_event_name ADD INDEX test_index(NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index ON performance_schema.file_summary_by_event_name(NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_fs_by_instance.result b/mysql-test/suite/perfschema/r/ddl_fs_by_instance.result new file mode 100644 index 00000000..b28847b3 --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_fs_by_instance.result @@ -0,0 +1,7 @@ +alter table performance_schema.file_summary_by_instance add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.file_summary_by_instance; +ALTER TABLE performance_schema.file_summary_by_instance ADD INDEX test_index(NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index ON performance_schema.file_summary_by_instance(NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_global_status.result b/mysql-test/suite/perfschema/r/ddl_global_status.result new file mode 100644 index 00000000..10af700e --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_global_status.result @@ -0,0 +1,10 @@ +alter table performance_schema.global_status +add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.global_status; +ALTER TABLE performance_schema.global_status +ADD INDEX test_index(VARIABLE_NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index +ON performance_schema.global_status(VARIABLE_NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_global_variables.result b/mysql-test/suite/perfschema/r/ddl_global_variables.result new file mode 100644 index 00000000..e15b8166 --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_global_variables.result @@ -0,0 +1,11 @@ +alter table performance_schema.global_variables +add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.global_variables; +ERROR HY000: Invalid performance_schema usage +ALTER TABLE performance_schema.global_variables +ADD INDEX test_index(VARIABLE_NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index +ON performance_schema.global_variables(VARIABLE_NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_host_cache.result b/mysql-test/suite/perfschema/r/ddl_host_cache.result new file mode 100644 index 00000000..0f938b5f --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_host_cache.result @@ -0,0 +1,7 @@ +alter table performance_schema.host_cache add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.host_cache; +ALTER TABLE performance_schema.host_cache ADD INDEX test_index(IP); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index ON performance_schema.host_cache(IP); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_hosts.result b/mysql-test/suite/perfschema/r/ddl_hosts.result new file mode 100644 index 00000000..3a84c9d0 --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_hosts.result @@ -0,0 +1,8 @@ +alter table performance_schema.hosts +add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.hosts; +ALTER TABLE performance_schema.hosts ADD INDEX test_index(CURRENT_CONNECTIONS); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index ON performance_schema.hosts(CURRENT_CONNECTIONS); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_mems_by_account_by_event_name.result b/mysql-test/suite/perfschema/r/ddl_mems_by_account_by_event_name.result new file mode 100644 index 00000000..4d7581a7 --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_mems_by_account_by_event_name.result @@ -0,0 +1,10 @@ +alter table performance_schema.memory_summary_by_account_by_event_name +add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.memory_summary_by_account_by_event_name; +ALTER TABLE performance_schema.memory_summary_by_account_by_event_name +ADD INDEX test_index(USERNAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index +ON performance_schema.memory_summary_by_account_by_event_name(USERNAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_mems_by_host_by_event_name.result b/mysql-test/suite/perfschema/r/ddl_mems_by_host_by_event_name.result new file mode 100644 index 00000000..dae5dd24 --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_mems_by_host_by_event_name.result @@ -0,0 +1,10 @@ +alter table performance_schema.memory_summary_by_host_by_event_name +add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.memory_summary_by_host_by_event_name; +ALTER TABLE performance_schema.memory_summary_by_host_by_event_name +ADD INDEX test_index(USERNAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index +ON performance_schema.memory_summary_by_host_by_event_name(USERNAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_mems_by_thread_by_event_name.result b/mysql-test/suite/perfschema/r/ddl_mems_by_thread_by_event_name.result new file mode 100644 index 00000000..eae9e702 --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_mems_by_thread_by_event_name.result @@ -0,0 +1,10 @@ +alter table performance_schema.memory_summary_by_thread_by_event_name +add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.memory_summary_by_thread_by_event_name; +ALTER TABLE performance_schema.memory_summary_by_thread_by_event_name +ADD INDEX test_index(USERNAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index +ON performance_schema.memory_summary_by_thread_by_event_name(USERNAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_mems_by_user_by_event_name.result b/mysql-test/suite/perfschema/r/ddl_mems_by_user_by_event_name.result new file mode 100644 index 00000000..de6d52b6 --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_mems_by_user_by_event_name.result @@ -0,0 +1,10 @@ +alter table performance_schema.memory_summary_by_user_by_event_name +add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.memory_summary_by_user_by_event_name; +ALTER TABLE performance_schema.memory_summary_by_user_by_event_name +ADD INDEX test_index(USERNAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index +ON performance_schema.memory_summary_by_user_by_event_name(USERNAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_mems_global_by_event_name.result b/mysql-test/suite/perfschema/r/ddl_mems_global_by_event_name.result new file mode 100644 index 00000000..9ed8b2b6 --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_mems_global_by_event_name.result @@ -0,0 +1,10 @@ +alter table performance_schema.memory_summary_global_by_event_name +add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.memory_summary_global_by_event_name; +ALTER TABLE performance_schema.memory_summary_global_by_event_name +ADD INDEX test_index(USERNAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index +ON performance_schema.memory_summary_global_by_event_name(USERNAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_metadata_locks.result b/mysql-test/suite/perfschema/r/ddl_metadata_locks.result new file mode 100644 index 00000000..426ec669 --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_metadata_locks.result @@ -0,0 +1,8 @@ +alter table performance_schema.metadata_locks add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.metadata_locks; +ERROR HY000: Invalid performance_schema usage +ALTER TABLE performance_schema.metadata_locks ADD INDEX test_index(TIMER_NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index ON performance_schema.metadata_locks(TIMER_NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_mutex_instances.result b/mysql-test/suite/perfschema/r/ddl_mutex_instances.result new file mode 100644 index 00000000..c48d9cd9 --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_mutex_instances.result @@ -0,0 +1,8 @@ +alter table performance_schema.mutex_instances add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.mutex_instances; +ERROR HY000: Invalid performance_schema usage +ALTER TABLE performance_schema.mutex_instances ADD INDEX test_index(NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index ON performance_schema.mutex_instances(NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_os_global_by_type.result b/mysql-test/suite/perfschema/r/ddl_os_global_by_type.result new file mode 100644 index 00000000..66e33791 --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_os_global_by_type.result @@ -0,0 +1,10 @@ +alter table performance_schema.objects_summary_global_by_type +add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.objects_summary_global_by_type; +ALTER TABLE performance_schema.objects_summary_global_by_type +ADD INDEX test_index(OBJECT_NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index +ON performance_schema.objects_summary_global_by_type(OBJECT_NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_performance_timers.result b/mysql-test/suite/perfschema/r/ddl_performance_timers.result new file mode 100644 index 00000000..027c35c5 --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_performance_timers.result @@ -0,0 +1,8 @@ +alter table performance_schema.performance_timers add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.performance_timers; +ERROR HY000: Invalid performance_schema usage +ALTER TABLE performance_schema.performance_timers ADD INDEX test_index(TIMER_NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index ON performance_schema.performance_timers(TIMER_NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_prepared_statements_instances.result b/mysql-test/suite/perfschema/r/ddl_prepared_statements_instances.result new file mode 100644 index 00000000..d71e6c1e --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_prepared_statements_instances.result @@ -0,0 +1,9 @@ +alter table performance_schema.prepared_statements_instances +add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.prepared_statements_instances; +ALTER TABLE performance_schema.prepared_statements_instances ADD INDEX test_index(OWNER_OBJECT_NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index +ON performance_schema.prepared_statements_instances(OWNER_OBJECT_NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_processlist.result b/mysql-test/suite/perfschema/r/ddl_processlist.result new file mode 100644 index 00000000..3b1b8608 --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_processlist.result @@ -0,0 +1,20 @@ +select @@global.performance_schema_show_processlist into @save_processlist; +set @@global.performance_schema_show_processlist = 'on'; +alter table performance_schema.processlist +add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.processlist; +ERROR HY000: Invalid performance_schema usage. +alter table performance_schema.processlist +add index test_index(info); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +create unique index test_index +on performance_schema.processlist(host); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +drop index `PRIMARY` + on performance_schema.processlist; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE TABLE test.create_select +AS SELECT * from performance_schema.processlist; +DROP TABLE test.create_select; +set @@global.performance_schema_show_processlist = @save_processlist; diff --git a/mysql-test/suite/perfschema/r/ddl_replication_applier_configuration.result b/mysql-test/suite/perfschema/r/ddl_replication_applier_configuration.result new file mode 100644 index 00000000..db79022c --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_replication_applier_configuration.result @@ -0,0 +1,11 @@ +ALTER TABLE performance_schema.replication_applier_configuration +ADD COLUMN foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +TRUNCATE TABLE performance_schema.replication_applier_configuration; +ERROR HY000: Invalid performance_schema usage +ALTER TABLE performance_schema.replication_applier_configuration +ADD INDEX test_index(desired_delay); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index ON +performance_schema.replication_applier_configuration(desired_delay); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_replication_applier_status.result b/mysql-test/suite/perfschema/r/ddl_replication_applier_status.result new file mode 100644 index 00000000..a6306e97 --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_replication_applier_status.result @@ -0,0 +1,11 @@ +ALTER TABLE performance_schema.replication_applier_status +ADD COLUMN foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +TRUNCATE TABLE performance_schema.replication_applier_status; +ERROR HY000: Invalid performance_schema usage +ALTER TABLE performance_schema.replication_applier_status +ADD INDEX test_index(remaining_delay); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index ON +performance_schema.replication_applier_status(remaining_delay); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_replication_applier_status_by_coordinator.result b/mysql-test/suite/perfschema/r/ddl_replication_applier_status_by_coordinator.result new file mode 100644 index 00000000..414e8291 --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_replication_applier_status_by_coordinator.result @@ -0,0 +1,11 @@ +ALTER TABLE performance_schema.replication_applier_status_by_coordinator +ADD COLUMN foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +TRUNCATE TABLE performance_schema.replication_applier_status_by_coordinator; +ERROR HY000: Invalid performance_schema usage +ALTER TABLE performance_schema.replication_applier_status_by_coordinator +ADD INDEX test_index(thread_id); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index ON +performance_schema.replication_applier_status_by_coordinator(thread_id); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_replication_applier_status_by_worker.result b/mysql-test/suite/perfschema/r/ddl_replication_applier_status_by_worker.result new file mode 100644 index 00000000..d2e905af --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_replication_applier_status_by_worker.result @@ -0,0 +1,11 @@ +ALTER TABLE performance_schema.replication_applier_status_by_worker +add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +TRUNCATE TABLE performance_schema.replication_applier_status_by_worker; +ERROR HY000: Invalid performance_schema usage +ALTER TABLE performance_schema.replication_applier_status_by_worker +ADD INDEX test_index(worker_id); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index ON +performance_schema.replication_applier_status_by_worker(worker_id); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_replication_connection_configuration.result b/mysql-test/suite/perfschema/r/ddl_replication_connection_configuration.result new file mode 100644 index 00000000..19de9281 --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_replication_connection_configuration.result @@ -0,0 +1,11 @@ +ALTER TABLE performance_schema.replication_connection_configuration +ADD COLUMN foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +TRUNCATE TABLE performance_schema.replication_connection_configuration; +ERROR HY000: Invalid performance_schema usage +ALTER TABLE performance_schema.replication_connection_configuration +ADD INDEX test_index(HOST); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index +ON performance_schema.replication_connection_configuration(HOST); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_replication_connection_status.result b/mysql-test/suite/perfschema/r/ddl_replication_connection_status.result new file mode 100644 index 00000000..4c650b03 --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_replication_connection_status.result @@ -0,0 +1,11 @@ +ALTER TABLE performance_schema.replication_connection_status +ADD COLUMN foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +TRUNCATE TABLE performance_schema.replication_connection_status; +ERROR HY000: Invalid performance_schema usage. +ALTER TABLE performance_schema.replication_connection_status +ADD INDEX test_index(Thread_Id); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index +ON performance_schema.replication_connection_status(Thread_Id); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_replication_group_member_stats.result b/mysql-test/suite/perfschema/r/ddl_replication_group_member_stats.result new file mode 100644 index 00000000..cab3b087 --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_replication_group_member_stats.result @@ -0,0 +1,11 @@ +ALTER TABLE performance_schema.replication_group_member_stats +ADD COLUMN foo INTEGER; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +TRUNCATE TABLE performance_schema.replication_group_member_stats; +ERROR HY000: Invalid performance_schema usage. +ALTER TABLE performance_schema.replication_group_member_stats +ADD INDEX test_index(Member_Id); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index +ON performance_schema.replication_group_member_stats(Member_Id); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_replication_group_members.result b/mysql-test/suite/perfschema/r/ddl_replication_group_members.result new file mode 100644 index 00000000..25ed912a --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_replication_group_members.result @@ -0,0 +1,11 @@ +ALTER TABLE performance_schema.replication_group_members +ADD COLUMN foo INTEGER; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +TRUNCATE TABLE performance_schema.replication_group_members; +ERROR HY000: Invalid performance_schema usage. +ALTER TABLE performance_schema.replication_group_members +ADD INDEX test_index(Member_Id); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index +ON performance_schema.replication_group_members(Member_Id); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_rwlock_instances.result b/mysql-test/suite/perfschema/r/ddl_rwlock_instances.result new file mode 100644 index 00000000..11ae315f --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_rwlock_instances.result @@ -0,0 +1,8 @@ +alter table performance_schema.rwlock_instances add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.rwlock_instances; +ERROR HY000: Invalid performance_schema usage +ALTER TABLE performance_schema.rwlock_instances ADD INDEX test_index(NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index ON performance_schema.rwlock_instances(NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_session_account_connect_attrs.result b/mysql-test/suite/perfschema/r/ddl_session_account_connect_attrs.result new file mode 100644 index 00000000..6b180870 --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_session_account_connect_attrs.result @@ -0,0 +1,9 @@ +ALTER TABLE performance_schema.session_account_connect_attrs +ADD COLUMN foo INTEGER; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +TRUNCATE TABLE performance_schema.session_account_connect_attrs; +ERROR HY000: Invalid performance_schema usage +ALTER TABLE performance_schema.session_account_connect_attrs ADD INDEX test_index(ATTR_NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index ON performance_schema.session_account_connect_attrs(ATTR_NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_session_connect_attrs.result b/mysql-test/suite/perfschema/r/ddl_session_connect_attrs.result new file mode 100644 index 00000000..06ef515c --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_session_connect_attrs.result @@ -0,0 +1,9 @@ +ALTER TABLE performance_schema.session_connect_attrs +ADD COLUMN foo INTEGER; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +TRUNCATE TABLE performance_schema.session_connect_attrs; +ERROR HY000: Invalid performance_schema usage +ALTER TABLE performance_schema.session_connect_attrs ADD INDEX test_index(ATTR_NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index ON performance_schema.session_connect_attrs(ATTR_NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_session_status.result b/mysql-test/suite/perfschema/r/ddl_session_status.result new file mode 100644 index 00000000..de5669a3 --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_session_status.result @@ -0,0 +1,11 @@ +alter table performance_schema.session_status +add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.session_status; +ERROR HY000: Invalid performance_schema usage +ALTER TABLE performance_schema.session_status +ADD INDEX test_index(VARIABLE_NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index +ON performance_schema.session_status(VARIABLE_NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_session_variables.result b/mysql-test/suite/perfschema/r/ddl_session_variables.result new file mode 100644 index 00000000..add63705 --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_session_variables.result @@ -0,0 +1,11 @@ +alter table performance_schema.session_variables +add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.session_variables; +ERROR HY000: Invalid performance_schema usage +ALTER TABLE performance_schema.session_variables +ADD INDEX test_index(VARIABLE_NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index +ON performance_schema.session_variables(VARIABLE_NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_setup_actors.result b/mysql-test/suite/perfschema/r/ddl_setup_actors.result new file mode 100644 index 00000000..c17314e4 --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_setup_actors.result @@ -0,0 +1,18 @@ +alter table performance_schema.setup_actors add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +drop table if exists test.setup_actors; +create table test.setup_actors as +select * from performance_schema.setup_actors; +truncate table performance_schema.setup_actors; +select count(*) from performance_schema.setup_actors; +count(*) +0 +insert into performance_schema.setup_actors +select * from test.setup_actors; +drop table test.setup_actors; +ALTER TABLE performance_schema.setup_actors ADD INDEX test_index(HOST); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index ON performance_schema.setup_actors(HOST); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +ALTER TABLE performance_schema.setup_actors ADD KEY ENA(ENABLED); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_setup_consumers.result b/mysql-test/suite/perfschema/r/ddl_setup_consumers.result new file mode 100644 index 00000000..8a9c546a --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_setup_consumers.result @@ -0,0 +1,8 @@ +alter table performance_schema.setup_consumers add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.setup_consumers; +ERROR HY000: Invalid performance_schema usage +ALTER TABLE performance_schema.setup_consumers ADD INDEX test_index(NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index ON performance_schema.setup_consumers(NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_setup_instruments.result b/mysql-test/suite/perfschema/r/ddl_setup_instruments.result new file mode 100644 index 00000000..c175a1c8 --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_setup_instruments.result @@ -0,0 +1,8 @@ +alter table performance_schema.setup_instruments add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.setup_instruments; +ERROR HY000: Invalid performance_schema usage +ALTER TABLE performance_schema.setup_instruments ADD INDEX test_index(NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index ON performance_schema.setup_instruments(NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_setup_objects.result b/mysql-test/suite/perfschema/r/ddl_setup_objects.result new file mode 100644 index 00000000..60eeecde --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_setup_objects.result @@ -0,0 +1,16 @@ +alter table performance_schema.setup_objects add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +drop table if exists test.setup_objects; +create table test.setup_objects as +select * from performance_schema.setup_objects; +truncate table performance_schema.setup_objects; +select count(*) from performance_schema.setup_objects; +count(*) +0 +insert into performance_schema.setup_objects +select * from test.setup_objects; +drop table test.setup_objects; +ALTER TABLE performance_schema.setup_objects ADD INDEX test_index(OBJECT_NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index ON performance_schema.setup_objects(OBJECT_NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_setup_timers.result b/mysql-test/suite/perfschema/r/ddl_setup_timers.result new file mode 100644 index 00000000..ffcf54d2 --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_setup_timers.result @@ -0,0 +1,8 @@ +alter table performance_schema.setup_timers add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.setup_timers; +ERROR HY000: Invalid performance_schema usage +ALTER TABLE performance_schema.setup_timers ADD INDEX test_index(NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index ON performance_schema.setup_timers(NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_socket_instances.result b/mysql-test/suite/perfschema/r/ddl_socket_instances.result new file mode 100644 index 00000000..56c3dafb --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_socket_instances.result @@ -0,0 +1,8 @@ +alter table performance_schema.socket_instances add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.socket_instances; +ERROR HY000: Invalid performance_schema usage +ALTER TABLE performance_schema.socket_instances ADD INDEX test_index(FILE_NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index ON performance_schema.socket_instances(FILE_NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_socket_summary_by_event_name.result b/mysql-test/suite/perfschema/r/ddl_socket_summary_by_event_name.result new file mode 100644 index 00000000..64e1f280 --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_socket_summary_by_event_name.result @@ -0,0 +1,7 @@ +alter table performance_schema.socket_summary_by_instance add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.socket_summary_by_instance; +ALTER TABLE performance_schema.socket_summary_by_instance ADD INDEX test_index(FILE_NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index ON performance_schema.socket_summary_by_instance(FILE_NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_socket_summary_by_instance.result b/mysql-test/suite/perfschema/r/ddl_socket_summary_by_instance.result new file mode 100644 index 00000000..64e1f280 --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_socket_summary_by_instance.result @@ -0,0 +1,7 @@ +alter table performance_schema.socket_summary_by_instance add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.socket_summary_by_instance; +ALTER TABLE performance_schema.socket_summary_by_instance ADD INDEX test_index(FILE_NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index ON performance_schema.socket_summary_by_instance(FILE_NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_status_by_account.result b/mysql-test/suite/perfschema/r/ddl_status_by_account.result new file mode 100644 index 00000000..d21b7ed1 --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_status_by_account.result @@ -0,0 +1,10 @@ +alter table performance_schema.status_by_account +add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.status_by_account; +ALTER TABLE performance_schema.status_by_account +ADD INDEX test_index(VARIABLE_NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index +ON performance_schema.status_by_account(VARIABLE_NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_status_by_host.result b/mysql-test/suite/perfschema/r/ddl_status_by_host.result new file mode 100644 index 00000000..5e4ba357 --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_status_by_host.result @@ -0,0 +1,10 @@ +alter table performance_schema.status_by_host +add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.status_by_host; +ALTER TABLE performance_schema.status_by_host +ADD INDEX test_index(VARIABLE_NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index +ON performance_schema.status_by_host(VARIABLE_NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_status_by_thread.result b/mysql-test/suite/perfschema/r/ddl_status_by_thread.result new file mode 100644 index 00000000..2333af91 --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_status_by_thread.result @@ -0,0 +1,10 @@ +alter table performance_schema.status_by_thread +add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.status_by_thread; +ALTER TABLE performance_schema.status_by_thread +ADD INDEX test_index(VARIABLE_NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index +ON performance_schema.status_by_thread(VARIABLE_NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_status_by_user.result b/mysql-test/suite/perfschema/r/ddl_status_by_user.result new file mode 100644 index 00000000..c7d396db --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_status_by_user.result @@ -0,0 +1,10 @@ +alter table performance_schema.status_by_user +add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.status_by_user; +ALTER TABLE performance_schema.status_by_user +ADD INDEX test_index(VARIABLE_NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index +ON performance_schema.status_by_user(VARIABLE_NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_table_handles.result b/mysql-test/suite/perfschema/r/ddl_table_handles.result new file mode 100644 index 00000000..79b7c96e --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_table_handles.result @@ -0,0 +1,8 @@ +alter table performance_schema.table_handles add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.table_handles; +ERROR HY000: Invalid performance_schema usage +ALTER TABLE performance_schema.table_handles ADD INDEX test_index(TIMER_NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index ON performance_schema.table_handles(TIMER_NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_threads.result b/mysql-test/suite/perfschema/r/ddl_threads.result new file mode 100644 index 00000000..708aecf8 --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_threads.result @@ -0,0 +1,8 @@ +alter table performance_schema.threads add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.threads; +ERROR HY000: Invalid performance_schema usage +ALTER TABLE performance_schema.threads ADD INDEX test_index(PROCESSLIST_ID); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index ON performance_schema.threads(PROCESSLIST_ID); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_tiws_by_index_usage.result b/mysql-test/suite/perfschema/r/ddl_tiws_by_index_usage.result new file mode 100644 index 00000000..bc002515 --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_tiws_by_index_usage.result @@ -0,0 +1,8 @@ +alter table performance_schema.table_io_waits_summary_by_index_usage +add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.table_io_waits_summary_by_index_usage; +ALTER TABLE performance_schema.table_io_waits_summary_by_index_usage ADD INDEX test_index(TABLE_NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index ON performance_schema.table_io_waits_summary_by_index_usage(TABLE_NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_tiws_by_table.result b/mysql-test/suite/perfschema/r/ddl_tiws_by_table.result new file mode 100644 index 00000000..6f2d3329 --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_tiws_by_table.result @@ -0,0 +1,8 @@ +alter table performance_schema.table_io_waits_summary_by_table +add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.table_io_waits_summary_by_table; +ALTER TABLE performance_schema.table_io_waits_summary_by_table ADD INDEX test_index(TABLE_NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index ON performance_schema.table_io_waits_summary_by_table(TABLE_NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_tlws_by_table.result b/mysql-test/suite/perfschema/r/ddl_tlws_by_table.result new file mode 100644 index 00000000..b7312191 --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_tlws_by_table.result @@ -0,0 +1,8 @@ +alter table performance_schema.table_lock_waits_summary_by_table +add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.table_lock_waits_summary_by_table; +ALTER TABLE performance_schema.table_lock_waits_summary_by_table ADD INDEX test_index(TABLE_NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index ON performance_schema.table_lock_waits_summary_by_table(TABLE_NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_users.result b/mysql-test/suite/perfschema/r/ddl_users.result new file mode 100644 index 00000000..907710bb --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_users.result @@ -0,0 +1,8 @@ +alter table performance_schema.users +add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.users; +ALTER TABLE performance_schema.users ADD INDEX test_index(CURRENT_CONNECTIONS); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index ON performance_schema.users(CURRENT_CONNECTIONS); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_uvar_by_thread.result b/mysql-test/suite/perfschema/r/ddl_uvar_by_thread.result new file mode 100644 index 00000000..b9961faa --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_uvar_by_thread.result @@ -0,0 +1,11 @@ +alter table performance_schema.user_variables_by_thread +add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.user_variables_by_thread; +ERROR HY000: Invalid performance_schema usage +ALTER TABLE performance_schema.user_variables_by_thread +ADD INDEX test_index(VARIABLE_NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index +ON performance_schema.user_variables_by_thread(VARIABLE_NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/ddl_variables_by_thread.result b/mysql-test/suite/perfschema/r/ddl_variables_by_thread.result new file mode 100644 index 00000000..43e2f24f --- /dev/null +++ b/mysql-test/suite/perfschema/r/ddl_variables_by_thread.result @@ -0,0 +1,11 @@ +alter table performance_schema.variables_by_thread +add column foo integer; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +truncate table performance_schema.variables_by_thread; +ERROR HY000: Invalid performance_schema usage +ALTER TABLE performance_schema.variables_by_thread +ADD INDEX test_index(VARIABLE_NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +CREATE UNIQUE INDEX test_index +ON performance_schema.variables_by_thread(VARIABLE_NAME); +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/digest_null_literal.result b/mysql-test/suite/perfschema/r/digest_null_literal.result new file mode 100644 index 00000000..a595c3f5 --- /dev/null +++ b/mysql-test/suite/perfschema/r/digest_null_literal.result @@ -0,0 +1,27 @@ +TRUNCATE TABLE performance_schema.events_statements_summary_by_digest; +NULL +NULL +NULL +NULL +NULL NULL +NULL NULL +NULL NULL NULL 1 2 3 NULL NULL +NULL NULL NULL 1 2 3 NULL NULL +1 IS NULL +0 +2 IS NOT NULL +1 +1 IS NULL 2 IS NULL 3 IS NOT NULL 4 IS NOT NULL +0 0 1 1 +SELECT SCHEMA_NAME, DIGEST_TEXT, COUNT_STAR +FROM performance_schema.events_statements_summary_by_digest; +SCHEMA_NAME DIGEST_TEXT COUNT_STAR +test TRUNCATE TABLE `performance_schema` . `events_statements_summary_by_digest` 1 +test SELECT ? 1 +test SELECT ? FROM DUAL 1 +test SELECT ?, ... 2 +test SELECT ? IS NULL 1 +test SELECT ? IS NOT NULL 1 +test SELECT ? IS NULL , ? IS NULL , ? IS NOT NULL , ? IS NOT NULL 1 +test CREATE TABLE `foo` ( `a` INTEGER DEFAULT ? , `b` INTEGER NOT NULL DEFAULT ? , `c` INTEGER NOT NULL ) 1 +test DROP TABLE `foo` 1 diff --git a/mysql-test/suite/perfschema/r/digest_table_full.result b/mysql-test/suite/perfschema/r/digest_table_full.result new file mode 100644 index 00000000..84a7b5c3 --- /dev/null +++ b/mysql-test/suite/perfschema/r/digest_table_full.result @@ -0,0 +1,134 @@ +#################################### +# SETUP +#################################### +CREATE DATABASE statements_digest; +USE statements_digest; +CREATE TABLE t1(a int); +CREATE TABLE t2(a int); +CREATE TABLE t3(a int, b int); +CREATE TABLE t4(a int, b int); +CREATE TABLE t5(a int, b int, c int); +CREATE TABLE t6(a int, b int, c int, d int); +CREATE TABLE t11 (c CHAR(4)); +CREATE TABLE t12 (c CHAR(4)); +TRUNCATE TABLE performance_schema.events_statements_summary_by_digest; +#################################### +# EXECUTION +#################################### +SELECT 1 FROM t1; +1 +SELECT 1 FROM `t1`; +1 +SELECT 1,2 FROM t1; +1 2 +SELECT 1, 2, 3, 4 FROM t1; +1 2 3 4 +SELECT 1 FROM t2; +1 +SELECT 1,2 FROM t2; +1 2 +SELECT 1, 2, 3, 4 FROM t2; +1 2 3 4 +INSERT INTO t1 VALUES (1); +INSERT INTO t2 VALUES (1); +INSERT INTO t3 VALUES (1, 2); +INSERT INTO t4 VALUES (1, 2); +INSERT INTO t5 VALUES (1, 2, 3); +INSERT INTO t1 VALUES (1), (2), (3); +INSERT INTO t1 VALUES (1), (2), (3), (4); +INSERT INTO t3 VALUES (1, 2), (3, 4), (5, 6); +INSERT INTO t5 VALUES (1, 2, 3), (4, 5, 6), (7, 8, 9); +INSERT INTO t1 VALUES (NULL); +INSERT INTO t3 VALUES (NULL,NULL); +INSERT INTO t3 VALUES (1,NULL); +INSERT INTO t3 VALUES (NULL,1); +INSERT INTO t6 VALUES (NULL, NULL, NULL, NULL); +INSERT INTO t6 VALUES (1, NULL, NULL, NULL); +INSERT INTO t6 VALUES (NULL, 2, NULL, NULL); +INSERT INTO t6 VALUES (1, 2, 3, NULL); +INSERT INTO t6 VALUES (1, 2, NULL, 4); +SELECT 1 + 1; +1 + 1 +2 +SELECT 1; +1 +1 +SELECT 1 /* This is an inline comment */ + 1; +1 /* This is an inline comment */ + 1 +2 +SELECT 1+ +/* +this is a +multiple-line comment +*/ +1; +1+ +/* +this is a +multiple-line comment +*/ +1 +2 +CREATE SCHEMA statements_digest_temp; +DROP SCHEMA statements_digest_temp; +CREATE DATABASE statements_digest_temp; +DROP DATABASE statements_digest_temp; +SELECT 1 FROM no_such_table; +ERROR 42S02: Table 'statements_digest.no_such_table' doesn't exist +CREATE TABLE dup_table (c char(4)); +CREATE TABLE dup_table (c char(4)); +ERROR 42S01: Table 'dup_table' already exists +DROP TABLE dup_table; +INSERT IGNORE INTO t11 VALUES("MySQL"); +Warnings: +Warning 1265 Data truncated for column 'c' at row 1 +PREPARE stmt FROM "SELECT * FROM t12"; +EXECUTE stmt; +c +EXECUTE stmt; +c +DEALLOCATE PREPARE stmt; +CREATE PROCEDURE p1() BEGIN SELECT * FROM t12; END// +CALL p1(); +c +CALL p1(); +c +DROP PROCEDURE p1; +CREATE FUNCTION `func`(a INT, b INT) RETURNS int(11) RETURN a+b // +select func(3,4); +func(3,4) +7 +select func(13,42); +func(13,42) +55 +DROP FUNCTION func; +CREATE TRIGGER trg BEFORE INSERT ON t12 FOR EACH ROW SET @a:=1; +INSERT INTO t12 VALUES ("abc"); +INSERT INTO t12 VALUES ("def"); +DROP TRIGGER trg; +#################################### +# QUERYING PS STATEMENT DIGEST +#################################### +SELECT SCHEMA_NAME, DIGEST_TEXT, COUNT_STAR, SUM_ROWS_AFFECTED, SUM_WARNINGS, +SUM_ERRORS FROM performance_schema.events_statements_summary_by_digest; +SCHEMA_NAME DIGEST_TEXT COUNT_STAR SUM_ROWS_AFFECTED SUM_WARNINGS SUM_ERRORS +NULL NULL 55 32 1 2 +statements_digest TRUNCATE TABLE `performance_schema` . `events_statements_summary_by_digest` 1 0 0 0 +SHOW GLOBAL VARIABLES LIKE "performance_schema_digests_size"; +Variable_name Value +performance_schema_digests_size 2 +SELECT COUNT(*) FROM performance_schema.events_statements_summary_by_digest; +COUNT(*) +2 +#################################### +# CLEANUP +#################################### +DROP TABLE IF EXISTS t1; +DROP TABLE IF EXISTS t2; +DROP TABLE IF EXISTS t3; +DROP TABLE IF EXISTS t4; +DROP TABLE IF EXISTS t5; +DROP TABLE IF EXISTS t6; +DROP TABLE IF EXISTS t11; +DROP TABLE IF EXISTS t12; +DROP DATABASE IF EXISTS statements_digest; diff --git a/mysql-test/suite/perfschema/r/digest_view.result b/mysql-test/suite/perfschema/r/digest_view.result new file mode 100644 index 00000000..2d5c7ca0 --- /dev/null +++ b/mysql-test/suite/perfschema/r/digest_view.result @@ -0,0 +1,266 @@ +CREATE TABLE test.v1 (a int, b int); +INSERT INTO test.v1 VALUES (1, 100), (2, 200), (3, 300); +CREATE TABLE test.t1 (a int, b int); +INSERT INTO test.t1 VALUES (1, 100), (2, 200), (3, 300); +TRUNCATE TABLE performance_schema.events_statements_summary_by_digest; +EXPLAIN EXTENDED SELECT * from test.v1; +id select_type table type possible_keys key key_len ref rows filtered Extra +1 SIMPLE v1 ALL NULL NULL NULL NULL 3 100.00 +Warnings: +Note 1003 select `test`.`v1`.`a` AS `a`,`test`.`v1`.`b` AS `b` from `test`.`v1` +EXPLAIN EXTENDED SELECT * from test.v1 where a = 1; +id select_type table type possible_keys key key_len ref rows filtered Extra +1 SIMPLE v1 ALL NULL NULL NULL NULL 3 100.00 Using where +Warnings: +Note 1003 select `test`.`v1`.`a` AS `a`,`test`.`v1`.`b` AS `b` from `test`.`v1` where `test`.`v1`.`a` = 1 +EXPLAIN EXTENDED SELECT * from test.v1 where b > 100; +id select_type table type possible_keys key key_len ref rows filtered Extra +1 SIMPLE v1 ALL NULL NULL NULL NULL 3 100.00 Using where +Warnings: +Note 1003 select `test`.`v1`.`a` AS `a`,`test`.`v1`.`b` AS `b` from `test`.`v1` where `test`.`v1`.`b` > 100 +EXPLAIN EXTENDED SELECT a, b from test.v1; +id select_type table type possible_keys key key_len ref rows filtered Extra +1 SIMPLE v1 ALL NULL NULL NULL NULL 3 100.00 +Warnings: +Note 1003 select `test`.`v1`.`a` AS `a`,`test`.`v1`.`b` AS `b` from `test`.`v1` +EXPLAIN EXTENDED SELECT b, a from test.v1; +id select_type table type possible_keys key key_len ref rows filtered Extra +1 SIMPLE v1 ALL NULL NULL NULL NULL 3 100.00 +Warnings: +Note 1003 select `test`.`v1`.`b` AS `b`,`test`.`v1`.`a` AS `a` from `test`.`v1` +SELECT * from test.v1; +a b +1 100 +2 200 +3 300 +SELECT * from test.v1 where a = 1; +a b +1 100 +SELECT * from test.v1 where b > 100; +a b +2 200 +3 300 +SELECT a, b from test.v1; +a b +1 100 +2 200 +3 300 +SELECT b, a from test.v1; +b a +100 1 +200 2 +300 3 +# +# DIGESTS SEEN ON TABLE +# +SELECT SCHEMA_NAME, DIGEST_TEXT, COUNT_STAR +FROM performance_schema.events_statements_summary_by_digest +ORDER BY DIGEST_TEXT; +SCHEMA_NAME DIGEST_TEXT COUNT_STAR +test EXPLAIN EXTENDED SELECT * FROM `test` . `v1` 1 +test EXPLAIN EXTENDED SELECT * FROM `test` . `v1` WHERE `a` = ? 1 +test EXPLAIN EXTENDED SELECT * FROM `test` . `v1` WHERE `b` > ? 1 +test EXPLAIN EXTENDED SELECT `a` , `b` FROM `test` . `v1` 1 +test EXPLAIN EXTENDED SELECT `b` , `a` FROM `test` . `v1` 1 +test SELECT * FROM `test` . `v1` 1 +test SELECT * FROM `test` . `v1` WHERE `a` = ? 1 +test SELECT * FROM `test` . `v1` WHERE `b` > ? 1 +test SELECT `a` , `b` FROM `test` . `v1` 1 +test SELECT `b` , `a` FROM `test` . `v1` 1 +test SHOW WARNINGS 5 +test TRUNCATE TABLE `performance_schema` . `events_statements_summary_by_digest` 1 +DROP TABLE test.v1; +CREATE VIEW test.v1 AS SELECT * FROM test.t1; +EXPLAIN EXTENDED SELECT * from test.v1; +id select_type table type possible_keys key key_len ref rows filtered Extra +1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00 +Warnings: +Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` +EXPLAIN EXTENDED SELECT * from test.v1 where a = 1; +id select_type table type possible_keys key key_len ref rows filtered Extra +1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00 Using where +Warnings: +Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where `test`.`t1`.`a` = 1 +EXPLAIN EXTENDED SELECT * from test.v1 where b > 100; +id select_type table type possible_keys key key_len ref rows filtered Extra +1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00 Using where +Warnings: +Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` where `test`.`t1`.`b` > 100 +EXPLAIN EXTENDED SELECT a, b from test.v1; +id select_type table type possible_keys key key_len ref rows filtered Extra +1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00 +Warnings: +Note 1003 select `test`.`t1`.`a` AS `a`,`test`.`t1`.`b` AS `b` from `test`.`t1` +EXPLAIN EXTENDED SELECT b, a from test.v1; +id select_type table type possible_keys key key_len ref rows filtered Extra +1 SIMPLE t1 ALL NULL NULL NULL NULL 3 100.00 +Warnings: +Note 1003 select `test`.`t1`.`b` AS `b`,`test`.`t1`.`a` AS `a` from `test`.`t1` +SELECT * from test.v1; +a b +1 100 +2 200 +3 300 +SELECT * from test.v1 where a = 1; +a b +1 100 +SELECT * from test.v1 where b > 100; +a b +2 200 +3 300 +SELECT a, b from test.v1; +a b +1 100 +2 200 +3 300 +SELECT b, a from test.v1; +b a +100 1 +200 2 +300 3 +# +# DIGESTS SEEN ON VIEW +# +SELECT SCHEMA_NAME, DIGEST_TEXT, COUNT_STAR +FROM performance_schema.events_statements_summary_by_digest +ORDER BY DIGEST_TEXT; +SCHEMA_NAME DIGEST_TEXT COUNT_STAR +test CREATE VIEW `test` . `v1` AS SELECT * FROM `test` . `t1` 1 +test DROP TABLE `test` . `v1` 1 +test EXPLAIN EXTENDED SELECT * FROM `test` . `v1` 2 +test EXPLAIN EXTENDED SELECT * FROM `test` . `v1` WHERE `a` = ? 2 +test EXPLAIN EXTENDED SELECT * FROM `test` . `v1` WHERE `b` > ? 2 +test EXPLAIN EXTENDED SELECT `a` , `b` FROM `test` . `v1` 2 +test EXPLAIN EXTENDED SELECT `b` , `a` FROM `test` . `v1` 2 +test SELECT * FROM `test` . `v1` 2 +test SELECT * FROM `test` . `v1` WHERE `a` = ? 2 +test SELECT * FROM `test` . `v1` WHERE `b` > ? 2 +test SELECT SCHEMA_NAME , `DIGEST_TEXT` , `COUNT_STAR` FROM `performance_schema` . `events_statements_summary_by_digest` ORDER BY `DIGEST_TEXT` 1 +test SELECT `a` , `b` FROM `test` . `v1` 2 +test SELECT `b` , `a` FROM `test` . `v1` 2 +test SHOW WARNINGS 10 +test TRUNCATE TABLE `performance_schema` . `events_statements_summary_by_digest` 1 +DROP VIEW test.v1; +DROP TABLE test.t1; +CREATE TABLE test.v1 (a int, b int); +INSERT INTO test.v1 VALUES (1, 100), (2, 200), (3, 300); +CREATE TABLE test.t1 (a int, b int); +INSERT INTO test.t1 VALUES (1, 100), (2, 200), (3, 300); +TRUNCATE TABLE performance_schema.events_statements_summary_by_digest; +EXPLAIN SELECT * from test.v1; +id select_type table type possible_keys key key_len ref rows Extra +1 SIMPLE v1 ALL NULL NULL NULL NULL 3 +EXPLAIN SELECT * from test.v1 where a = 1; +id select_type table type possible_keys key key_len ref rows Extra +1 SIMPLE v1 ALL NULL NULL NULL NULL 3 Using where +EXPLAIN SELECT * from test.v1 where b > 100; +id select_type table type possible_keys key key_len ref rows Extra +1 SIMPLE v1 ALL NULL NULL NULL NULL 3 Using where +EXPLAIN SELECT a, b from test.v1; +id select_type table type possible_keys key key_len ref rows Extra +1 SIMPLE v1 ALL NULL NULL NULL NULL 3 +EXPLAIN SELECT b, a from test.v1; +id select_type table type possible_keys key key_len ref rows Extra +1 SIMPLE v1 ALL NULL NULL NULL NULL 3 +SELECT * from test.v1; +a b +1 100 +2 200 +3 300 +SELECT * from test.v1 where a = 1; +a b +1 100 +SELECT * from test.v1 where b > 100; +a b +2 200 +3 300 +SELECT a, b from test.v1; +a b +1 100 +2 200 +3 300 +SELECT b, a from test.v1; +b a +100 1 +200 2 +300 3 +# +# DIGESTS SEEN ON TABLE +# +SELECT SCHEMA_NAME, DIGEST, DIGEST_TEXT, COUNT_STAR +FROM performance_schema.events_statements_summary_by_digest +ORDER BY DIGEST_TEXT; +SCHEMA_NAME DIGEST DIGEST_TEXT COUNT_STAR +test 8b1406618d34996cd11d1796438c78b5 EXPLAIN SELECT * FROM `test` . `v1` 1 +test 2c9e5d5b30d1690ba1a625afb4c42005 EXPLAIN SELECT * FROM `test` . `v1` WHERE `a` = ? 1 +test 2265269dbe1b17d1f309a63b8e56933f EXPLAIN SELECT * FROM `test` . `v1` WHERE `b` > ? 1 +test 2df0babfc3c8ad27b4e3f99ad59bc938 EXPLAIN SELECT `a` , `b` FROM `test` . `v1` 1 +test 8607297e7ffe77aa19a9d60812c5a8fd EXPLAIN SELECT `b` , `a` FROM `test` . `v1` 1 +test 9c94fee7865aa050201f6e67887fd0c8 SELECT * FROM `test` . `v1` 1 +test 7c856ddf7b57d65f8124f39e8b81882e SELECT * FROM `test` . `v1` WHERE `a` = ? 1 +test 994b14d068c24edd8fd61b2f03663be2 SELECT * FROM `test` . `v1` WHERE `b` > ? 1 +test b3102e1f51878e35936d7d3fe2901839 SELECT `a` , `b` FROM `test` . `v1` 1 +test cb300dd6358987c5afe1a2b0022fdea0 SELECT `b` , `a` FROM `test` . `v1` 1 +test 1b40b63f6a9dbffd146f0916fe4f5ed2 TRUNCATE TABLE `performance_schema` . `events_statements_summary_by_digest` 1 +DROP TABLE test.v1; +CREATE VIEW test.v1 AS SELECT * FROM test.t1; +EXPLAIN SELECT * from test.v1; +id select_type table type possible_keys key key_len ref rows Extra +1 SIMPLE t1 ALL NULL NULL NULL NULL 3 +EXPLAIN SELECT * from test.v1 where a = 1; +id select_type table type possible_keys key key_len ref rows Extra +1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using where +EXPLAIN SELECT * from test.v1 where b > 100; +id select_type table type possible_keys key key_len ref rows Extra +1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using where +EXPLAIN SELECT a, b from test.v1; +id select_type table type possible_keys key key_len ref rows Extra +1 SIMPLE t1 ALL NULL NULL NULL NULL 3 +EXPLAIN SELECT b, a from test.v1; +id select_type table type possible_keys key key_len ref rows Extra +1 SIMPLE t1 ALL NULL NULL NULL NULL 3 +SELECT * from test.v1; +a b +1 100 +2 200 +3 300 +SELECT * from test.v1 where a = 1; +a b +1 100 +SELECT * from test.v1 where b > 100; +a b +2 200 +3 300 +SELECT a, b from test.v1; +a b +1 100 +2 200 +3 300 +SELECT b, a from test.v1; +b a +100 1 +200 2 +300 3 +# +# DIGESTS SEEN ON VIEW +# +SELECT SCHEMA_NAME, DIGEST, DIGEST_TEXT, COUNT_STAR +FROM performance_schema.events_statements_summary_by_digest +ORDER BY DIGEST_TEXT; +SCHEMA_NAME DIGEST DIGEST_TEXT COUNT_STAR +test a68fd555281a14d2809c3105e9cb2c90 CREATE VIEW `test` . `v1` AS SELECT * FROM `test` . `t1` 1 +test 4baff8f96e4b6ec6cdbfef5b9c7a8b12 DROP TABLE `test` . `v1` 1 +test 8b1406618d34996cd11d1796438c78b5 EXPLAIN SELECT * FROM `test` . `v1` 2 +test 2c9e5d5b30d1690ba1a625afb4c42005 EXPLAIN SELECT * FROM `test` . `v1` WHERE `a` = ? 2 +test 2265269dbe1b17d1f309a63b8e56933f EXPLAIN SELECT * FROM `test` . `v1` WHERE `b` > ? 2 +test 2df0babfc3c8ad27b4e3f99ad59bc938 EXPLAIN SELECT `a` , `b` FROM `test` . `v1` 2 +test 8607297e7ffe77aa19a9d60812c5a8fd EXPLAIN SELECT `b` , `a` FROM `test` . `v1` 2 +test 9c94fee7865aa050201f6e67887fd0c8 SELECT * FROM `test` . `v1` 2 +test 7c856ddf7b57d65f8124f39e8b81882e SELECT * FROM `test` . `v1` WHERE `a` = ? 2 +test 994b14d068c24edd8fd61b2f03663be2 SELECT * FROM `test` . `v1` WHERE `b` > ? 2 +test df38ce7f6e35972efe5a4ec57e48bf4d SELECT SCHEMA_NAME , `DIGEST` , `DIGEST_TEXT` , `COUNT_STAR` FROM `performance_schema` . `events_statements_summary_by_digest` ORDER BY `DIGEST_TEXT` 1 +test b3102e1f51878e35936d7d3fe2901839 SELECT `a` , `b` FROM `test` . `v1` 2 +test cb300dd6358987c5afe1a2b0022fdea0 SELECT `b` , `a` FROM `test` . `v1` 2 +test 1b40b63f6a9dbffd146f0916fe4f5ed2 TRUNCATE TABLE `performance_schema` . `events_statements_summary_by_digest` 1 +DROP VIEW test.v1; +DROP TABLE test.t1; diff --git a/mysql-test/suite/perfschema/r/discovery.result b/mysql-test/suite/perfschema/r/discovery.result new file mode 100644 index 00000000..2f939cae --- /dev/null +++ b/mysql-test/suite/perfschema/r/discovery.result @@ -0,0 +1,12 @@ +# +# MDEV-7922 - ERROR 1939 (HY000): Engine PERFORMANCE_SCHEMA failed to +# discover table +# +FLUSH TABLES; +CREATE DATABASE test_drop; +USE test_drop; +DROP DATABASE test_drop; +SELECT TABLE_NAME, TABLE_ROWS FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='performance_schema'; +SELECT @@warning_count; +@@warning_count +0 diff --git a/mysql-test/suite/perfschema/r/dml_accounts.result b/mysql-test/suite/perfschema/r/dml_accounts.result new file mode 100644 index 00000000..dcbce511 --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_accounts.result @@ -0,0 +1,36 @@ +select * from performance_schema.accounts +limit 1; +select * from performance_schema.accounts +where user='FOO' or host='BAR'; +insert into performance_schema.accounts +set user='FOO', host='BAR', +current_connections=1, total_connections=2; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`accounts` +update performance_schema.accounts +set current_connections=12; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`accounts` +update performance_schema.accounts +set current_connections=12 where host like "FOO"; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`accounts` +delete from performance_schema.accounts +where total_connections=1; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`accounts` +delete from performance_schema.accounts; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`accounts` +LOCK TABLES performance_schema.accounts READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`accounts` +UNLOCK TABLES; +LOCK TABLES performance_schema.accounts WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`accounts` +UNLOCK TABLES; +# +# MDEV-25325 column_comment for performance_schema tables +# +select column_name, column_comment +from information_schema.columns +where table_schema='performance_schema' and table_name='accounts'; +column_name column_comment +USER The connection's client user name for the connection, or NULL if an internal thread. +HOST The connection client's host name, or NULL if an internal thread. +CURRENT_CONNECTIONS Current connections for the account. +TOTAL_CONNECTIONS Total connections for the account. diff --git a/mysql-test/suite/perfschema/r/dml_cond_instances.result b/mysql-test/suite/perfschema/r/dml_cond_instances.result new file mode 100644 index 00000000..2f35b1b3 --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_cond_instances.result @@ -0,0 +1,29 @@ +select * from performance_schema.cond_instances limit 1; +select * from performance_schema.cond_instances +where name='FOO'; +insert into performance_schema.cond_instances +set name='FOO', object_instance_begin=12; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`cond_instances` +update performance_schema.cond_instances +set name='FOO'; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`cond_instances` +delete from performance_schema.cond_instances +where name like "wait/%"; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`cond_instances` +delete from performance_schema.cond_instances; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`cond_instances` +LOCK TABLES performance_schema.cond_instances READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`cond_instances` +UNLOCK TABLES; +LOCK TABLES performance_schema.cond_instances WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`cond_instances` +UNLOCK TABLES; +# +# MDEV-25325 column_comment for performance_schema tables +# +select column_name, column_comment +from information_schema.columns +where table_schema='performance_schema' and table_name='cond_instances'; +column_name column_comment +NAME Client user name for the connection, or NULL if an internal thread. +OBJECT_INSTANCE_BEGIN Address in memory of the instrumented condition. diff --git a/mysql-test/suite/perfschema/r/dml_esgs_by_account_by_event_name.result b/mysql-test/suite/perfschema/r/dml_esgs_by_account_by_event_name.result new file mode 100644 index 00000000..17c390fd --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_esgs_by_account_by_event_name.result @@ -0,0 +1,41 @@ +select * from performance_schema.events_stages_summary_by_account_by_event_name +where event_name like 'stage/%' limit 1; +select * from performance_schema.events_stages_summary_by_account_by_event_name +where event_name='FOO'; +insert into performance_schema.events_stages_summary_by_account_by_event_name +set event_name='FOO', user='BAR', host='BAZ', +count_star=1, sum_timer_wait=2, min_timer_wait=3, +avg_timer_wait=4, max_timer_wait=5; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_by_account_by_event_name` +update performance_schema.events_stages_summary_by_account_by_event_name +set count_star=12; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_by_account_by_event_name` +update performance_schema.events_stages_summary_by_account_by_event_name +set count_star=12 where event_name like "FOO"; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_by_account_by_event_name` +delete from performance_schema.events_stages_summary_by_account_by_event_name +where count_star=1; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_by_account_by_event_name` +delete from performance_schema.events_stages_summary_by_account_by_event_name; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_by_account_by_event_name` +LOCK TABLES performance_schema.events_stages_summary_by_account_by_event_name READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_by_account_by_event_name` +UNLOCK TABLES; +LOCK TABLES performance_schema.events_stages_summary_by_account_by_event_name WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_by_account_by_event_name` +UNLOCK TABLES; +# +# MDEV-25325 column_comment for performance_schema tables +# +select column_name, column_comment +from information_schema.columns +where table_schema='performance_schema' and table_name='events_stages_summary_by_account_by_event_name'; +column_name column_comment +USER User. Used together with HOST and EVENT_NAME for grouping events. +HOST Host. Used together with USER and EVENT_NAME for grouping events. +EVENT_NAME Event name. Used together with USER and HOST for grouping events. +COUNT_STAR Number of summarized events, which includes all timed and untimed events. +SUM_TIMER_WAIT Total wait time of the timed summarized events. +MIN_TIMER_WAIT Minimum wait time of the timed summarized events. +AVG_TIMER_WAIT Average wait time of the timed summarized events. +MAX_TIMER_WAIT Maximum wait time of the timed summarized events. diff --git a/mysql-test/suite/perfschema/r/dml_esgs_by_host_by_event_name.result b/mysql-test/suite/perfschema/r/dml_esgs_by_host_by_event_name.result new file mode 100644 index 00000000..2f3b59f1 --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_esgs_by_host_by_event_name.result @@ -0,0 +1,40 @@ +select * from performance_schema.events_stages_summary_by_host_by_event_name +where event_name like 'stage/%' limit 1; +select * from performance_schema.events_stages_summary_by_host_by_event_name +where event_name='FOO'; +insert into performance_schema.events_stages_summary_by_host_by_event_name +set event_name='FOO', thread_id=1, +count_star=1, sum_timer_wait=2, min_timer_wait=3, +avg_timer_wait=4, max_timer_wait=5; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_by_host_by_event_name` +update performance_schema.events_stages_summary_by_host_by_event_name +set count_star=12; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_by_host_by_event_name` +update performance_schema.events_stages_summary_by_host_by_event_name +set count_star=12 where event_name like "FOO"; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_by_host_by_event_name` +delete from performance_schema.events_stages_summary_by_host_by_event_name +where count_star=1; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_by_host_by_event_name` +delete from performance_schema.events_stages_summary_by_host_by_event_name; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_by_host_by_event_name` +LOCK TABLES performance_schema.events_stages_summary_by_host_by_event_name READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_by_host_by_event_name` +UNLOCK TABLES; +LOCK TABLES performance_schema.events_stages_summary_by_host_by_event_name WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_by_host_by_event_name` +UNLOCK TABLES; +# +# MDEV-25325 column_comment for performance_schema tables +# +select column_name, column_comment +from information_schema.columns +where table_schema='performance_schema' and table_name='events_stages_summary_by_host_by_event_name'; +column_name column_comment +HOST Host. Used together with EVENT_NAME for grouping events. +EVENT_NAME Event name. Used together with HOST for grouping events. +COUNT_STAR Number of summarized events, which includes all timed and untimed events. +SUM_TIMER_WAIT Total wait time of the timed summarized events. +MIN_TIMER_WAIT Minimum wait time of the timed summarized events. +AVG_TIMER_WAIT Average wait time of the timed summarized events. +MAX_TIMER_WAIT Maximum wait time of the timed summarized events. diff --git a/mysql-test/suite/perfschema/r/dml_esgs_by_thread_by_event_name.result b/mysql-test/suite/perfschema/r/dml_esgs_by_thread_by_event_name.result new file mode 100644 index 00000000..77dd7b2e --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_esgs_by_thread_by_event_name.result @@ -0,0 +1,40 @@ +select * from performance_schema.events_stages_summary_by_thread_by_event_name +where event_name like 'stage/%' limit 1; +select * from performance_schema.events_stages_summary_by_thread_by_event_name +where event_name='FOO'; +insert into performance_schema.events_stages_summary_by_thread_by_event_name +set event_name='FOO', thread_id=1, +count_star=1, sum_timer_wait=2, min_timer_wait=3, +avg_timer_wait=4, max_timer_wait=5; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_by_thread_by_event_name` +update performance_schema.events_stages_summary_by_thread_by_event_name +set count_star=12; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_by_thread_by_event_name` +update performance_schema.events_stages_summary_by_thread_by_event_name +set count_star=12 where event_name like "FOO"; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_by_thread_by_event_name` +delete from performance_schema.events_stages_summary_by_thread_by_event_name +where count_star=1; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_by_thread_by_event_name` +delete from performance_schema.events_stages_summary_by_thread_by_event_name; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_by_thread_by_event_name` +LOCK TABLES performance_schema.events_stages_summary_by_thread_by_event_name READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_by_thread_by_event_name` +UNLOCK TABLES; +LOCK TABLES performance_schema.events_stages_summary_by_thread_by_event_name WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_by_thread_by_event_name` +UNLOCK TABLES; +# +# MDEV-25325 column_comment for performance_schema tables +# +select column_name, column_comment +from information_schema.columns +where table_schema='performance_schema' and table_name='events_stages_summary_by_thread_by_event_name'; +column_name column_comment +THREAD_ID Thread associated with the event. Together with EVENT_NAME uniquely identifies the row. +EVENT_NAME Event name. Used together with THREAD_ID for grouping events. +COUNT_STAR Number of summarized events, which includes all timed and untimed events. +SUM_TIMER_WAIT Total wait time of the timed summarized events. +MIN_TIMER_WAIT Minimum wait time of the timed summarized events. +AVG_TIMER_WAIT Average wait time of the timed summarized events. +MAX_TIMER_WAIT Maximum wait time of the timed summarized events. diff --git a/mysql-test/suite/perfschema/r/dml_esgs_by_user_by_event_name.result b/mysql-test/suite/perfschema/r/dml_esgs_by_user_by_event_name.result new file mode 100644 index 00000000..77855e6b --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_esgs_by_user_by_event_name.result @@ -0,0 +1,40 @@ +select * from performance_schema.events_stages_summary_by_user_by_event_name +where event_name like 'stage/%' limit 1; +select * from performance_schema.events_stages_summary_by_user_by_event_name +where event_name='FOO'; +insert into performance_schema.events_stages_summary_by_user_by_event_name +set event_name='FOO', user='BAR', +count_star=1, sum_timer_wait=2, min_timer_wait=3, +avg_timer_wait=4, max_timer_wait=5; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_by_user_by_event_name` +update performance_schema.events_stages_summary_by_user_by_event_name +set count_star=12; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_by_user_by_event_name` +update performance_schema.events_stages_summary_by_user_by_event_name +set count_star=12 where event_name like "FOO"; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_by_user_by_event_name` +delete from performance_schema.events_stages_summary_by_user_by_event_name +where count_star=1; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_by_user_by_event_name` +delete from performance_schema.events_stages_summary_by_user_by_event_name; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_by_user_by_event_name` +LOCK TABLES performance_schema.events_stages_summary_by_user_by_event_name READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_by_user_by_event_name` +UNLOCK TABLES; +LOCK TABLES performance_schema.events_stages_summary_by_user_by_event_name WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_by_user_by_event_name` +UNLOCK TABLES; +# +# MDEV-25325 column_comment for performance_schema tables +# +select column_name, column_comment +from information_schema.columns +where table_schema='performance_schema' and table_name='events_stages_summary_by_user_by_event_name'; +column_name column_comment +USER User. Used together with EVENT_NAME for grouping events. +EVENT_NAME Event name. Used together with USER for grouping events. +COUNT_STAR Number of summarized events, which includes all timed and untimed events. +SUM_TIMER_WAIT Total wait time of the timed summarized events. +MIN_TIMER_WAIT Minimum wait time of the timed summarized events. +AVG_TIMER_WAIT Average wait time of the timed summarized events. +MAX_TIMER_WAIT Maximum wait time of the timed summarized events. diff --git a/mysql-test/suite/perfschema/r/dml_esgs_global_by_event_name.result b/mysql-test/suite/perfschema/r/dml_esgs_global_by_event_name.result new file mode 100644 index 00000000..f238c4cb --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_esgs_global_by_event_name.result @@ -0,0 +1,38 @@ +select * from performance_schema.events_stages_summary_global_by_event_name +where event_name like 'stage/%' limit 1; +select * from performance_schema.events_stages_summary_global_by_event_name +where event_name='FOO'; +insert into performance_schema.events_stages_summary_global_by_event_name +set event_name='FOO', count_star=1, sum_timer_wait=2, min_timer_wait=3, +avg_timer_wait=4, max_timer_wait=5; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_global_by_event_name` +update performance_schema.events_stages_summary_global_by_event_name +set count_star=12; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_global_by_event_name` +update performance_schema.events_stages_summary_global_by_event_name +set count_star=12 where event_name like "FOO"; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_global_by_event_name` +delete from performance_schema.events_stages_summary_global_by_event_name +where count_star=1; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_global_by_event_name` +delete from performance_schema.events_stages_summary_global_by_event_name; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_global_by_event_name` +LOCK TABLES performance_schema.events_stages_summary_global_by_event_name READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_global_by_event_name` +UNLOCK TABLES; +LOCK TABLES performance_schema.events_stages_summary_global_by_event_name WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_summary_global_by_event_name` +UNLOCK TABLES; +# +# MDEV-25325 column_comment for performance_schema tables +# +select column_name, column_comment +from information_schema.columns +where table_schema='performance_schema' and table_name='events_stages_summary_global_by_event_name'; +column_name column_comment +EVENT_NAME Event name. +COUNT_STAR Number of summarized events, which includes all timed and untimed events. +SUM_TIMER_WAIT Total wait time of the timed summarized events. +MIN_TIMER_WAIT Minimum wait time of the timed summarized events. +AVG_TIMER_WAIT Average wait time of the timed summarized events. +MAX_TIMER_WAIT Maximum wait time of the timed summarized events. diff --git a/mysql-test/suite/perfschema/r/dml_esms_by_account_by_event_name.result b/mysql-test/suite/perfschema/r/dml_esms_by_account_by_event_name.result new file mode 100644 index 00000000..2d34f5ee --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_esms_by_account_by_event_name.result @@ -0,0 +1,60 @@ +select * from performance_schema.events_statements_summary_by_account_by_event_name +where event_name like 'statement/%' limit 1; +select * from performance_schema.events_statements_summary_by_account_by_event_name +where event_name='FOO'; +insert into performance_schema.events_statements_summary_by_account_by_event_name +set event_name='FOO', user='BAR', host='BAZ', +count_star=1, sum_timer_wait=2, min_timer_wait=3, +avg_timer_wait=4, max_timer_wait=5; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_account_by_event_name` +update performance_schema.events_statements_summary_by_account_by_event_name +set count_star=12; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_account_by_event_name` +update performance_schema.events_statements_summary_by_account_by_event_name +set count_star=12 where event_name like "FOO"; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_account_by_event_name` +delete from performance_schema.events_statements_summary_by_account_by_event_name +where count_star=1; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_account_by_event_name` +delete from performance_schema.events_statements_summary_by_account_by_event_name; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_account_by_event_name` +LOCK TABLES performance_schema.events_statements_summary_by_account_by_event_name READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_account_by_event_name` +UNLOCK TABLES; +LOCK TABLES performance_schema.events_statements_summary_by_account_by_event_name WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_account_by_event_name` +UNLOCK TABLES; +# +# MDEV-25325 column_comment for performance_schema tables +# +select column_name, column_comment +from information_schema.columns +where table_schema='performance_schema' and table_name='events_statements_summary_by_account_by_event_name'; +column_name column_comment +USER User. Used together with HOST and EVENT_NAME for grouping events. +HOST Host. Used together with USER and EVENT_NAME for grouping events. +EVENT_NAME Event name. Used together with USER and HOST for grouping events. +COUNT_STAR Number of summarized events +SUM_TIMER_WAIT Total wait time of the summarized events that are timed. +MIN_TIMER_WAIT Minimum wait time of the summarized events that are timed. +AVG_TIMER_WAIT Average wait time of the summarized events that are timed. +MAX_TIMER_WAIT Maximum wait time of the summarized events that are timed. +SUM_LOCK_TIME Sum of the LOCK_TIME column in the events_statements_current table. +SUM_ERRORS Sum of the ERRORS column in the events_statements_current table. +SUM_WARNINGS Sum of the WARNINGS column in the events_statements_current table. +SUM_ROWS_AFFECTED Sum of the ROWS_AFFECTED column in the events_statements_current table. +SUM_ROWS_SENT Sum of the ROWS_SENT column in the events_statements_current table. +SUM_ROWS_EXAMINED Sum of the ROWS_EXAMINED column in the events_statements_current table. +SUM_CREATED_TMP_DISK_TABLES Sum of the CREATED_TMP_DISK_TABLES column in the events_statements_current table. +SUM_CREATED_TMP_TABLES Sum of the CREATED_TMP_TABLES column in the events_statements_current table. +SUM_SELECT_FULL_JOIN Sum of the SELECT_FULL_JOIN column in the events_statements_current table. +SUM_SELECT_FULL_RANGE_JOIN Sum of the SELECT_FULL_RANGE_JOIN column in the events_statements_current table. +SUM_SELECT_RANGE Sum of the SELECT_RANGE column in the events_statements_current table. +SUM_SELECT_RANGE_CHECK Sum of the SELECT_RANGE_CHECK column in the events_statements_current table. +SUM_SELECT_SCAN Sum of the SELECT_SCAN column in the events_statements_current table. +SUM_SORT_MERGE_PASSES Sum of the SORT_MERGE_PASSES column in the events_statements_current table. +SUM_SORT_RANGE Sum of the SORT_RANGE column in the events_statements_current table. +SUM_SORT_ROWS Sum of the SORT_ROWS column in the events_statements_current table. +SUM_SORT_SCAN Sum of the SORT_SCAN column in the events_statements_current table. +SUM_NO_INDEX_USED Sum of the NO_INDEX_USED column in the events_statements_current table. +SUM_NO_GOOD_INDEX_USED Sum of the NO_GOOD_INDEX_USED column in the events_statements_current table. diff --git a/mysql-test/suite/perfschema/r/dml_esms_by_digest.result b/mysql-test/suite/perfschema/r/dml_esms_by_digest.result new file mode 100644 index 00000000..8240093d --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_esms_by_digest.result @@ -0,0 +1,63 @@ +select * from performance_schema.events_statements_summary_by_digest +where digest like 'XXYYZZ%' limit 1; +SCHEMA_NAME DIGEST DIGEST_TEXT COUNT_STAR SUM_TIMER_WAIT MIN_TIMER_WAIT AVG_TIMER_WAIT MAX_TIMER_WAIT SUM_LOCK_TIME SUM_ERRORS SUM_WARNINGS SUM_ROWS_AFFECTED SUM_ROWS_SENT SUM_ROWS_EXAMINED SUM_CREATED_TMP_DISK_TABLES SUM_CREATED_TMP_TABLES SUM_SELECT_FULL_JOIN SUM_SELECT_FULL_RANGE_JOIN SUM_SELECT_RANGE SUM_SELECT_RANGE_CHECK SUM_SELECT_SCAN SUM_SORT_MERGE_PASSES SUM_SORT_RANGE SUM_SORT_ROWS SUM_SORT_SCAN SUM_NO_INDEX_USED SUM_NO_GOOD_INDEX_USED FIRST_SEEN LAST_SEEN +select * from performance_schema.events_statements_summary_by_digest +where digest='XXYYZZ'; +SCHEMA_NAME DIGEST DIGEST_TEXT COUNT_STAR SUM_TIMER_WAIT MIN_TIMER_WAIT AVG_TIMER_WAIT MAX_TIMER_WAIT SUM_LOCK_TIME SUM_ERRORS SUM_WARNINGS SUM_ROWS_AFFECTED SUM_ROWS_SENT SUM_ROWS_EXAMINED SUM_CREATED_TMP_DISK_TABLES SUM_CREATED_TMP_TABLES SUM_SELECT_FULL_JOIN SUM_SELECT_FULL_RANGE_JOIN SUM_SELECT_RANGE SUM_SELECT_RANGE_CHECK SUM_SELECT_SCAN SUM_SORT_MERGE_PASSES SUM_SORT_RANGE SUM_SORT_ROWS SUM_SORT_SCAN SUM_NO_INDEX_USED SUM_NO_GOOD_INDEX_USED FIRST_SEEN LAST_SEEN +insert into performance_schema.events_statements_summary_by_digest +set digest='XXYYZZ', count_star=1, sum_timer_wait=2, min_timer_wait=3, +avg_timer_wait=4, max_timer_wait=5; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_digest` +update performance_schema.events_statements_summary_by_digest +set count_star=12; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_digest` +update performance_schema.events_statements_summary_by_digest +set count_star=12 where digest like "XXYYZZ"; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_digest` +delete from performance_schema.events_statements_summary_by_digest +where count_star=1; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_digest` +delete from performance_schema.events_statements_summary_by_digest; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_digest` +LOCK TABLES performance_schema.events_statements_summary_by_digest READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_digest` +UNLOCK TABLES; +LOCK TABLES performance_schema.events_statements_summary_by_digest WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_digest` +UNLOCK TABLES; +# +# MDEV-25325 column_comment for performance_schema tables +# +select column_name, column_comment +from information_schema.columns +where table_schema='performance_schema' and table_name='events_statements_summary_by_digest'; +column_name column_comment +SCHEMA_NAME Database name. Records are summarised together with DIGEST. +DIGEST Performance Schema digest. Records are summarised together with SCHEMA NAME. +DIGEST_TEXT The unhashed form of the digest. +COUNT_STAR Number of summarized events +SUM_TIMER_WAIT Total wait time of the summarized events that are timed. +MIN_TIMER_WAIT Minimum wait time of the summarized events that are timed. +AVG_TIMER_WAIT Average wait time of the summarized events that are timed. +MAX_TIMER_WAIT Maximum wait time of the summarized events that are timed. +SUM_LOCK_TIME Sum of the LOCK_TIME column in the events_statements_current table. +SUM_ERRORS Sum of the ERRORS column in the events_statements_current table. +SUM_WARNINGS Sum of the WARNINGS column in the events_statements_current table. +SUM_ROWS_AFFECTED Sum of the ROWS_AFFECTED column in the events_statements_current table. +SUM_ROWS_SENT Sum of the ROWS_SENT column in the events_statements_current table. +SUM_ROWS_EXAMINED Sum of the ROWS_EXAMINED column in the events_statements_current table. +SUM_CREATED_TMP_DISK_TABLES Sum of the CREATED_TMP_DISK_TABLES column in the events_statements_current table. +SUM_CREATED_TMP_TABLES Sum of the CREATED_TMP_TABLES column in the events_statements_current table. +SUM_SELECT_FULL_JOIN Sum of the SELECT_FULL_JOIN column in the events_statements_current table. +SUM_SELECT_FULL_RANGE_JOIN Sum of the SELECT_FULL_RANGE_JOIN column in the events_statements_current table. +SUM_SELECT_RANGE Sum of the SELECT_RANGE column in the events_statements_current table. +SUM_SELECT_RANGE_CHECK Sum of the SELECT_RANGE_CHECK column in the events_statements_current table. +SUM_SELECT_SCAN Sum of the SELECT_SCAN column in the events_statements_current table. +SUM_SORT_MERGE_PASSES Sum of the SORT_MERGE_PASSES column in the events_statements_current table. +SUM_SORT_RANGE Sum of the SORT_RANGE column in the events_statements_current table. +SUM_SORT_ROWS Sum of the SORT_ROWS column in the events_statements_current table. +SUM_SORT_SCAN Sum of the SORT_SCAN column in the events_statements_current table. +SUM_NO_INDEX_USED Sum of the NO_INDEX_USED column in the events_statements_current table. +SUM_NO_GOOD_INDEX_USED Sum of the NO_GOOD_INDEX_USED column in the events_statements_current table. +FIRST_SEEN Time at which the digest was first seen. +LAST_SEEN Time at which the digest was most recently seen. diff --git a/mysql-test/suite/perfschema/r/dml_esms_by_host_by_event_name.result b/mysql-test/suite/perfschema/r/dml_esms_by_host_by_event_name.result new file mode 100644 index 00000000..847caf20 --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_esms_by_host_by_event_name.result @@ -0,0 +1,59 @@ +select * from performance_schema.events_statements_summary_by_host_by_event_name +where event_name like 'statement/%' limit 1; +select * from performance_schema.events_statements_summary_by_host_by_event_name +where event_name='FOO'; +insert into performance_schema.events_statements_summary_by_host_by_event_name +set event_name='FOO', thread_id=1, +count_star=1, sum_timer_wait=2, min_timer_wait=3, +avg_timer_wait=4, max_timer_wait=5; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_host_by_event_name` +update performance_schema.events_statements_summary_by_host_by_event_name +set count_star=12; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_host_by_event_name` +update performance_schema.events_statements_summary_by_host_by_event_name +set count_star=12 where event_name like "FOO"; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_host_by_event_name` +delete from performance_schema.events_statements_summary_by_host_by_event_name +where count_star=1; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_host_by_event_name` +delete from performance_schema.events_statements_summary_by_host_by_event_name; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_host_by_event_name` +LOCK TABLES performance_schema.events_statements_summary_by_host_by_event_name READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_host_by_event_name` +UNLOCK TABLES; +LOCK TABLES performance_schema.events_statements_summary_by_host_by_event_name WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_host_by_event_name` +UNLOCK TABLES; +# +# MDEV-25325 column_comment for performance_schema tables +# +select column_name, column_comment +from information_schema.columns +where table_schema='performance_schema' and table_name='events_statements_summary_by_host_by_event_name'; +column_name column_comment +HOST Host. Used together with EVENT_NAME for grouping events. +EVENT_NAME Event name. Used together with HOST for grouping events. +COUNT_STAR Number of summarized events +SUM_TIMER_WAIT Total wait time of the summarized events that are timed. +MIN_TIMER_WAIT Minimum wait time of the summarized events that are timed. +AVG_TIMER_WAIT Average wait time of the summarized events that are timed. +MAX_TIMER_WAIT Maximum wait time of the summarized events that are timed. +SUM_LOCK_TIME Sum of the LOCK_TIME column in the events_statements_currentd table. +SUM_ERRORS Sum of the ERRORS column in the events_statements_current table. +SUM_WARNINGS Sum of the WARNINGS column in the events_statements_current table. +SUM_ROWS_AFFECTED Sum of the ROWS_AFFECTED column in the events_statements_current table. +SUM_ROWS_SENT Sum of the ROWS_SENT column in the events_statements_current table. +SUM_ROWS_EXAMINED Sum of the ROWS_EXAMINED column in the events_statements_current table. +SUM_CREATED_TMP_DISK_TABLES Sum of the CREATED_TMP_DISK_TABLES column in the events_statements_current table. +SUM_CREATED_TMP_TABLES Sum of the CREATED_TMP_TABLES column in the events_statements_current table. +SUM_SELECT_FULL_JOIN Sum of the SELECT_FULL_JOIN column in the events_statements_current table. +SUM_SELECT_FULL_RANGE_JOIN Sum of the SELECT_FULL_RANGE_JOINW column in the events_statements_current table. +SUM_SELECT_RANGE Sum of the SELECT_RANGE column in the events_statements_current table. +SUM_SELECT_RANGE_CHECK Sum of the SELECT_RANGE_CHECK column in the events_statements_current table. +SUM_SELECT_SCAN Sum of the SELECT_SCAN column in the events_statements_current table. +SUM_SORT_MERGE_PASSES Sum of the SORT_MERGE_PASSES column in the events_statements_current table. +SUM_SORT_RANGE Sum of the SORT_RANGE column in the events_statements_current table. +SUM_SORT_ROWS Sum of the SORT_ROWS column in the events_statements_current table. +SUM_SORT_SCAN Sum of the SORT_SCAN column in the events_statements_current table. +SUM_NO_INDEX_USED Sum of the NO_INDEX_USED column in the events_statements_current table. +SUM_NO_GOOD_INDEX_USED Sum of the NO_GOOD_INDEX_USED column in the events_statements_current table. diff --git a/mysql-test/suite/perfschema/r/dml_esms_by_program.result b/mysql-test/suite/perfschema/r/dml_esms_by_program.result new file mode 100644 index 00000000..b507652e --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_esms_by_program.result @@ -0,0 +1,27 @@ +select * from performance_schema.events_statements_summary_by_program +where object_name like 'XXYYZZ%' limit 1; +OBJECT_TYPE OBJECT_SCHEMA OBJECT_NAME COUNT_STAR SUM_TIMER_WAIT MIN_TIMER_WAIT AVG_TIMER_WAIT MAX_TIMER_WAIT COUNT_STATEMENTS SUM_STATEMENTS_WAIT MIN_STATEMENTS_WAIT AVG_STATEMENTS_WAIT MAX_STATEMENTS_WAIT SUM_LOCK_TIME SUM_ERRORS SUM_WARNINGS SUM_ROWS_AFFECTED SUM_ROWS_SENT SUM_ROWS_EXAMINED SUM_CREATED_TMP_DISK_TABLES SUM_CREATED_TMP_TABLES SUM_SELECT_FULL_JOIN SUM_SELECT_FULL_RANGE_JOIN SUM_SELECT_RANGE SUM_SELECT_RANGE_CHECK SUM_SELECT_SCAN SUM_SORT_MERGE_PASSES SUM_SORT_RANGE SUM_SORT_ROWS SUM_SORT_SCAN SUM_NO_INDEX_USED SUM_NO_GOOD_INDEX_USED +select * from performance_schema.events_statements_summary_by_program +where object_name='XXYYZZ'; +OBJECT_TYPE OBJECT_SCHEMA OBJECT_NAME COUNT_STAR SUM_TIMER_WAIT MIN_TIMER_WAIT AVG_TIMER_WAIT MAX_TIMER_WAIT COUNT_STATEMENTS SUM_STATEMENTS_WAIT MIN_STATEMENTS_WAIT AVG_STATEMENTS_WAIT MAX_STATEMENTS_WAIT SUM_LOCK_TIME SUM_ERRORS SUM_WARNINGS SUM_ROWS_AFFECTED SUM_ROWS_SENT SUM_ROWS_EXAMINED SUM_CREATED_TMP_DISK_TABLES SUM_CREATED_TMP_TABLES SUM_SELECT_FULL_JOIN SUM_SELECT_FULL_RANGE_JOIN SUM_SELECT_RANGE SUM_SELECT_RANGE_CHECK SUM_SELECT_SCAN SUM_SORT_MERGE_PASSES SUM_SORT_RANGE SUM_SORT_ROWS SUM_SORT_SCAN SUM_NO_INDEX_USED SUM_NO_GOOD_INDEX_USED +insert into performance_schema.events_statements_summary_by_program +set object_name='XXYYZZ', count_star=1, sum_timer_wait=2, min_timer_wait=3, +avg_timer_wait=4, max_timer_wait=5; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_program` +update performance_schema.events_statements_summary_by_program +set count_star=12; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_program` +update performance_schema.events_statements_summary_by_program +set count_star=12 where object_name like "XXYYZZ"; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_program` +delete from performance_schema.events_statements_summary_by_program +where count_star=1; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_program` +delete from performance_schema.events_statements_summary_by_program; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_program` +LOCK TABLES performance_schema.events_statements_summary_by_program READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_program` +UNLOCK TABLES; +LOCK TABLES performance_schema.events_statements_summary_by_program WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_program` +UNLOCK TABLES; diff --git a/mysql-test/suite/perfschema/r/dml_esms_by_thread_by_event_name.result b/mysql-test/suite/perfschema/r/dml_esms_by_thread_by_event_name.result new file mode 100644 index 00000000..d8dfb72f --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_esms_by_thread_by_event_name.result @@ -0,0 +1,59 @@ +select * from performance_schema.events_statements_summary_by_thread_by_event_name +where event_name like 'statement/%' limit 1; +select * from performance_schema.events_statements_summary_by_thread_by_event_name +where event_name='FOO'; +insert into performance_schema.events_statements_summary_by_thread_by_event_name +set event_name='FOO', thread_id=1, +count_star=1, sum_timer_wait=2, min_timer_wait=3, +avg_timer_wait=4, max_timer_wait=5; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_thread_by_event_name` +update performance_schema.events_statements_summary_by_thread_by_event_name +set count_star=12; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_thread_by_event_name` +update performance_schema.events_statements_summary_by_thread_by_event_name +set count_star=12 where event_name like "FOO"; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_thread_by_event_name` +delete from performance_schema.events_statements_summary_by_thread_by_event_name +where count_star=1; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_thread_by_event_name` +delete from performance_schema.events_statements_summary_by_thread_by_event_name; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_thread_by_event_name` +LOCK TABLES performance_schema.events_statements_summary_by_thread_by_event_name READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_thread_by_event_name` +UNLOCK TABLES; +LOCK TABLES performance_schema.events_statements_summary_by_thread_by_event_name WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_thread_by_event_name` +UNLOCK TABLES; +# +# MDEV-25325 column_comment for performance_schema tables +# +select column_name, column_comment +from information_schema.columns +where table_schema='performance_schema' and table_name='events_statements_summary_by_thread_by_event_name'; +column_name column_comment +THREAD_ID Thread associated with the event. Together with EVENT_NAME uniquely identifies the row. +EVENT_NAME Event name. Used together with THREAD_ID for grouping events. +COUNT_STAR Number of summarized events +SUM_TIMER_WAIT Total wait time of the summarized events that are timed. +MIN_TIMER_WAIT Minimum wait time of the summarized events that are timed. +AVG_TIMER_WAIT Average wait time of the summarized events that are timed. +MAX_TIMER_WAIT Maximum wait time of the summarized events that are timed. +SUM_LOCK_TIME Sum of the LOCK_TIME column in the events_statements_current table. +SUM_ERRORS Sum of the ERRORS column in the events_statements_current table. +SUM_WARNINGS Sum of the WARNINGS column in the events_statements_current table. +SUM_ROWS_AFFECTED Sum of the ROWS_AFFECTED column in the events_statements_current table. +SUM_ROWS_SENT Sum of the ROWS_SENT column in the events_statements_current table. +SUM_ROWS_EXAMINED Sum of the ROWS_EXAMINED column in the events_statements_current table. +SUM_CREATED_TMP_DISK_TABLES Sum of the CREATED_TMP_DISK_TABLES column in the events_statements_current table. +SUM_CREATED_TMP_TABLES Sum of the CREATED_TMP_TABLES column in the events_statements_current table. +SUM_SELECT_FULL_JOIN Sum of the SELECT_FULL_JOIN column in the events_statements_current table. +SUM_SELECT_FULL_RANGE_JOIN Sum of the SELECT_FULL_RANGE_JOIN column in the events_statements_current table. +SUM_SELECT_RANGE Sum of the SELECT_RANGE column in the events_statements_current table. +SUM_SELECT_RANGE_CHECK Sum of the SELECT_RANGE_CHECK column in the events_statements_current table. +SUM_SELECT_SCAN Sum of the SELECT_SCAN column in the events_statements_current table. +SUM_SORT_MERGE_PASSES Sum of the SORT_MERGE_PASSES column in the events_statements_current table. +SUM_SORT_RANGE Sum of the SORT_RANGE column in the events_statements_current table. +SUM_SORT_ROWS Sum of the SORT_ROWS column in the events_statements_current table. +SUM_SORT_SCAN Sum of the SORT_SCAN column in the events_statements_current table. +SUM_NO_INDEX_USED Sum of the NO_INDEX_USED column in the events_statements_current table. +SUM_NO_GOOD_INDEX_USED Sum of the NO_GOOD_INDEX_USED column in the events_statements_current table. diff --git a/mysql-test/suite/perfschema/r/dml_esms_by_user_by_event_name.result b/mysql-test/suite/perfschema/r/dml_esms_by_user_by_event_name.result new file mode 100644 index 00000000..12290453 --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_esms_by_user_by_event_name.result @@ -0,0 +1,59 @@ +select * from performance_schema.events_statements_summary_by_user_by_event_name +where event_name like 'statement/%' limit 1; +select * from performance_schema.events_statements_summary_by_user_by_event_name +where event_name='FOO'; +insert into performance_schema.events_statements_summary_by_user_by_event_name +set event_name='FOO', user='BAR', +count_star=1, sum_timer_wait=2, min_timer_wait=3, +avg_timer_wait=4, max_timer_wait=5; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_user_by_event_name` +update performance_schema.events_statements_summary_by_user_by_event_name +set count_star=12; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_user_by_event_name` +update performance_schema.events_statements_summary_by_user_by_event_name +set count_star=12 where event_name like "FOO"; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_user_by_event_name` +delete from performance_schema.events_statements_summary_by_user_by_event_name +where count_star=1; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_user_by_event_name` +delete from performance_schema.events_statements_summary_by_user_by_event_name; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_user_by_event_name` +LOCK TABLES performance_schema.events_statements_summary_by_user_by_event_name READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_user_by_event_name` +UNLOCK TABLES; +LOCK TABLES performance_schema.events_statements_summary_by_user_by_event_name WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_by_user_by_event_name` +UNLOCK TABLES; +# +# MDEV-25325 column_comment for performance_schema tables +# +select column_name, column_comment +from information_schema.columns +where table_schema='performance_schema' and table_name='events_statements_summary_by_user_by_event_name'; +column_name column_comment +USER User. Used together with EVENT_NAME for grouping events. +EVENT_NAME Event name. Used together with USER for grouping events. +COUNT_STAR Number of summarized events +SUM_TIMER_WAIT Total wait time of the summarized events that are timed. +MIN_TIMER_WAIT Minimum wait time of the summarized events that are timed. +AVG_TIMER_WAIT Average wait time of the summarized events that are timed. +MAX_TIMER_WAIT Maximum wait time of the summarized events that are timed. +SUM_LOCK_TIME Sum of the LOCK_TIME column in the events_statements_current table. +SUM_ERRORS Sum of the ERRORS column in the events_statements_current table. +SUM_WARNINGS Sum of the WARNINGS column in the events_statements_current table. +SUM_ROWS_AFFECTED Sum of the ROWS_AFFECTED column in the events_statements_current table. +SUM_ROWS_SENT Sum of the ROWS_SENT column in the events_statements_current table. +SUM_ROWS_EXAMINED Sum of the ROWS_EXAMINED column in the events_statements_current table. +SUM_CREATED_TMP_DISK_TABLES Sum of the CREATED_TMP_DISK_TABLES column in the events_statements_current table. +SUM_CREATED_TMP_TABLES Sum of the CREATED_TMP_TABLES column in the events_statements_current table. +SUM_SELECT_FULL_JOIN Sum of the SELECT_FULL_JOIN column in the events_statements_current table. +SUM_SELECT_FULL_RANGE_JOIN Sum of the SELECT_FULL_RANGE_JOIN column in the events_statements_current table. +SUM_SELECT_RANGE Sum of the SELECT_RANGE column in the events_statements_current table. +SUM_SELECT_RANGE_CHECK Sum of the SELECT_RANGE_CHECK column in the events_statements_current table. +SUM_SELECT_SCAN Sum of the SELECT_SCAN column in the events_statements_current table. +SUM_SORT_MERGE_PASSES Sum of the SORT_MERGE_PASSES column in the events_statements_current table. +SUM_SORT_RANGE Sum of the SORT_RANGE column in the events_statements_current table. +SUM_SORT_ROWS Sum of the SORT_ROWS column in the events_statements_current table. +SUM_SORT_SCAN Sum of the SORT_SCAN column in the events_statements_current table. +SUM_NO_INDEX_USED Sum of the NO_INDEX_USED column in the events_statements_current table. +SUM_NO_GOOD_INDEX_USED Sum of the NO_GOOD_INDEX_USED column in the events_statements_current table. diff --git a/mysql-test/suite/perfschema/r/dml_esms_global_by_event_name.result b/mysql-test/suite/perfschema/r/dml_esms_global_by_event_name.result new file mode 100644 index 00000000..a12b308b --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_esms_global_by_event_name.result @@ -0,0 +1,57 @@ +select * from performance_schema.events_statements_summary_global_by_event_name +where event_name like 'statement/%' limit 1; +select * from performance_schema.events_statements_summary_global_by_event_name +where event_name='FOO'; +insert into performance_schema.events_statements_summary_global_by_event_name +set event_name='FOO', count_star=1, sum_timer_wait=2, min_timer_wait=3, +avg_timer_wait=4, max_timer_wait=5; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_global_by_event_name` +update performance_schema.events_statements_summary_global_by_event_name +set count_star=12; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_global_by_event_name` +update performance_schema.events_statements_summary_global_by_event_name +set count_star=12 where event_name like "FOO"; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_global_by_event_name` +delete from performance_schema.events_statements_summary_global_by_event_name +where count_star=1; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_global_by_event_name` +delete from performance_schema.events_statements_summary_global_by_event_name; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_global_by_event_name` +LOCK TABLES performance_schema.events_statements_summary_global_by_event_name READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_global_by_event_name` +UNLOCK TABLES; +LOCK TABLES performance_schema.events_statements_summary_global_by_event_name WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_summary_global_by_event_name` +UNLOCK TABLES; +# +# MDEV-25325 column_comment for performance_schema tables +# +select column_name, column_comment +from information_schema.columns +where table_schema='performance_schema' and table_name='events_statements_summary_global_by_event_name'; +column_name column_comment +EVENT_NAME Event name. +COUNT_STAR Number of summarized events +SUM_TIMER_WAIT Total wait time of the summarized events that are timed. +MIN_TIMER_WAIT Minimum wait time of the summarized events that are timed. +AVG_TIMER_WAIT Average wait time of the summarized events that are timed. +MAX_TIMER_WAIT Maximum wait time of the summarized events that are timed. +SUM_LOCK_TIME Sum of the LOCK_TIME column in the events_statements_current table. +SUM_ERRORS Sum of the ERRORS column in the events_statements_current table. +SUM_WARNINGS Sum of the WARNINGS column in the events_statements_current table. +SUM_ROWS_AFFECTED Sum of the ROWS_AFFECTED column in the events_statements_current table. +SUM_ROWS_SENT Sum of the ROWS_SENT column in the events_statements_current table. +SUM_ROWS_EXAMINED Sum of the ROWS_EXAMINED column in the events_statements_current table. +SUM_CREATED_TMP_DISK_TABLES Sum of the CREATED_TMP_DISK_TABLES column in the events_statements_current table. +SUM_CREATED_TMP_TABLES Sum of the CREATED_TMP_TABLES column in the events_statements_current table. +SUM_SELECT_FULL_JOIN Sum of the SELECT_FULL_JOIN column in the events_statements_current table. +SUM_SELECT_FULL_RANGE_JOIN Sum of the SELECT_FULL_RANGE_JOIN column in the events_statements_current table. +SUM_SELECT_RANGE Sum of the SELECT_RANGE column in the events_statements_current table. +SUM_SELECT_RANGE_CHECK Sum of the SELECT_RANGE_CHECK column in the events_statements_current table. +SUM_SELECT_SCAN Sum of the SELECT_SCAN column in the events_statements_current table. +SUM_SORT_MERGE_PASSES Sum of the SORT_MERGE_PASSES column in the events_statements_current table. +SUM_SORT_RANGE Sum of the SORT_RANGE column in the events_statements_current table. +SUM_SORT_ROWS Sum of the SORT_ROWS column in the events_statements_current table. +SUM_SORT_SCAN Sum of the SORT_SCAN column in the events_statements_current table. +SUM_NO_INDEX_USED Sum of the NO_INDEX_USED column in the events_statements_current table. +SUM_NO_GOOD_INDEX_USED Sum of the NO_GOOD_INDEX_USED column in the events_statements_current table. diff --git a/mysql-test/suite/perfschema/r/dml_ets_by_account_by_event_name.result b/mysql-test/suite/perfschema/r/dml_ets_by_account_by_event_name.result new file mode 100644 index 00000000..01d87f52 --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_ets_by_account_by_event_name.result @@ -0,0 +1,26 @@ +select * from performance_schema.events_transactions_summary_by_account_by_event_name +where event_name in ('transaction') limit 1; +select * from performance_schema.events_transactions_summary_by_account_by_event_name +where event_name='FOO'; +insert into performance_schema.events_transactions_summary_by_account_by_event_name +set event_name='FOO', user='BAR', host='BAZ', +count_star=1, sum_timer_wait=2, min_timer_wait=3, +avg_timer_wait=4, max_timer_wait=5; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`events_transactions_summary_by_account_by_event_name` +update performance_schema.events_transactions_summary_by_account_by_event_name +set count_star=12; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_transactions_summary_by_account_by_event_name` +update performance_schema.events_transactions_summary_by_account_by_event_name +set count_star=12 where event_name like "FOO"; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_transactions_summary_by_account_by_event_name` +delete from performance_schema.events_transactions_summary_by_account_by_event_name +where count_star=1; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_transactions_summary_by_account_by_event_name` +delete from performance_schema.events_transactions_summary_by_account_by_event_name; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_transactions_summary_by_account_by_event_name` +LOCK TABLES performance_schema.events_transactions_summary_by_account_by_event_name READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_transactions_summary_by_account_by_event_name` +UNLOCK TABLES; +LOCK TABLES performance_schema.events_transactions_summary_by_account_by_event_name WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_transactions_summary_by_account_by_event_name` +UNLOCK TABLES; diff --git a/mysql-test/suite/perfschema/r/dml_ets_by_host_by_event_name.result b/mysql-test/suite/perfschema/r/dml_ets_by_host_by_event_name.result new file mode 100644 index 00000000..4d138f97 --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_ets_by_host_by_event_name.result @@ -0,0 +1,26 @@ +select * from performance_schema.events_transactions_summary_by_host_by_event_name +where event_name in ('transaction') limit 1; +select * from performance_schema.events_transactions_summary_by_host_by_event_name +where event_name='FOO'; +insert into performance_schema.events_transactions_summary_by_host_by_event_name +set event_name='FOO', thread_id=1, +count_star=1, sum_timer_wait=2, min_timer_wait=3, +avg_timer_wait=4, max_timer_wait=5; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`events_transactions_summary_by_host_by_event_name` +update performance_schema.events_transactions_summary_by_host_by_event_name +set count_star=12; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_transactions_summary_by_host_by_event_name` +update performance_schema.events_transactions_summary_by_host_by_event_name +set count_star=12 where event_name like "FOO"; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_transactions_summary_by_host_by_event_name` +delete from performance_schema.events_transactions_summary_by_host_by_event_name +where count_star=1; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_transactions_summary_by_host_by_event_name` +delete from performance_schema.events_transactions_summary_by_host_by_event_name; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_transactions_summary_by_host_by_event_name` +LOCK TABLES performance_schema.events_transactions_summary_by_host_by_event_name READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_transactions_summary_by_host_by_event_name` +UNLOCK TABLES; +LOCK TABLES performance_schema.events_transactions_summary_by_host_by_event_name WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_transactions_summary_by_host_by_event_name` +UNLOCK TABLES; diff --git a/mysql-test/suite/perfschema/r/dml_ets_by_thread_by_event_name.result b/mysql-test/suite/perfschema/r/dml_ets_by_thread_by_event_name.result new file mode 100644 index 00000000..75a023a2 --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_ets_by_thread_by_event_name.result @@ -0,0 +1,26 @@ +select * from performance_schema.events_transactions_summary_by_thread_by_event_name +where event_name in ('transaction') limit 1; +select * from performance_schema.events_transactions_summary_by_thread_by_event_name +where event_name='FOO'; +insert into performance_schema.events_transactions_summary_by_thread_by_event_name +set event_name='FOO', thread_id=1, +count_star=1, sum_timer_wait=2, min_timer_wait=3, +avg_timer_wait=4, max_timer_wait=5; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`events_transactions_summary_by_thread_by_event_name` +update performance_schema.events_transactions_summary_by_thread_by_event_name +set count_star=12; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_transactions_summary_by_thread_by_event_name` +update performance_schema.events_transactions_summary_by_thread_by_event_name +set count_star=12 where event_name like "FOO"; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_transactions_summary_by_thread_by_event_name` +delete from performance_schema.events_transactions_summary_by_thread_by_event_name +where count_star=1; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_transactions_summary_by_thread_by_event_name` +delete from performance_schema.events_transactions_summary_by_thread_by_event_name; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_transactions_summary_by_thread_by_event_name` +LOCK TABLES performance_schema.events_transactions_summary_by_thread_by_event_name READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_transactions_summary_by_thread_by_event_name` +UNLOCK TABLES; +LOCK TABLES performance_schema.events_transactions_summary_by_thread_by_event_name WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_transactions_summary_by_thread_by_event_name` +UNLOCK TABLES; diff --git a/mysql-test/suite/perfschema/r/dml_ets_by_user_by_event_name.result b/mysql-test/suite/perfschema/r/dml_ets_by_user_by_event_name.result new file mode 100644 index 00000000..0e8efe2d --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_ets_by_user_by_event_name.result @@ -0,0 +1,26 @@ +select * from performance_schema.events_transactions_summary_by_user_by_event_name +where event_name in ('transaction') limit 1; +select * from performance_schema.events_transactions_summary_by_user_by_event_name +where event_name='FOO'; +insert into performance_schema.events_transactions_summary_by_user_by_event_name +set event_name='FOO', user='BAR', +count_star=1, sum_timer_wait=2, min_timer_wait=3, +avg_timer_wait=4, max_timer_wait=5; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`events_transactions_summary_by_user_by_event_name` +update performance_schema.events_transactions_summary_by_user_by_event_name +set count_star=12; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_transactions_summary_by_user_by_event_name` +update performance_schema.events_transactions_summary_by_user_by_event_name +set count_star=12 where event_name like "FOO"; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_transactions_summary_by_user_by_event_name` +delete from performance_schema.events_transactions_summary_by_user_by_event_name +where count_star=1; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_transactions_summary_by_user_by_event_name` +delete from performance_schema.events_transactions_summary_by_user_by_event_name; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_transactions_summary_by_user_by_event_name` +LOCK TABLES performance_schema.events_transactions_summary_by_user_by_event_name READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_transactions_summary_by_user_by_event_name` +UNLOCK TABLES; +LOCK TABLES performance_schema.events_transactions_summary_by_user_by_event_name WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_transactions_summary_by_user_by_event_name` +UNLOCK TABLES; diff --git a/mysql-test/suite/perfschema/r/dml_ets_global_by_event_name.result b/mysql-test/suite/perfschema/r/dml_ets_global_by_event_name.result new file mode 100644 index 00000000..e1158839 --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_ets_global_by_event_name.result @@ -0,0 +1,25 @@ +select * from performance_schema.events_transactions_summary_global_by_event_name +where event_name in ('transaction') limit 1; +select * from performance_schema.events_transactions_summary_global_by_event_name +where event_name='FOO'; +insert into performance_schema.events_transactions_summary_global_by_event_name +set event_name='FOO', count_star=1, sum_timer_wait=2, min_timer_wait=3, +avg_timer_wait=4, max_timer_wait=5; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`events_transactions_summary_global_by_event_name` +update performance_schema.events_transactions_summary_global_by_event_name +set count_star=12; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_transactions_summary_global_by_event_name` +update performance_schema.events_transactions_summary_global_by_event_name +set count_star=12 where event_name like "FOO"; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_transactions_summary_global_by_event_name` +delete from performance_schema.events_transactions_summary_global_by_event_name +where count_star=1; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_transactions_summary_global_by_event_name` +delete from performance_schema.events_transactions_summary_global_by_event_name; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_transactions_summary_global_by_event_name` +LOCK TABLES performance_schema.events_transactions_summary_global_by_event_name READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_transactions_summary_global_by_event_name` +UNLOCK TABLES; +LOCK TABLES performance_schema.events_transactions_summary_global_by_event_name WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_transactions_summary_global_by_event_name` +UNLOCK TABLES; diff --git a/mysql-test/suite/perfschema/r/dml_events_stages_current.result b/mysql-test/suite/perfschema/r/dml_events_stages_current.result new file mode 100644 index 00000000..7a27bfbf --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_events_stages_current.result @@ -0,0 +1,44 @@ +select * from performance_schema.events_stages_current +where event_name like 'stage/%' limit 1; +select * from performance_schema.events_stages_current +where event_name='FOO'; +insert into performance_schema.events_stages_current +set thread_id='1', event_id=1, +event_name='FOO', timer_start=1, timer_end=2, timer_wait=3; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_current` +update performance_schema.events_stages_current +set timer_start=12; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_current` +update performance_schema.events_stages_current +set timer_start=12 where thread_id=0; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_current` +delete from performance_schema.events_stages_current +where thread_id=1; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_current` +delete from performance_schema.events_stages_current; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_current` +LOCK TABLES performance_schema.events_stages_current READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_current` +UNLOCK TABLES; +LOCK TABLES performance_schema.events_stages_current WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_current` +UNLOCK TABLES; +# +# MDEV-25325 column_comment for performance_schema tables +# +select column_name, column_comment +from information_schema.columns +where table_schema='performance_schema' and table_name='events_stages_current'; +column_name column_comment +THREAD_ID Thread associated with the event. Together with EVENT_ID uniquely identifies the row. +EVENT_ID Thread's current event number at the start of the event. Together with THREAD_ID uniquely identifies the row. +END_EVENT_ID NULL when the event starts, set to the thread's current event number at the end of the event. +EVENT_NAME Event instrument name and a NAME from the setup_instruments table +SOURCE Name and line number of the source file containing the instrumented code that produced the event. +TIMER_START Value in picoseconds when the event timing started or NULL if timing is not collected. +TIMER_END Value in picoseconds when the event timing ended, or NULL if the event has not ended or timing is not collected. +TIMER_WAIT Value in picoseconds of the event's duration or NULL if the event has not ended or timing is not collected. +WORK_COMPLETED The number of work units completed for the stage. NULL if the stage event progress is not instrumented. +WORK_ESTIMATED The number of work units expected for the stage. NULL if the stage event progress is not instrumented. +NESTING_EVENT_ID EVENT_ID of event within which this event nests. +NESTING_EVENT_TYPE Nesting event type. Either transaction, statement, stage or wait. diff --git a/mysql-test/suite/perfschema/r/dml_events_stages_history.result b/mysql-test/suite/perfschema/r/dml_events_stages_history.result new file mode 100644 index 00000000..469ea78a --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_events_stages_history.result @@ -0,0 +1,48 @@ +select * from performance_schema.events_stages_history +where event_name like 'stage/%' limit 1; +select * from performance_schema.events_stages_history +where event_name='FOO'; +select * from performance_schema.events_stages_history +where event_name like 'stage/%' order by timer_wait limit 1; +select * from performance_schema.events_stages_history +where event_name like 'stage/%' order by timer_wait desc limit 1; +insert into performance_schema.events_stages_history +set thread_id='1', event_id=1, +event_name='FOO', timer_start=1, timer_end=2, timer_wait=3; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_history` +update performance_schema.events_stages_history +set timer_start=12; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_history` +update performance_schema.events_stages_history +set timer_start=12 where thread_id=0; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_history` +delete from performance_schema.events_stages_history +where thread_id=1; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_history` +delete from performance_schema.events_stages_history; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_history` +LOCK TABLES performance_schema.events_stages_history READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_history` +UNLOCK TABLES; +LOCK TABLES performance_schema.events_stages_history WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_history` +UNLOCK TABLES; +# +# MDEV-25325 column_comment for performance_schema tables +# +select column_name, column_comment +from information_schema.columns +where table_schema='performance_schema' and table_name='events_stages_history'; +column_name column_comment +THREAD_ID Thread associated with the event. Together with EVENT_ID uniquely identifies the row. +EVENT_ID Thread's current event number at the start of the event. Together with THREAD_ID uniquely identifies the row. +END_EVENT_ID NULL when the event starts, set to the thread's current event number at the end of the event. +EVENT_NAME Event instrument name and a NAME from the setup_instruments table +SOURCE Name and line number of the source file containing the instrumented code that produced the event. +TIMER_START Value in picoseconds when the event timing started or NULL if timing is not collected. +TIMER_END Value in picoseconds when the event timing ended, or NULL if the event has not ended or timing is not collected. +TIMER_WAIT Value in picoseconds of the event's duration or NULL if the event has not ended or timing is not collected. +WORK_COMPLETED The number of work units completed for the stage. NULL if the stage event progress is not instrumented. +WORK_ESTIMATED The number of work units expected for the stage. NULL if the stage event progress is not instrumented. +NESTING_EVENT_ID EVENT_ID of event within which this event nests. +NESTING_EVENT_TYPE Nesting event type. Either transaction, statement, stage or wait. diff --git a/mysql-test/suite/perfschema/r/dml_events_stages_history_long.result b/mysql-test/suite/perfschema/r/dml_events_stages_history_long.result new file mode 100644 index 00000000..d89b1a81 --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_events_stages_history_long.result @@ -0,0 +1,48 @@ +select * from performance_schema.events_stages_history_long +where event_name like 'stage/%' limit 1; +select * from performance_schema.events_stages_history_long +where event_name='FOO'; +select * from performance_schema.events_stages_history_long +where event_name like 'stage/%' order by timer_wait limit 1; +select * from performance_schema.events_stages_history_long +where event_name like 'stage/%' order by timer_wait desc limit 1; +insert into performance_schema.events_stages_history_long +set thread_id='1', event_id=1, +event_name='FOO', timer_start=1, timer_end=2, timer_wait=3; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_history_long` +update performance_schema.events_stages_history_long +set timer_start=12; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_history_long` +update performance_schema.events_stages_history_long +set timer_start=12 where thread_id=0; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_history_long` +delete from performance_schema.events_stages_history_long +where thread_id=1; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_history_long` +delete from performance_schema.events_stages_history_long; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_history_long` +LOCK TABLES performance_schema.events_stages_history_long READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_history_long` +UNLOCK TABLES; +LOCK TABLES performance_schema.events_stages_history_long WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_stages_history_long` +UNLOCK TABLES; +# +# MDEV-25325 column_comment for performance_schema tables +# +select column_name, column_comment +from information_schema.columns +where table_schema='performance_schema' and table_name='events_stages_history_long'; +column_name column_comment +THREAD_ID Thread associated with the event. Together with EVENT_ID uniquely identifies the row. +EVENT_ID Thread's current event number at the start of the event. Together with THREAD_ID uniquely identifies the row. +END_EVENT_ID NULL when the event starts, set to the thread's current event number at the end of the event. +EVENT_NAME Event instrument name and a NAME from the setup_instruments table +SOURCE Name and line number of the source file containing the instrumented code that produced the event. +TIMER_START Value in picoseconds when the event timing started or NULL if timing is not collected. +TIMER_END Value in picoseconds when the event timing ended, or NULL if the event has not ended or timing is not collected. +TIMER_WAIT Value in picoseconds of the event's duration or NULL if the event has not ended or timing is not collected. +WORK_COMPLETED The number of work units completed for the stage. NULL if the stage event progress is not instrumented. +WORK_ESTIMATED The number of work units expected for the stage. NULL if the stage event progress is not instrumented. +NESTING_EVENT_ID EVENT_ID of event within which this event nests. +NESTING_EVENT_TYPE Nesting event type. Either transaction, statement, stage or wait. diff --git a/mysql-test/suite/perfschema/r/dml_events_statements_current.result b/mysql-test/suite/perfschema/r/dml_events_statements_current.result new file mode 100644 index 00000000..3a57d318 --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_events_statements_current.result @@ -0,0 +1,73 @@ +select * from performance_schema.events_statements_current +where event_name like 'statement/%' limit 1; +select * from performance_schema.events_statements_current +where event_name='FOO'; +insert into performance_schema.events_statements_current +set thread_id='1', event_id=1, +event_name='FOO', timer_start=1, timer_end=2, timer_wait=3; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_current` +update performance_schema.events_statements_current +set timer_start=12; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_current` +update performance_schema.events_statements_current +set timer_start=12 where thread_id=0; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_current` +delete from performance_schema.events_statements_current +where thread_id=1; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_current` +delete from performance_schema.events_statements_current; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_current` +LOCK TABLES performance_schema.events_statements_current READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_current` +UNLOCK TABLES; +LOCK TABLES performance_schema.events_statements_current WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_current` +UNLOCK TABLES; +# +# MDEV-25325 column_comment for performance_schema tables +# +select column_name, column_comment +from information_schema.columns +where table_schema='performance_schema' and table_name='events_statements_current'; +column_name column_comment +THREAD_ID Thread associated with the event. Together with EVENT_ID uniquely identifies the row. +EVENT_ID Thread's current event number at the start of the event. Together with THREAD_ID uniquely identifies the row. +END_EVENT_ID NULL when the event starts, set to the thread's current event number at the end of the event. +EVENT_NAME Event instrument name and a NAME from the setup_instruments table +SOURCE Name and line number of the source file containing the instrumented code that produced the event. +TIMER_START Value in picoseconds when the event timing started or NULL if timing is not collected. +TIMER_END Value in picoseconds when the event timing ended, or NULL if the event has not ended or timing is not collected. +TIMER_WAIT Value in picoseconds of the event's duration or NULL if the event has not ended or timing is not collected. +LOCK_TIME Time in picoseconds spent waiting for locks. The time is calculated in microseconds but stored in picoseconds for compatibility with other timings. +SQL_TEXT The SQL statement, or NULL if the command is not associated with an SQL statement. +DIGEST Statement digest. +DIGEST_TEXT Statement digest text. +CURRENT_SCHEMA Statement's default database for the statement, or NULL if there was none. +OBJECT_TYPE NULL for top level statements. The parent statement object type for nested statements (stored programs). +OBJECT_SCHEMA NULL for top level statements. The parent statement object schema for nested statements (stored programs). +OBJECT_NAME NULL for top level statements. The parent statement object name for nested statements (stored programs). +OBJECT_INSTANCE_BEGIN Address in memory of the statement object. +MYSQL_ERRNO Error code. See MariaDB Error Codes for a full list. +RETURNED_SQLSTATE The SQLSTATE value. +MESSAGE_TEXT Statement error message. See MariaDB Error Codes. +ERRORS 0 if SQLSTATE signifies completion (starting with 00) or warning (01), otherwise 1. +WARNINGS Number of warnings from the diagnostics area. +ROWS_AFFECTED Number of rows affected the statement affected. +ROWS_SENT Number of rows returned. +ROWS_EXAMINED Number of rows read during the statement's execution. +CREATED_TMP_DISK_TABLES Number of on-disk temp tables created by the statement. +CREATED_TMP_TABLES Number of temp tables created by the statement. +SELECT_FULL_JOIN Number of joins performed by the statement which did not use an index. +SELECT_FULL_RANGE_JOIN Number of joins performed by the statement which used a range search of the first table. +SELECT_RANGE Number of joins performed by the statement which used a range of the first table. +SELECT_RANGE_CHECK Number of joins without keys performed by the statement that check for key usage after each row. +SELECT_SCAN Number of joins performed by the statement which used a full scan of the first table. +SORT_MERGE_PASSES Number of merge passes by the sort algorithm performed by the statement. If too high, you may need to increase the sort_buffer_size. +SORT_RANGE Number of sorts performed by the statement which used a range. +SORT_ROWS Number of rows sorted by the statement. +SORT_SCAN Number of sorts performed by the statement which used a full table scan. +NO_INDEX_USED 0 if the statement performed a table scan with an index, 1 if without an index. +NO_GOOD_INDEX_USED 0 if a good index was found for the statement, 1 if no good index was found. See the Range checked for each record description in the EXPLAIN article. +NESTING_EVENT_ID NULL for top level statements. The parent statement event id for nested statements (stored programs). +NESTING_EVENT_TYPE NULL for top level statements. The parent statement event type for nested statements (stored programs). +NESTING_EVENT_LEVEL 0 for top level statements. The parent statement level plus 1 for nested statements (stored programs). diff --git a/mysql-test/suite/perfschema/r/dml_events_statements_history.result b/mysql-test/suite/perfschema/r/dml_events_statements_history.result new file mode 100644 index 00000000..88a3f7df --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_events_statements_history.result @@ -0,0 +1,77 @@ +select * from performance_schema.events_statements_history +where event_name like 'statement/%' limit 1; +select * from performance_schema.events_statements_history +where event_name='FOO'; +select * from performance_schema.events_statements_history +where event_name like 'statement/%' order by timer_wait limit 1; +select * from performance_schema.events_statements_history +where event_name like 'statement/%' order by timer_wait desc limit 1; +insert into performance_schema.events_statements_history +set thread_id='1', event_id=1, +event_name='FOO', timer_start=1, timer_end=2, timer_wait=3; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_history` +update performance_schema.events_statements_history +set timer_start=12; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_history` +update performance_schema.events_statements_history +set timer_start=12 where thread_id=0; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_history` +delete from performance_schema.events_statements_history +where thread_id=1; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_history` +delete from performance_schema.events_statements_history; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_history` +LOCK TABLES performance_schema.events_statements_history READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_history` +UNLOCK TABLES; +LOCK TABLES performance_schema.events_statements_history WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_history` +UNLOCK TABLES; +# +# MDEV-25325 column_comment for performance_schema tables +# +select column_name, column_comment +from information_schema.columns +where table_schema='performance_schema' and table_name='events_statements_history'; +column_name column_comment +THREAD_ID Thread associated with the event. Together with EVENT_ID uniquely identifies the row. +EVENT_ID Thread's current event number at the start of the event. Together with THREAD_ID uniquely identifies the row. +END_EVENT_ID NULL when the event starts, set to the thread's current event number at the end of the event. +EVENT_NAME Event instrument name and a NAME from the setup_instruments table +SOURCE Name and line number of the source file containing the instrumented code that produced the event. +TIMER_START Value in picoseconds when the event timing started or NULL if timing is not collected. +TIMER_END Value in picoseconds when the event timing ended, or NULL if the event has not ended or timing is not collected. +TIMER_WAIT Value in picoseconds of the event's duration or NULL if the event has not ended or timing is not collected. +LOCK_TIME Time in picoseconds spent waiting for locks. The time is calculated in microseconds but stored in picoseconds for compatibility with other timings. +SQL_TEXT The SQL statement, or NULL if the command is not associated with an SQL statement. +DIGEST Statement digest. +DIGEST_TEXT Statement digest text. +CURRENT_SCHEMA Statement's default database for the statement, or NULL if there was none. +OBJECT_TYPE NULL for top level statements. The parent statement object type for nested statements (stored programs). +OBJECT_SCHEMA NULL for top level statements. The parent statement object schema for nested statements (stored programs). +OBJECT_NAME NULL for top level statements. The parent statement object name for nested statements (stored programs). +OBJECT_INSTANCE_BEGIN Address in memory of the statement object. +MYSQL_ERRNO Error code. See MariaDB Error Codes for a full list. +RETURNED_SQLSTATE The SQLSTATE value. +MESSAGE_TEXT Statement error message. See MariaDB Error Codes. +ERRORS 0 if SQLSTATE signifies completion (starting with 00) or warning (01), otherwise 1. +WARNINGS Number of warnings from the diagnostics area. +ROWS_AFFECTED Number of rows affected the statement affected. +ROWS_SENT Number of rows returned. +ROWS_EXAMINED Number of rows read during the statement's execution. +CREATED_TMP_DISK_TABLES Number of on-disk temp tables created by the statement. +CREATED_TMP_TABLES Number of temp tables created by the statement. +SELECT_FULL_JOIN Number of joins performed by the statement which did not use an index. +SELECT_FULL_RANGE_JOIN Number of joins performed by the statement which used a range search of the first table. +SELECT_RANGE Number of joins performed by the statement which used a range of the first table. +SELECT_RANGE_CHECK Number of joins without keys performed by the statement that check for key usage after each row. +SELECT_SCAN Number of joins performed by the statement which used a full scan of the first table. +SORT_MERGE_PASSES Number of merge passes by the sort algorithm performed by the statement. If too high, you may need to increase the sort_buffer_size. +SORT_RANGE Number of sorts performed by the statement which used a range. +SORT_ROWS Number of rows sorted by the statement. +SORT_SCAN Number of sorts performed by the statement which used a full table scan. +NO_INDEX_USED 0 if the statement performed a table scan with an index, 1 if without an index. +NO_GOOD_INDEX_USED 0 if a good index was found for the statement, 1 if no good index was found. See the Range checked for each record description in the EXPLAIN article. +NESTING_EVENT_ID NULL for top level statements. The parent statement event id for nested statements (stored programs). +NESTING_EVENT_TYPE NULL for top level statements. The parent statement event type for nested statements (stored programs). +NESTING_EVENT_LEVEL 0 for top level statements. The parent statement level plus 1 for nested statements (stored programs). diff --git a/mysql-test/suite/perfschema/r/dml_events_statements_history_long.result b/mysql-test/suite/perfschema/r/dml_events_statements_history_long.result new file mode 100644 index 00000000..36b00606 --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_events_statements_history_long.result @@ -0,0 +1,77 @@ +select * from performance_schema.events_statements_history_long +where event_name like 'statement/%' limit 1; +select * from performance_schema.events_statements_history_long +where event_name='FOO'; +select * from performance_schema.events_statements_history_long +where event_name like 'statement/%' order by timer_wait limit 1; +select * from performance_schema.events_statements_history_long +where event_name like 'statement/%' order by timer_wait desc limit 1; +insert into performance_schema.events_statements_history_long +set thread_id='1', event_id=1, +event_name='FOO', timer_start=1, timer_end=2, timer_wait=3; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_history_long` +update performance_schema.events_statements_history_long +set timer_start=12; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_history_long` +update performance_schema.events_statements_history_long +set timer_start=12 where thread_id=0; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_history_long` +delete from performance_schema.events_statements_history_long +where thread_id=1; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_history_long` +delete from performance_schema.events_statements_history_long; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_history_long` +LOCK TABLES performance_schema.events_statements_history_long READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_history_long` +UNLOCK TABLES; +LOCK TABLES performance_schema.events_statements_history_long WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_statements_history_long` +UNLOCK TABLES; +# +# MDEV-25325 column_comment for performance_schema tables +# +select column_name, column_comment +from information_schema.columns +where table_schema='performance_schema' and table_name='events_statements_history_long'; +column_name column_comment +THREAD_ID Thread associated with the event. Together with EVENT_ID uniquely identifies the row. +EVENT_ID Thread's current event number at the start of the event. Together with THREAD_ID uniquely identifies the row. +END_EVENT_ID NULL when the event starts, set to the thread's current event number at the end of the event. +EVENT_NAME Event instrument name and a NAME from the setup_instruments table +SOURCE Name and line number of the source file containing the instrumented code that produced the event. +TIMER_START Value in picoseconds when the event timing started or NULL if timing is not collected. +TIMER_END Value in picoseconds when the event timing ended, or NULL if the event has not ended or timing is not collected. +TIMER_WAIT Value in picoseconds of the event's duration or NULL if the event has not ended or timing is not collected. +LOCK_TIME Time in picoseconds spent waiting for locks. The time is calculated in microseconds but stored in picoseconds for compatibility with other timings. +SQL_TEXT The SQL statement, or NULL if the command is not associated with an SQL statement. +DIGEST Statement digest. +DIGEST_TEXT Statement digest text. +CURRENT_SCHEMA Statement's default database for the statement, or NULL if there was none. +OBJECT_TYPE NULL for top level statements. The parent statement object type for nested statements (stored programs). +OBJECT_SCHEMA NULL for top level statements. The parent statement object schema for nested statements (stored programs). +OBJECT_NAME NULL for top level statements. The parent statement object name for nested statements (stored programs). +OBJECT_INSTANCE_BEGIN Address in memory of the statement object. +MYSQL_ERRNO Error code. See MariaDB Error Codes for a full list. +RETURNED_SQLSTATE The SQLSTATE value. +MESSAGE_TEXT Statement error message. See MariaDB Error Codes. +ERRORS 0 if SQLSTATE signifies completion (starting with 00) or warning (01), otherwise 1. +WARNINGS Number of warnings from the diagnostics area. +ROWS_AFFECTED Number of rows affected the statement affected. +ROWS_SENT Number of rows returned. +ROWS_EXAMINED Number of rows read during the statement's execution. +CREATED_TMP_DISK_TABLES Number of on-disk temp tables created by the statement. +CREATED_TMP_TABLES Number of temp tables created by the statement. +SELECT_FULL_JOIN Number of joins performed by the statement which did not use an index. +SELECT_FULL_RANGE_JOIN Number of joins performed by the statement which used a range search of the first table. +SELECT_RANGE Number of joins performed by the statement which used a range of the first table. +SELECT_RANGE_CHECK Number of joins without keys performed by the statement that check for key usage after each row. +SELECT_SCAN Number of joins performed by the statement which used a full scan of the first table. +SORT_MERGE_PASSES Number of merge passes by the sort algorithm performed by the statement. If too high, you may need to increase the sort_buffer_size. +SORT_RANGE Number of sorts performed by the statement which used a range. +SORT_ROWS Number of rows sorted by the statement. +SORT_SCAN Number of sorts performed by the statement which used a full table scan. +NO_INDEX_USED 0 if the statement performed a table scan with an index, 1 if without an index. +NO_GOOD_INDEX_USED 0 if a good index was found for the statement, 1 if no good index was found. See the Range checked for each record description in the EXPLAIN article. +NESTING_EVENT_ID NULL for top level statements. The parent statement event id for nested statements (stored programs). +NESTING_EVENT_TYPE NULL for top level statements. The parent statement event type for nested statements (stored programs). +NESTING_EVENT_LEVEL 0 for top level statements. The parent statement level plus 1 for nested statements (stored programs). diff --git a/mysql-test/suite/perfschema/r/dml_events_transactions_current.result b/mysql-test/suite/perfschema/r/dml_events_transactions_current.result new file mode 100644 index 00000000..d34b2291 --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_events_transactions_current.result @@ -0,0 +1,25 @@ +select * from performance_schema.events_transactions_current +where event_name in ('transaction') limit 1; +select * from performance_schema.events_transactions_current +where event_name='FOO'; +insert into performance_schema.events_transactions_current +set thread_id='1', event_id=1, +event_name='FOO', timer_start=1, timer_end=2, timer_wait=3; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`events_transactions_current` +update performance_schema.events_transactions_current +set timer_start=12; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_transactions_current` +update performance_schema.events_transactions_current +set timer_start=12 where thread_id=0; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_transactions_current` +delete from performance_schema.events_transactions_current +where thread_id=1; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_transactions_current` +delete from performance_schema.events_transactions_current; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_transactions_current` +LOCK TABLES performance_schema.events_transactions_current READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_transactions_current` +UNLOCK TABLES; +LOCK TABLES performance_schema.events_transactions_current WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_transactions_current` +UNLOCK TABLES; diff --git a/mysql-test/suite/perfschema/r/dml_events_transactions_history.result b/mysql-test/suite/perfschema/r/dml_events_transactions_history.result new file mode 100644 index 00000000..875f49e7 --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_events_transactions_history.result @@ -0,0 +1,29 @@ +select * from performance_schema.events_transactions_history +where event_name in ('transaction') limit 1; +select * from performance_schema.events_transactions_history +where event_name='FOO'; +select * from performance_schema.events_transactions_history +where event_name in ('transaction') order by timer_wait limit 1; +select * from performance_schema.events_transactions_history +where event_name in ('transaction') order by timer_wait desc limit 1; +insert into performance_schema.events_transactions_history +set thread_id='1', event_id=1, +event_name='FOO', timer_start=1, timer_end=2, timer_wait=3; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`events_transactions_history` +update performance_schema.events_transactions_history +set timer_start=12; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_transactions_history` +update performance_schema.events_transactions_history +set timer_start=12 where thread_id=0; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_transactions_history` +delete from performance_schema.events_transactions_history +where thread_id=1; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_transactions_history` +delete from performance_schema.events_transactions_history; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_transactions_history` +LOCK TABLES performance_schema.events_transactions_history READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_transactions_history` +UNLOCK TABLES; +LOCK TABLES performance_schema.events_transactions_history WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_transactions_history` +UNLOCK TABLES; diff --git a/mysql-test/suite/perfschema/r/dml_events_transactions_history_long.result b/mysql-test/suite/perfschema/r/dml_events_transactions_history_long.result new file mode 100644 index 00000000..6f11d9a4 --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_events_transactions_history_long.result @@ -0,0 +1,29 @@ +select * from performance_schema.events_transactions_history_long +where event_name in ('transaction') limit 1; +select * from performance_schema.events_transactions_history_long +where event_name='FOO'; +select * from performance_schema.events_transactions_history_long +where event_name in ('transaction') order by timer_wait limit 1; +select * from performance_schema.events_transactions_history_long +where event_name in ('transaction') order by timer_wait desc limit 1; +insert into performance_schema.events_transactions_history_long +set thread_id='1', event_id=1, +event_name='FOO', timer_start=1, timer_end=2, timer_wait=3; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`events_transactions_history_long` +update performance_schema.events_transactions_history_long +set timer_start=12; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_transactions_history_long` +update performance_schema.events_transactions_history_long +set timer_start=12 where thread_id=0; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_transactions_history_long` +delete from performance_schema.events_transactions_history_long +where thread_id=1; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_transactions_history_long` +delete from performance_schema.events_transactions_history_long; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_transactions_history_long` +LOCK TABLES performance_schema.events_transactions_history_long READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_transactions_history_long` +UNLOCK TABLES; +LOCK TABLES performance_schema.events_transactions_history_long WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_transactions_history_long` +UNLOCK TABLES; diff --git a/mysql-test/suite/perfschema/r/dml_events_waits_current.result b/mysql-test/suite/perfschema/r/dml_events_waits_current.result new file mode 100644 index 00000000..cb84d5e3 --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_events_waits_current.result @@ -0,0 +1,51 @@ +select * from performance_schema.events_waits_current +where event_name like 'Wait/Synch/%' limit 1; +select * from performance_schema.events_waits_current +where event_name='FOO'; +insert into performance_schema.events_waits_current +set thread_id='1', event_id=1, +event_name='FOO', timer_start=1, timer_end=2, timer_wait=3; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_current` +update performance_schema.events_waits_current +set timer_start=12; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_current` +update performance_schema.events_waits_current +set timer_start=12 where thread_id=0; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_current` +delete from performance_schema.events_waits_current +where thread_id=1; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_current` +delete from performance_schema.events_waits_current; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_current` +LOCK TABLES performance_schema.events_waits_current READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_current` +UNLOCK TABLES; +LOCK TABLES performance_schema.events_waits_current WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_current` +UNLOCK TABLES; +# +# MDEV-25325 column_comment for performance_schema tables +# +select column_name, column_comment +from information_schema.columns +where table_schema='performance_schema' and table_name='events_waits_current'; +column_name column_comment +THREAD_ID Thread associated with the event. Together with EVENT_ID uniquely identifies the row. +EVENT_ID Thread's current event number at the start of the event. Together with THREAD_ID uniquely identifies the row. +END_EVENT_ID NULL when the event starts, set to the thread's current event number at the end of the event. +EVENT_NAME Event instrument name and a NAME from the setup_instruments table +SOURCE Name and line number of the source file containing the instrumented code that produced the event. +TIMER_START Value in picoseconds when the event timing started or NULL if timing is not collected. +TIMER_END Value in picoseconds when the event timing ended, or NULL if the event has not ended or timing is not collected. +TIMER_WAIT Value in picoseconds of the event's duration or NULL if the event has not ended or timing is not collected. +SPINS Number of spin rounds for a mutex, or NULL if spin rounds are not used, or spinning is not instrumented. +OBJECT_SCHEMA Name of the schema that contains the table for table I/O objects, otherwise NULL for file I/O and synchronization objects. +OBJECT_NAME File name for file I/O objects, table name for table I/O objects, the socket's IP:PORT value for a socket object or NULL for a synchronization object. +INDEX_NAME Name of the index, PRIMARY for the primary key, or NULL for no index used. +OBJECT_TYPE FILE for a file object, TABLE or TEMPORARY TABLE for a table object, or NULL for a synchronization object. +OBJECT_INSTANCE_BEGIN Address in memory of the object. +NESTING_EVENT_ID EVENT_ID of event within which this event nests. +NESTING_EVENT_TYPE Nesting event type. Either statement, stage or wait. +OPERATION Operation type, for example read, write or lock +NUMBER_OF_BYTES Number of bytes that the operation read or wrote, or NULL for table I/O waits. +FLAGS Reserved for use in the future. diff --git a/mysql-test/suite/perfschema/r/dml_events_waits_history.result b/mysql-test/suite/perfschema/r/dml_events_waits_history.result new file mode 100644 index 00000000..bdc853ef --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_events_waits_history.result @@ -0,0 +1,55 @@ +select * from performance_schema.events_waits_history +where event_name like 'Wait/Synch/%' limit 1; +select * from performance_schema.events_waits_history +where event_name='FOO'; +select * from performance_schema.events_waits_history +where event_name like 'Wait/Synch/%' order by timer_wait limit 1; +select * from performance_schema.events_waits_history +where event_name like 'Wait/Synch/%' order by timer_wait desc limit 1; +insert into performance_schema.events_waits_history +set thread_id='1', event_id=1, +event_name='FOO', timer_start=1, timer_end=2, timer_wait=3; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_history` +update performance_schema.events_waits_history +set timer_start=12; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_history` +update performance_schema.events_waits_history +set timer_start=12 where thread_id=0; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_history` +delete from performance_schema.events_waits_history +where thread_id=1; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_history` +delete from performance_schema.events_waits_history; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_history` +LOCK TABLES performance_schema.events_waits_history READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_history` +UNLOCK TABLES; +LOCK TABLES performance_schema.events_waits_history WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_history` +UNLOCK TABLES; +# +# MDEV-25325 column_comment for performance_schema tables +# +select column_name, column_comment +from information_schema.columns +where table_schema='performance_schema' and table_name='events_waits_history'; +column_name column_comment +THREAD_ID Thread associated with the event. Together with EVENT_ID uniquely identifies the row. +EVENT_ID Thread's current event number at the start of the event. Together with THREAD_ID uniquely identifies the row. +END_EVENT_ID NULL when the event starts, set to the thread's current event number at the end of the event. +EVENT_NAME Event instrument name and a NAME from the setup_instruments table +SOURCE Name and line number of the source file containing the instrumented code that produced the event. +TIMER_START Value in picoseconds when the event timing started or NULL if timing is not collected. +TIMER_END Value in picoseconds when the event timing ended, or NULL if the event has not ended or timing is not collected. +TIMER_WAIT Value in picoseconds of the event's duration or NULL if the event has not ended or timing is not collected. +SPINS Number of spin rounds for a mutex, or NULL if spin rounds are not used, or spinning is not instrumented. +OBJECT_SCHEMA Name of the schema that contains the table for table I/O objects, otherwise NULL for file I/O and synchronization objects. +OBJECT_NAME File name for file I/O objects, table name for table I/O objects, the socket's IP:PORT value for a socket object or NULL for a synchronization object. +INDEX_NAME Name of the index, PRIMARY for the primary key, or NULL for no index used. +OBJECT_TYPE FILE for a file object, TABLE or TEMPORARY TABLE for a table object, or NULL for a synchronization object. +OBJECT_INSTANCE_BEGIN Address in memory of the object. +NESTING_EVENT_ID EVENT_ID of event within which this event nests. +NESTING_EVENT_TYPE Nesting event type. Either statement, stage or wait. +OPERATION Operation type, for example read, write or lock +NUMBER_OF_BYTES Number of bytes that the operation read or wrote, or NULL for table I/O waits. +FLAGS Reserved for use in the future. diff --git a/mysql-test/suite/perfschema/r/dml_events_waits_history_long.result b/mysql-test/suite/perfschema/r/dml_events_waits_history_long.result new file mode 100644 index 00000000..b7f4e356 --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_events_waits_history_long.result @@ -0,0 +1,55 @@ +select * from performance_schema.events_waits_history_long +where event_name like 'Wait/Synch/%' limit 1; +select * from performance_schema.events_waits_history_long +where event_name='FOO'; +select * from performance_schema.events_waits_history_long +where event_name like 'Wait/Synch/%' order by timer_wait limit 1; +select * from performance_schema.events_waits_history_long +where event_name like 'Wait/Synch/%' order by timer_wait desc limit 1; +insert into performance_schema.events_waits_history_long +set thread_id='1', event_id=1, +event_name='FOO', timer_start=1, timer_end=2, timer_wait=3; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_history_long` +update performance_schema.events_waits_history_long +set timer_start=12; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_history_long` +update performance_schema.events_waits_history_long +set timer_start=12 where thread_id=0; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_history_long` +delete from performance_schema.events_waits_history_long +where thread_id=1; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_history_long` +delete from performance_schema.events_waits_history_long; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_history_long` +LOCK TABLES performance_schema.events_waits_history_long READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_history_long` +UNLOCK TABLES; +LOCK TABLES performance_schema.events_waits_history_long WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_history_long` +UNLOCK TABLES; +# +# MDEV-25325 column_comment for performance_schema tables +# +select column_name, column_comment +from information_schema.columns +where table_schema='performance_schema' and table_name='events_waits_history_long'; +column_name column_comment +THREAD_ID Thread associated with the event. Together with EVENT_ID uniquely identifies the row. +EVENT_ID Thread's current event number at the start of the event. Together with THREAD_ID uniquely identifies the row. +END_EVENT_ID NULL when the event starts, set to the thread's current event number at the end of the event. +EVENT_NAME Event instrument name and a NAME from the setup_instruments table +SOURCE Name and line number of the source file containing the instrumented code that produced the event. +TIMER_START Value in picoseconds when the event timing started or NULL if timing is not collected. +TIMER_END Value in picoseconds when the event timing ended, or NULL if the event has not ended or timing is not collected. +TIMER_WAIT Value in picoseconds of the event's duration or NULL if the event has not ended or timing is not collected. +SPINS Number of spin rounds for a mutex, or NULL if spin rounds are not used, or spinning is not instrumented. +OBJECT_SCHEMA Name of the schema that contains the table for table I/O objects, otherwise NULL for file I/O and synchronization objects. +OBJECT_NAME File name for file I/O objects, table name for table I/O objects, the socket's IP:PORT value for a socket object or NULL for a synchronization object. +INDEX_NAME Name of the index, PRIMARY for the primary key, or NULL for no index used. +OBJECT_TYPE FILE for a file object, TABLE or TEMPORARY TABLE for a table object, or NULL for a synchronization object. +OBJECT_INSTANCE_BEGIN Address in memory of the object. +NESTING_EVENT_ID EVENT_ID of event within which this event nests. +NESTING_EVENT_TYPE Nesting event type. Either statement, stage or wait. +OPERATION Operation type, for example read, write or lock +NUMBER_OF_BYTES Number of bytes that the operation read or wrote, or NULL for table I/O waits. +FLAGS Reserved for use in the future. diff --git a/mysql-test/suite/perfschema/r/dml_ews_by_account_by_event_name.result b/mysql-test/suite/perfschema/r/dml_ews_by_account_by_event_name.result new file mode 100644 index 00000000..c9b89209 --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_ews_by_account_by_event_name.result @@ -0,0 +1,44 @@ +select * from performance_schema.events_waits_summary_by_account_by_event_name +where event_name like 'Wait/Synch/%' limit 1; +USER HOST EVENT_NAME COUNT_STAR SUM_TIMER_WAIT MIN_TIMER_WAIT AVG_TIMER_WAIT MAX_TIMER_WAIT +# # # # # # # # +select * from performance_schema.events_waits_summary_by_account_by_event_name +where event_name='FOO'; +USER HOST EVENT_NAME COUNT_STAR SUM_TIMER_WAIT MIN_TIMER_WAIT AVG_TIMER_WAIT MAX_TIMER_WAIT +insert into performance_schema.events_waits_summary_by_account_by_event_name +set event_name='FOO', user='BAR', host='BAZ', +count_star=1, sum_timer_wait=2, min_timer_wait=3, +avg_timer_wait=4, max_timer_wait=5; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_account_by_event_name` +update performance_schema.events_waits_summary_by_account_by_event_name +set count_star=12; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_account_by_event_name` +update performance_schema.events_waits_summary_by_account_by_event_name +set count_star=12 where event_name like "FOO"; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_account_by_event_name` +delete from performance_schema.events_waits_summary_by_account_by_event_name +where count_star=1; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_account_by_event_name` +delete from performance_schema.events_waits_summary_by_account_by_event_name; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_account_by_event_name` +LOCK TABLES performance_schema.events_waits_summary_by_account_by_event_name READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_account_by_event_name` +UNLOCK TABLES; +LOCK TABLES performance_schema.events_waits_summary_by_account_by_event_name WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_account_by_event_name` +UNLOCK TABLES; +# +# MDEV-25325 column_comment for performance_schema tables +# +select column_name, column_comment +from information_schema.columns +where table_schema='performance_schema' and table_name='events_waits_summary_by_account_by_event_name'; +column_name column_comment +USER User. Used together with HOST and EVENT_NAME for grouping events. +HOST Host. Used together with USER and EVENT_NAME for grouping events. +EVENT_NAME Event name. Used together with USER and HOST for grouping events. +COUNT_STAR Number of summarized events +SUM_TIMER_WAIT Total wait time of the summarized events that are timed. +MIN_TIMER_WAIT Minimum wait time of the summarized events that are timed. +AVG_TIMER_WAIT Average wait time of the summarized events that are timed. +MAX_TIMER_WAIT Maximum wait time of the summarized events that are timed. diff --git a/mysql-test/suite/perfschema/r/dml_ews_by_host_by_event_name.result b/mysql-test/suite/perfschema/r/dml_ews_by_host_by_event_name.result new file mode 100644 index 00000000..19ea3ae1 --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_ews_by_host_by_event_name.result @@ -0,0 +1,43 @@ +select * from performance_schema.events_waits_summary_by_host_by_event_name +where event_name like 'Wait/Synch/%' limit 1; +HOST EVENT_NAME COUNT_STAR SUM_TIMER_WAIT MIN_TIMER_WAIT AVG_TIMER_WAIT MAX_TIMER_WAIT +# # # # # # # +select * from performance_schema.events_waits_summary_by_host_by_event_name +where event_name='FOO'; +HOST EVENT_NAME COUNT_STAR SUM_TIMER_WAIT MIN_TIMER_WAIT AVG_TIMER_WAIT MAX_TIMER_WAIT +insert into performance_schema.events_waits_summary_by_host_by_event_name +set event_name='FOO', thread_id=1, +count_star=1, sum_timer_wait=2, min_timer_wait=3, +avg_timer_wait=4, max_timer_wait=5; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_host_by_event_name` +update performance_schema.events_waits_summary_by_host_by_event_name +set count_star=12; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_host_by_event_name` +update performance_schema.events_waits_summary_by_host_by_event_name +set count_star=12 where event_name like "FOO"; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_host_by_event_name` +delete from performance_schema.events_waits_summary_by_host_by_event_name +where count_star=1; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_host_by_event_name` +delete from performance_schema.events_waits_summary_by_host_by_event_name; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_host_by_event_name` +LOCK TABLES performance_schema.events_waits_summary_by_host_by_event_name READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_host_by_event_name` +UNLOCK TABLES; +LOCK TABLES performance_schema.events_waits_summary_by_host_by_event_name WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_host_by_event_name` +UNLOCK TABLES; +# +# MDEV-25325 column_comment for performance_schema tables +# +select column_name, column_comment +from information_schema.columns +where table_schema='performance_schema' and table_name='events_waits_summary_by_host_by_event_name'; +column_name column_comment +HOST Host. Used together with EVENT_NAME for grouping events. +EVENT_NAME Event name. Used together with USER and HOST for grouping events. +COUNT_STAR Number of summarized events +SUM_TIMER_WAIT Total wait time of the summarized events that are timed. +MIN_TIMER_WAIT Minimum wait time of the summarized events that are timed. +AVG_TIMER_WAIT Average wait time of the summarized events that are timed. +MAX_TIMER_WAIT Maximum wait time of the summarized events that are timed. diff --git a/mysql-test/suite/perfschema/r/dml_ews_by_instance.result b/mysql-test/suite/perfschema/r/dml_ews_by_instance.result new file mode 100644 index 00000000..f203178e --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_ews_by_instance.result @@ -0,0 +1,48 @@ +select * from performance_schema.events_waits_summary_by_instance +where event_name like 'Wait/Synch/%' limit 1; +select * from performance_schema.events_waits_summary_by_instance +where event_name='FOO'; +select * from performance_schema.events_waits_summary_by_instance +order by count_star limit 1; +select * from performance_schema.events_waits_summary_by_instance +order by count_star desc limit 1; +select * from performance_schema.events_waits_summary_by_instance +where min_timer_wait > 0 order by count_star limit 1; +select * from performance_schema.events_waits_summary_by_instance +where min_timer_wait > 0 order by count_star desc limit 1; +insert into performance_schema.events_waits_summary_by_instance +set event_name='FOO', object_instance_begin=0, +count_star=1, sum_timer_wait=2, min_timer_wait=3, +avg_timer_wait=4, max_timer_wait=5; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_instance` +update performance_schema.events_waits_summary_by_instance +set count_star=12; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_instance` +update performance_schema.events_waits_summary_by_instance +set count_star=12 where event_name like "FOO"; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_instance` +delete from performance_schema.events_waits_summary_by_instance +where count_star=1; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_instance` +delete from performance_schema.events_waits_summary_by_instance; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_instance` +LOCK TABLES performance_schema.events_waits_summary_by_instance READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_instance` +UNLOCK TABLES; +LOCK TABLES performance_schema.events_waits_summary_by_instance WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_instance` +UNLOCK TABLES; +# +# MDEV-25325 column_comment for performance_schema tables +# +select column_name, column_comment +from information_schema.columns +where table_schema='performance_schema' and table_name='events_waits_summary_by_instance'; +column_name column_comment +EVENT_NAME Event name. Used together with OBJECT_INSTANCE_BEGIN for grouping events. +OBJECT_INSTANCE_BEGIN If an instrument creates multiple instances, each instance has a unique OBJECT_INSTANCE_BEGIN value to allow for grouping by instance. +COUNT_STAR Number of summarized events +SUM_TIMER_WAIT Total wait time of the summarized events that are timed. +MIN_TIMER_WAIT Minimum wait time of the summarized events that are timed. +AVG_TIMER_WAIT Average wait time of the summarized events that are timed. +MAX_TIMER_WAIT Maximum wait time of the summarized events that are timed. diff --git a/mysql-test/suite/perfschema/r/dml_ews_by_thread_by_event_name.result b/mysql-test/suite/perfschema/r/dml_ews_by_thread_by_event_name.result new file mode 100644 index 00000000..58489052 --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_ews_by_thread_by_event_name.result @@ -0,0 +1,40 @@ +select * from performance_schema.events_waits_summary_by_thread_by_event_name +where event_name like 'Wait/Synch/%' limit 1; +select * from performance_schema.events_waits_summary_by_thread_by_event_name +where event_name='FOO'; +insert into performance_schema.events_waits_summary_by_thread_by_event_name +set event_name='FOO', thread_id=1, +count_star=1, sum_timer_wait=2, min_timer_wait=3, +avg_timer_wait=4, max_timer_wait=5; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_thread_by_event_name` +update performance_schema.events_waits_summary_by_thread_by_event_name +set count_star=12; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_thread_by_event_name` +update performance_schema.events_waits_summary_by_thread_by_event_name +set count_star=12 where event_name like "FOO"; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_thread_by_event_name` +delete from performance_schema.events_waits_summary_by_thread_by_event_name +where count_star=1; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_thread_by_event_name` +delete from performance_schema.events_waits_summary_by_thread_by_event_name; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_thread_by_event_name` +LOCK TABLES performance_schema.events_waits_summary_by_thread_by_event_name READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_thread_by_event_name` +UNLOCK TABLES; +LOCK TABLES performance_schema.events_waits_summary_by_thread_by_event_name WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_thread_by_event_name` +UNLOCK TABLES; +# +# MDEV-25325 column_comment for performance_schema tables +# +select column_name, column_comment +from information_schema.columns +where table_schema='performance_schema' and table_name='events_waits_summary_by_thread_by_event_name'; +column_name column_comment +THREAD_ID Thread associated with the event. Together with EVENT_NAME uniquely identifies the row. +EVENT_NAME Event name. Used together with THREAD_ID for grouping events. +COUNT_STAR Number of summarized events +SUM_TIMER_WAIT Total wait time of the summarized events that are timed. +MIN_TIMER_WAIT Minimum wait time of the summarized events that are timed. +AVG_TIMER_WAIT Average wait time of the summarized events that are timed. +MAX_TIMER_WAIT Maximum wait time of the summarized events that are timed. diff --git a/mysql-test/suite/perfschema/r/dml_ews_by_user_by_event_name.result b/mysql-test/suite/perfschema/r/dml_ews_by_user_by_event_name.result new file mode 100644 index 00000000..e48492b3 --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_ews_by_user_by_event_name.result @@ -0,0 +1,43 @@ +select * from performance_schema.events_waits_summary_by_user_by_event_name +where event_name like 'Wait/Synch/%' limit 1; +USER EVENT_NAME COUNT_STAR SUM_TIMER_WAIT MIN_TIMER_WAIT AVG_TIMER_WAIT MAX_TIMER_WAIT +# # # # # # # +select * from performance_schema.events_waits_summary_by_user_by_event_name +where event_name='FOO'; +USER EVENT_NAME COUNT_STAR SUM_TIMER_WAIT MIN_TIMER_WAIT AVG_TIMER_WAIT MAX_TIMER_WAIT +insert into performance_schema.events_waits_summary_by_user_by_event_name +set event_name='FOO', user='BAR', +count_star=1, sum_timer_wait=2, min_timer_wait=3, +avg_timer_wait=4, max_timer_wait=5; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_user_by_event_name` +update performance_schema.events_waits_summary_by_user_by_event_name +set count_star=12; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_user_by_event_name` +update performance_schema.events_waits_summary_by_user_by_event_name +set count_star=12 where event_name like "FOO"; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_user_by_event_name` +delete from performance_schema.events_waits_summary_by_user_by_event_name +where count_star=1; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_user_by_event_name` +delete from performance_schema.events_waits_summary_by_user_by_event_name; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_user_by_event_name` +LOCK TABLES performance_schema.events_waits_summary_by_user_by_event_name READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_user_by_event_name` +UNLOCK TABLES; +LOCK TABLES performance_schema.events_waits_summary_by_user_by_event_name WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_by_user_by_event_name` +UNLOCK TABLES; +# +# MDEV-25325 column_comment for performance_schema tables +# +select column_name, column_comment +from information_schema.columns +where table_schema='performance_schema' and table_name='events_waits_summary_by_user_by_event_name'; +column_name column_comment +USER User. Used together with EVENT_NAME for grouping events. +EVENT_NAME Event name. Used together with USER for grouping events. +COUNT_STAR Number of summarized events +SUM_TIMER_WAIT Total wait time of the summarized events that are timed. +MIN_TIMER_WAIT Minimum wait time of the summarized events that are timed. +AVG_TIMER_WAIT Average wait time of the summarized events that are timed. +MAX_TIMER_WAIT Maximum wait time of the summarized events that are timed. diff --git a/mysql-test/suite/perfschema/r/dml_ews_global_by_event_name.result b/mysql-test/suite/perfschema/r/dml_ews_global_by_event_name.result new file mode 100644 index 00000000..eecb441f --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_ews_global_by_event_name.result @@ -0,0 +1,38 @@ +select * from performance_schema.events_waits_summary_global_by_event_name +where event_name like 'Wait/Synch/%' limit 1; +select * from performance_schema.events_waits_summary_global_by_event_name +where event_name='FOO'; +insert into performance_schema.events_waits_summary_global_by_event_name +set event_name='FOO', count_star=1, sum_timer_wait=2, min_timer_wait=3, +avg_timer_wait=4, max_timer_wait=5; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_global_by_event_name` +update performance_schema.events_waits_summary_global_by_event_name +set count_star=12; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_global_by_event_name` +update performance_schema.events_waits_summary_global_by_event_name +set count_star=12 where event_name like "FOO"; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_global_by_event_name` +delete from performance_schema.events_waits_summary_global_by_event_name +where count_star=1; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_global_by_event_name` +delete from performance_schema.events_waits_summary_global_by_event_name; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_global_by_event_name` +LOCK TABLES performance_schema.events_waits_summary_global_by_event_name READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_global_by_event_name` +UNLOCK TABLES; +LOCK TABLES performance_schema.events_waits_summary_global_by_event_name WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_summary_global_by_event_name` +UNLOCK TABLES; +# +# MDEV-25325 column_comment for performance_schema tables +# +select column_name, column_comment +from information_schema.columns +where table_schema='performance_schema' and table_name='events_waits_summary_global_by_event_name'; +column_name column_comment +EVENT_NAME Event name. +COUNT_STAR Number of summarized events +SUM_TIMER_WAIT Total wait time of the summarized events that are timed. +MIN_TIMER_WAIT Minimum wait time of the summarized events that are timed. +AVG_TIMER_WAIT Average wait time of the summarized events that are timed. +MAX_TIMER_WAIT Maximum wait time of the summarized events that are timed. diff --git a/mysql-test/suite/perfschema/r/dml_file_instances.result b/mysql-test/suite/perfschema/r/dml_file_instances.result new file mode 100644 index 00000000..75c6ad85 --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_file_instances.result @@ -0,0 +1,99 @@ +select * from performance_schema.file_instances limit 1; +select * from performance_schema.file_instances +where file_name='FOO'; +insert into performance_schema.file_instances +set file_name='FOO', event_name='BAR', open_count=12; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`file_instances` +update performance_schema.file_instances +set file_name='FOO'; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`file_instances` +delete from performance_schema.file_instances +where event_name like "wait/%"; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`file_instances` +delete from performance_schema.file_instances; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`file_instances` +LOCK TABLES performance_schema.file_instances READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`file_instances` +UNLOCK TABLES; +LOCK TABLES performance_schema.file_instances WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`file_instances` +UNLOCK TABLES; +# +# MDEV-25325 column_comment for performance_schema tables +# +select column_name, column_comment +from information_schema.columns +where table_schema='performance_schema' and table_name='file_instances'; +column_name column_comment +FILE_NAME File name. +EVENT_NAME Instrument name associated with the file. +OPEN_COUNT Open handles on the file. A value of greater than zero means that the file is currently open. +### +### Bug#26152751: INNODB LEAKS MEMORY, PERFORMANCE_SCHEMA FILE_INSTANCES +### #SQL-IB3129987-252773.IBD +### +CREATE DATABASE db_26152751; +USE db_26152751; +SELECT FILE_NAME FROM performance_schema.file_instances WHERE FILE_NAME LIKE "%t_db_26152751%" ORDER BY FILE_NAME; +FILE_NAME +CREATE TABLE t_db_26152751 (a INT) ENGINE=MYISAM; +SELECT FILE_NAME FROM performance_schema.file_instances WHERE FILE_NAME LIKE "%t_db_26152751%" ORDER BY FILE_NAME; +FILE_NAME +t_db_26152751.MYD +t_db_26152751.MYI +t_db_26152751.frm +RENAME TABLE t_db_26152751 to t_db_26152751_new; +SELECT FILE_NAME FROM performance_schema.file_instances WHERE FILE_NAME LIKE "%t_db_26152751%" ORDER BY FILE_NAME; +FILE_NAME +t_db_26152751_new.MYD +t_db_26152751_new.MYI +t_db_26152751_new.frm +RENAME TABLE t_db_26152751_new to t_db_26152751; +SELECT FILE_NAME FROM performance_schema.file_instances WHERE FILE_NAME LIKE "%t_db_26152751%" ORDER BY FILE_NAME; +FILE_NAME +t_db_26152751.MYD +t_db_26152751.MYI +t_db_26152751.frm +ALTER TABLE t_db_26152751 ADD COLUMN b INT; +SELECT FILE_NAME FROM performance_schema.file_instances WHERE FILE_NAME LIKE "%t_db_26152751%" ORDER BY FILE_NAME; +FILE_NAME +t_db_26152751.frm +t_db_26152751.MYD +t_db_26152751.MYI +DROP TABLE t_db_26152751; +SELECT FILE_NAME FROM performance_schema.file_instances WHERE FILE_NAME LIKE "%t_db_26152751%" ORDER BY FILE_NAME; +FILE_NAME +CREATE TABLE t_db_26152751 (a INT) ENGINE=INNODB; +SELECT FILE_NAME FROM performance_schema.file_instances WHERE FILE_NAME LIKE "%t_db_26152751%" ORDER BY FILE_NAME; +FILE_NAME +t_db_26152751.frm +t_db_26152751.ibd +RENAME TABLE t_db_26152751 to t_db_26152751_new; +SELECT FILE_NAME FROM performance_schema.file_instances WHERE FILE_NAME LIKE "%t_db_26152751%" ORDER BY FILE_NAME; +FILE_NAME +t_db_26152751_new.frm +t_db_26152751_new.ibd +RENAME TABLE t_db_26152751_new to t_db_26152751; +SELECT FILE_NAME FROM performance_schema.file_instances WHERE FILE_NAME LIKE "%t_db_26152751%" ORDER BY FILE_NAME; +FILE_NAME +t_db_26152751.frm +t_db_26152751.ibd +ALTER TABLE t_db_26152751 ADD COLUMN b INT; +SELECT FILE_NAME FROM performance_schema.file_instances WHERE FILE_NAME LIKE "%t_db_26152751%" ORDER BY FILE_NAME; +FILE_NAME +t_db_26152751.frm +t_db_26152751.ibd +DROP TABLE t_db_26152751; +SELECT FILE_NAME FROM performance_schema.file_instances WHERE FILE_NAME LIKE "%t_db_26152751%" ORDER BY FILE_NAME; +FILE_NAME +DROP DATABASE db_26152751; +# +# MDEV-25325 column_comment for performance_schema tables +# +select column_name, column_comment +from information_schema.columns +where table_schema='performance_schema' and table_name='file_instances'; +column_name column_comment +FILE_NAME File name. +EVENT_NAME Instrument name associated with the file. +OPEN_COUNT Open handles on the file. A value of greater than zero means that the file is currently open. diff --git a/mysql-test/suite/perfschema/r/dml_fs_by_event_name.result b/mysql-test/suite/perfschema/r/dml_fs_by_event_name.result new file mode 100644 index 00000000..4ab3e642 --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_fs_by_event_name.result @@ -0,0 +1,55 @@ +select * from performance_schema.file_summary_by_event_name +where event_name like 'Wait/io/%' limit 1; +select * from performance_schema.file_summary_by_event_name +where event_name='FOO'; +insert into performance_schema.file_summary_by_event_name +set event_name='FOO', count_read=1, count_write=2, +sum_number_of_bytes_read=4, sum_number_of_bytes_write=5; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`file_summary_by_event_name` +update performance_schema.file_summary_by_event_name +set count_read=12; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`file_summary_by_event_name` +update performance_schema.file_summary_by_event_name +set count_write=12 where event_name like "FOO"; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`file_summary_by_event_name` +delete from performance_schema.file_summary_by_event_name +where count_read=1; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`file_summary_by_event_name` +delete from performance_schema.file_summary_by_event_name; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`file_summary_by_event_name` +LOCK TABLES performance_schema.file_summary_by_event_name READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`file_summary_by_event_name` +UNLOCK TABLES; +LOCK TABLES performance_schema.file_summary_by_event_name WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`file_summary_by_event_name` +UNLOCK TABLES; +# +# MDEV-25325 column_comment for performance_schema tables +# +select column_name, column_comment +from information_schema.columns +where table_schema='performance_schema' and table_name='file_summary_by_event_name'; +column_name column_comment +EVENT_NAME Event name. +COUNT_STAR Number of summarized events +SUM_TIMER_WAIT Total wait time of the summarized events that are timed. +MIN_TIMER_WAIT Minimum wait time of the summarized events that are timed. +AVG_TIMER_WAIT Average wait time of the summarized events that are timed. +MAX_TIMER_WAIT Maximum wait time of the summarized events that are timed. +COUNT_READ Number of all read operations, including FGETS, FGETC, FREAD, and READ. +SUM_TIMER_READ Total wait time of all read operations that are timed. +MIN_TIMER_READ Minimum wait time of all read operations that are timed. +AVG_TIMER_READ Average wait time of all read operations that are timed. +MAX_TIMER_READ Maximum wait time of all read operations that are timed. +SUM_NUMBER_OF_BYTES_READ Bytes read by read operations. +COUNT_WRITE Number of all write operations, including FPUTS, FPUTC, FPRINTF, VFPRINTF, FWRITE, and PWRITE. +SUM_TIMER_WRITE Total wait time of all write operations that are timed. +MIN_TIMER_WRITE Minimum wait time of all write operations that are timed. +AVG_TIMER_WRITE Average wait time of all write operations that are timed. +MAX_TIMER_WRITE Maximum wait time of all write operations that are timed. +SUM_NUMBER_OF_BYTES_WRITE Bytes written by write operations. +COUNT_MISC Number of all miscellaneous operations not counted above, including CREATE, DELETE, OPEN, CLOSE, STREAM_OPEN, STREAM_CLOSE, SEEK, TELL, FLUSH, STAT, FSTAT, CHSIZE, RENAME, and SYNC. +SUM_TIMER_MISC Total wait time of all miscellaneous operations that are timed. +MIN_TIMER_MISC Minimum wait time of all miscellaneous operations that are timed. +AVG_TIMER_MISC Average wait time of all miscellaneous operations that are timed. +MAX_TIMER_MISC Maximum wait time of all miscellaneous operations that are timed. diff --git a/mysql-test/suite/perfschema/r/dml_fs_by_instance.result b/mysql-test/suite/perfschema/r/dml_fs_by_instance.result new file mode 100644 index 00000000..0c0d5a6c --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_fs_by_instance.result @@ -0,0 +1,57 @@ +select * from performance_schema.file_summary_by_instance +where event_name like 'Wait/io/%' limit 1; +select * from performance_schema.file_summary_by_instance +where event_name='FOO'; +insert into performance_schema.file_summary_by_instance +set event_name='FOO', count_read=1, count_write=2, +sum_number_of_bytes_read=4, sum_number_of_bytes_write=5; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`file_summary_by_instance` +update performance_schema.file_summary_by_instance +set count_read=12; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`file_summary_by_instance` +update performance_schema.file_summary_by_instance +set count_write=12 where event_name like "FOO"; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`file_summary_by_instance` +delete from performance_schema.file_summary_by_instance +where count_read=1; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`file_summary_by_instance` +delete from performance_schema.file_summary_by_instance; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`file_summary_by_instance` +LOCK TABLES performance_schema.file_summary_by_instance READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`file_summary_by_instance` +UNLOCK TABLES; +LOCK TABLES performance_schema.file_summary_by_instance WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`file_summary_by_instance` +UNLOCK TABLES; +# +# MDEV-25325 column_comment for performance_schema tables +# +select column_name, column_comment +from information_schema.columns +where table_schema='performance_schema' and table_name='file_summary_by_instance'; +column_name column_comment +FILE_NAME File name. +EVENT_NAME Event name. +OBJECT_INSTANCE_BEGIN Address in memory. Together with FILE_NAME and EVENT_NAME uniquely identifies a row. +COUNT_STAR Number of summarized events +SUM_TIMER_WAIT Total wait time of the summarized events that are timed. +MIN_TIMER_WAIT Minimum wait time of the summarized events that are timed. +AVG_TIMER_WAIT Average wait time of the summarized events that are timed. +MAX_TIMER_WAIT Maximum wait time of the summarized events that are timed. +COUNT_READ Number of all read operations, including FGETS, FGETC, FREAD, and READ. +SUM_TIMER_READ Total wait time of all read operations that are timed. +MIN_TIMER_READ Minimum wait time of all read operations that are timed. +AVG_TIMER_READ Average wait time of all read operations that are timed. +MAX_TIMER_READ Maximum wait time of all read operations that are timed. +SUM_NUMBER_OF_BYTES_READ Bytes read by read operations. +COUNT_WRITE Number of all write operations, including FPUTS, FPUTC, FPRINTF, VFPRINTF, FWRITE, and PWRITE. +SUM_TIMER_WRITE Total wait time of all write operations that are timed. +MIN_TIMER_WRITE Minimum wait time of all write operations that are timed. +AVG_TIMER_WRITE Average wait time of all write operations that are timed. +MAX_TIMER_WRITE Maximum wait time of all write operations that are timed. +SUM_NUMBER_OF_BYTES_WRITE Bytes written by write operations. +COUNT_MISC Number of all miscellaneous operations not counted above, including CREATE, DELETE, OPEN, CLOSE, STREAM_OPEN, STREAM_CLOSE, SEEK, TELL, FLUSH, STAT, FSTAT, CHSIZE, RENAME, and SYNC. +SUM_TIMER_MISC Total wait time of all miscellaneous operations that are timed. +MIN_TIMER_MISC Minimum wait time of all miscellaneous operations that are timed. +AVG_TIMER_MISC Average wait time of all miscellaneous operations that are timed. +MAX_TIMER_MISC Maximum wait time of all miscellaneous operations that are timed. diff --git a/mysql-test/suite/perfschema/r/dml_global_status.result b/mysql-test/suite/perfschema/r/dml_global_status.result new file mode 100644 index 00000000..27dd5859 --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_global_status.result @@ -0,0 +1,21 @@ +select * from performance_schema.global_status +where variable_name like 'bytes_%' limit 1; +select * from performance_schema.global_status +where variable_name='FOO'; +insert into performance_schema.global_status +set variable_name='FOO', variable_value='BAR'; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`global_status` +update performance_schema.global_status +set variable_name='FOO', variable_value='BAR'; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`global_status` +delete from performance_schema.global_status +where variable_name <> 'FOO'; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`global_status` +delete from performance_schema.global_status; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`global_status` +LOCK TABLES performance_schema.global_status READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`global_status` +UNLOCK TABLES; +LOCK TABLES performance_schema.global_status WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`global_status` +UNLOCK TABLES; diff --git a/mysql-test/suite/perfschema/r/dml_global_variables.result b/mysql-test/suite/perfschema/r/dml_global_variables.result new file mode 100644 index 00000000..08d15af3 --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_global_variables.result @@ -0,0 +1,21 @@ +select * from performance_schema.global_variables +where variable_name like 'autocommit%' limit 1; +select * from performance_schema.global_variables +where variable_name='FOO'; +insert into performance_schema.global_variables +set variable_name='FOO', variable_value='BAR'; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'global_variables' +update performance_schema.global_variables +set variable_name='FOO', variable_value='BAR'; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'global_variables' +delete from performance_schema.global_variables +where variable_name <> 'FOO'; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'global_variables' +delete from performance_schema.global_variables; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'global_variables' +LOCK TABLES performance_schema.global_variables READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'global_variables' +UNLOCK TABLES; +LOCK TABLES performance_schema.global_variables WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'global_variables' +UNLOCK TABLES; diff --git a/mysql-test/suite/perfschema/r/dml_handler.result b/mysql-test/suite/perfschema/r/dml_handler.result new file mode 100644 index 00000000..61bbba31 --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_handler.result @@ -0,0 +1,258 @@ +# +# Create a temporary table of performance schema table names +# +CREATE TEMPORARY TABLE table_list (id INT AUTO_INCREMENT, PRIMARY KEY (id)) AS +SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES +WHERE TABLE_SCHEMA='performance_schema' + ORDER BY TABLE_NAME; +SELECT COUNT(*) FROM table_list INTO @table_count; +Warnings: +Warning 1287 ' INTO FROM...' instead +# +# For each table in the performance schema, attempt HANDLER...OPEN, +# which should fail with an error 1031, ER_ILLEGAL_HA. +# +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=81; +HANDLER performance_schema.user_variables_by_thread OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`user_variables_by_thread` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=80; +HANDLER performance_schema.users OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`users` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=79; +HANDLER performance_schema.threads OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`threads` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=78; +HANDLER performance_schema.table_lock_waits_summary_by_table OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`table_lock_waits_summary_by_table` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=77; +HANDLER performance_schema.table_io_waits_summary_by_table OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`table_io_waits_summary_by_table` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=76; +HANDLER performance_schema.table_io_waits_summary_by_index_usage OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`table_io_waits_summary_by_index_usage` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=75; +HANDLER performance_schema.table_handles OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`table_handles` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=74; +HANDLER performance_schema.status_by_user OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`status_by_user` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=73; +HANDLER performance_schema.status_by_thread OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`status_by_thread` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=72; +HANDLER performance_schema.status_by_host OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`status_by_host` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=71; +HANDLER performance_schema.status_by_account OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`status_by_account` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=70; +HANDLER performance_schema.socket_summary_by_instance OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`socket_summary_by_instance` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=69; +HANDLER performance_schema.socket_summary_by_event_name OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`socket_summary_by_event_name` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=68; +HANDLER performance_schema.socket_instances OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`socket_instances` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=67; +HANDLER performance_schema.setup_timers OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`setup_timers` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=66; +HANDLER performance_schema.setup_objects OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`setup_objects` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=65; +HANDLER performance_schema.setup_instruments OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`setup_instruments` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=64; +HANDLER performance_schema.setup_consumers OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`setup_consumers` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=63; +HANDLER performance_schema.setup_actors OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`setup_actors` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=62; +HANDLER performance_schema.session_status OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`session_status` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=61; +HANDLER performance_schema.session_connect_attrs OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`session_connect_attrs` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=60; +HANDLER performance_schema.session_account_connect_attrs OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`session_account_connect_attrs` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=59; +HANDLER performance_schema.rwlock_instances OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`rwlock_instances` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=58; +HANDLER performance_schema.replication_connection_configuration OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`replication_connection_configuration` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=57; +HANDLER performance_schema.replication_applier_status_by_worker OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`replication_applier_status_by_worker` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=56; +HANDLER performance_schema.replication_applier_status_by_coordinator OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`replication_applier_status_by_coordinator` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=55; +HANDLER performance_schema.replication_applier_status OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`replication_applier_status` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=54; +HANDLER performance_schema.replication_applier_configuration OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`replication_applier_configuration` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=53; +HANDLER performance_schema.prepared_statements_instances OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`prepared_statements_instances` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=52; +HANDLER performance_schema.performance_timers OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`performance_timers` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=51; +HANDLER performance_schema.objects_summary_global_by_type OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`objects_summary_global_by_type` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=50; +HANDLER performance_schema.mutex_instances OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`mutex_instances` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=49; +HANDLER performance_schema.metadata_locks OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`metadata_locks` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=48; +HANDLER performance_schema.memory_summary_global_by_event_name OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`memory_summary_global_by_event_name` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=47; +HANDLER performance_schema.memory_summary_by_user_by_event_name OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`memory_summary_by_user_by_event_name` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=46; +HANDLER performance_schema.memory_summary_by_thread_by_event_name OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`memory_summary_by_thread_by_event_name` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=45; +HANDLER performance_schema.memory_summary_by_host_by_event_name OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`memory_summary_by_host_by_event_name` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=44; +HANDLER performance_schema.memory_summary_by_account_by_event_name OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`memory_summary_by_account_by_event_name` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=43; +HANDLER performance_schema.host_cache OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`host_cache` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=42; +HANDLER performance_schema.hosts OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`hosts` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=41; +HANDLER performance_schema.global_status OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`global_status` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=40; +HANDLER performance_schema.file_summary_by_instance OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`file_summary_by_instance` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=39; +HANDLER performance_schema.file_summary_by_event_name OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`file_summary_by_event_name` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=38; +HANDLER performance_schema.file_instances OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`file_instances` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=37; +HANDLER performance_schema.events_waits_summary_global_by_event_name OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`events_waits_summary_global_by_event_name` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=36; +HANDLER performance_schema.events_waits_summary_by_user_by_event_name OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`events_waits_summary_by_user_by_event_name` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=35; +HANDLER performance_schema.events_waits_summary_by_thread_by_event_name OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`events_waits_summary_by_thread_by_event_name` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=34; +HANDLER performance_schema.events_waits_summary_by_instance OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`events_waits_summary_by_instance` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=33; +HANDLER performance_schema.events_waits_summary_by_host_by_event_name OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`events_waits_summary_by_host_by_event_name` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=32; +HANDLER performance_schema.events_waits_summary_by_account_by_event_name OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`events_waits_summary_by_account_by_event_name` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=31; +HANDLER performance_schema.events_waits_history_long OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`events_waits_history_long` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=30; +HANDLER performance_schema.events_waits_history OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`events_waits_history` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=29; +HANDLER performance_schema.events_waits_current OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`events_waits_current` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=28; +HANDLER performance_schema.events_transactions_summary_global_by_event_name OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`events_transactions_summary_global_by_event_name` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=27; +HANDLER performance_schema.events_transactions_summary_by_user_by_event_name OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`events_transactions_summary_by_user_by_event_name` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=26; +HANDLER performance_schema.events_transactions_summary_by_thread_by_event_name OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`events_transactions_summary_by_thread_by_event_name` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=25; +HANDLER performance_schema.events_transactions_summary_by_host_by_event_name OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`events_transactions_summary_by_host_by_event_name` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=24; +HANDLER performance_schema.events_transactions_summary_by_account_by_event_name OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`events_transactions_summary_by_account_by_event_name` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=23; +HANDLER performance_schema.events_transactions_history_long OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`events_transactions_history_long` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=22; +HANDLER performance_schema.events_transactions_history OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`events_transactions_history` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=21; +HANDLER performance_schema.events_transactions_current OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`events_transactions_current` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=20; +HANDLER performance_schema.events_statements_summary_global_by_event_name OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`events_statements_summary_global_by_event_name` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=19; +HANDLER performance_schema.events_statements_summary_by_user_by_event_name OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`events_statements_summary_by_user_by_event_name` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=18; +HANDLER performance_schema.events_statements_summary_by_thread_by_event_name OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`events_statements_summary_by_thread_by_event_name` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=17; +HANDLER performance_schema.events_statements_summary_by_program OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`events_statements_summary_by_program` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=16; +HANDLER performance_schema.events_statements_summary_by_host_by_event_name OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`events_statements_summary_by_host_by_event_name` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=15; +HANDLER performance_schema.events_statements_summary_by_digest OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`events_statements_summary_by_digest` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=14; +HANDLER performance_schema.events_statements_summary_by_account_by_event_name OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`events_statements_summary_by_account_by_event_name` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=13; +HANDLER performance_schema.events_statements_history_long OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`events_statements_history_long` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=12; +HANDLER performance_schema.events_statements_history OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`events_statements_history` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=11; +HANDLER performance_schema.events_statements_current OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`events_statements_current` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=10; +HANDLER performance_schema.events_stages_summary_global_by_event_name OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`events_stages_summary_global_by_event_name` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=9; +HANDLER performance_schema.events_stages_summary_by_user_by_event_name OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`events_stages_summary_by_user_by_event_name` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=8; +HANDLER performance_schema.events_stages_summary_by_thread_by_event_name OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`events_stages_summary_by_thread_by_event_name` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=7; +HANDLER performance_schema.events_stages_summary_by_host_by_event_name OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`events_stages_summary_by_host_by_event_name` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=6; +HANDLER performance_schema.events_stages_summary_by_account_by_event_name OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`events_stages_summary_by_account_by_event_name` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=5; +HANDLER performance_schema.events_stages_history_long OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`events_stages_history_long` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=4; +HANDLER performance_schema.events_stages_history OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`events_stages_history` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=3; +HANDLER performance_schema.events_stages_current OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`events_stages_current` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=2; +HANDLER performance_schema.cond_instances OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`cond_instances` doesn't have this option +SELECT TABLE_NAME INTO @table_name FROM table_list WHERE id=1; +HANDLER performance_schema.accounts OPEN; +ERROR HY000: Storage engine PERFORMANCE_SCHEMA of the table `performance_schema`.`accounts` doesn't have this option +DROP TEMPORARY TABLE table_list; diff --git a/mysql-test/suite/perfschema/r/dml_host_cache.result b/mysql-test/suite/perfschema/r/dml_host_cache.result new file mode 100644 index 00000000..f9291e05 --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_host_cache.result @@ -0,0 +1,63 @@ +select * from performance_schema.host_cache +where IP like '%' limit 1; +select * from performance_schema.host_cache +where IP='localhost'; +insert into performance_schema.host_cache +set IP='FOO', SUM_BLOCKING_ERRORS=1, COUNT_FCRDNS_ERRORS=2; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`host_cache` +update performance_schema.host_cache +set COUNT_UNKNOWN_ERRORS=12; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`host_cache` +update performance_schema.host_cache +set SUM_BLOCKING_ERRORS=12 where IP='127.0.0.1'; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`host_cache` +select HOST from performance_schema.host_cache +where IP='::1'; +HOST +delete from performance_schema.host_cache +where IP='::1'; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`host_cache` +delete from performance_schema.host_cache; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`host_cache` +LOCK TABLES performance_schema.host_cache READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`host_cache` +UNLOCK TABLES; +LOCK TABLES performance_schema.host_cache WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`host_cache` +UNLOCK TABLES; +# +# MDEV-25325 column_comment for performance_schema tables +# +select column_name, column_comment +from information_schema.columns +where table_schema='performance_schema' and table_name='host_cache'; +column_name column_comment +IP Client IP address. +HOST IP's resolved DNS host name, or NULL if unknown. +HOST_VALIDATED YES if the IP-to-host DNS lookup was successful, and the HOST column can be used to avoid DNS calls, or NO if unsuccessful, in which case DNS lookup is performed for each connect until either successful or a permanent error. +SUM_CONNECT_ERRORS Number of connection errors. Counts only protocol handshake errors for hosts that passed validation. These errors count towards max_connect_errors. +COUNT_HOST_BLOCKED_ERRORS Number of blocked connections because SUM_CONNECT_ERRORS exceeded the max_connect_errors system variable. +COUNT_NAMEINFO_TRANSIENT_ERRORS Number of transient errors during IP-to-host DNS lookups. +COUNT_NAMEINFO_PERMANENT_ERRORS Number of permanent errors during IP-to-host DNS lookups. +COUNT_FORMAT_ERRORS Number of host name format errors, for example a numeric host column. +COUNT_ADDRINFO_TRANSIENT_ERRORS Number of transient errors during host-to-IP reverse DNS lookups. +COUNT_ADDRINFO_PERMANENT_ERRORS Number of permanent errors during host-to-IP reverse DNS lookups. +COUNT_FCRDNS_ERRORS Number of forward-confirmed reverse DNS errors, which occur when IP-to-host DNS lookup does not match the originating IP address. +COUNT_HOST_ACL_ERRORS Number of errors occurring because no user from the host is permitted to log in. These attempts return error code 1130 ER_HOST_NOT_PRIVILEGED and do not proceed to username and password authentication. +COUNT_NO_AUTH_PLUGIN_ERRORS Number of errors due to requesting an authentication plugin that was not available. This can be due to the plugin never having been loaded, or the load attempt failing. +COUNT_AUTH_PLUGIN_ERRORS Number of errors reported by an authentication plugin. Plugins can increment COUNT_AUTHENTICATION_ERRORS or COUNT_HANDSHAKE_ERRORS instead, but, if specified or the error is unknown, this column is incremented. +COUNT_HANDSHAKE_ERRORS Number of errors detected at the wire protocol level. +COUNT_PROXY_USER_ERRORS Number of errors detected when a proxy user is proxied to a user that does not exist. +COUNT_PROXY_USER_ACL_ERRORS Number of errors detected when a proxy user is proxied to a user that exists, but the proxy user doesn't have the PROXY privilege. +COUNT_AUTHENTICATION_ERRORS Number of errors where authentication failed. +COUNT_SSL_ERRORS Number of errors due to TLS problems. +COUNT_MAX_USER_CONNECTIONS_ERRORS Number of errors due to the per-user quota being exceeded. +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS Number of errors due to the per-hour quota being exceeded. +COUNT_DEFAULT_DATABASE_ERRORS Number of errors due to the user not having permission to access the specified default database, or it not existing. +COUNT_INIT_CONNECT_ERRORS Number of errors due to statements in the init_connect system variable. +COUNT_LOCAL_ERRORS Number of local server errors, such as out-of-memory errors, unrelated to network, authentication, or authorization. +COUNT_UNKNOWN_ERRORS Number of unknown errors that cannot be allocated to another column. +FIRST_SEEN Timestamp of the first connection attempt by the IP. +LAST_SEEN Timestamp of the most recent connection attempt by the IP. +FIRST_ERROR_SEEN Timestamp of the first error seen from the IP. +LAST_ERROR_SEEN Timestamp of the most recent error seen from the IP. diff --git a/mysql-test/suite/perfschema/r/dml_hosts.result b/mysql-test/suite/perfschema/r/dml_hosts.result new file mode 100644 index 00000000..af661363 --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_hosts.result @@ -0,0 +1,35 @@ +select * from performance_schema.hosts +limit 1; +select * from performance_schema.hosts +where host='FOO'; +insert into performance_schema.hosts +set host='FOO', +current_connections=1, total_connections=2; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`hosts` +update performance_schema.hosts +set current_connections=12; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`hosts` +update performance_schema.hosts +set current_connections=12 where host like "FOO"; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`hosts` +delete from performance_schema.hosts +where total_connections=1; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`hosts` +delete from performance_schema.hosts; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`hosts` +LOCK TABLES performance_schema.hosts READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`hosts` +UNLOCK TABLES; +LOCK TABLES performance_schema.hosts WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`hosts` +UNLOCK TABLES; +# +# MDEV-25325 column_comment for performance_schema tables +# +select column_name, column_comment +from information_schema.columns +where table_schema='performance_schema' and table_name='hosts'; +column_name column_comment +HOST Host name used by the client to connect, NULL for internal threads or user sessions that failed to authenticate. +CURRENT_CONNECTIONS Current number of the host's connections. +TOTAL_CONNECTIONS Total number of the host's connections diff --git a/mysql-test/suite/perfschema/r/dml_mems_by_account_by_event_name.result b/mysql-test/suite/perfschema/r/dml_mems_by_account_by_event_name.result new file mode 100644 index 00000000..b8f22f8c --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_mems_by_account_by_event_name.result @@ -0,0 +1,46 @@ +select * from performance_schema.memory_summary_by_account_by_event_name +where event_name like 'memory/%' limit 1; +select * from performance_schema.memory_summary_by_account_by_event_name +where event_name='FOO'; +insert into performance_schema.memory_summary_by_account_by_event_name +set event_name='FOO', user='BAR', host='BAZ', +count_alloc=1, count_free=2, sum_number_of_bytes_alloc=3, +sum_number_of_bytes_free=4, low_count_used=5; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`memory_summary_by_account_by_event_name` +update performance_schema.memory_summary_by_account_by_event_name +set count_alloc=12; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`memory_summary_by_account_by_event_name` +update performance_schema.memory_summary_by_account_by_event_name +set count_alloc=12 where event_name like "FOO"; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`memory_summary_by_account_by_event_name` +delete from performance_schema.memory_summary_by_account_by_event_name +where count_alloc=1; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`memory_summary_by_account_by_event_name` +delete from performance_schema.memory_summary_by_account_by_event_name; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`memory_summary_by_account_by_event_name` +LOCK TABLES performance_schema.memory_summary_by_account_by_event_name READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`memory_summary_by_account_by_event_name` +UNLOCK TABLES; +LOCK TABLES performance_schema.memory_summary_by_account_by_event_name WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`memory_summary_by_account_by_event_name` +UNLOCK TABLES; +# +# MDEV-25325 column_comment for performance_schema tables +# +select column_name, column_comment +from information_schema.columns +where table_schema='performance_schema' and table_name='memory_summary_by_account_by_event_name'; +column_name column_comment +USER User portion of the account. +HOST Host portion of the account. +EVENT_NAME Event name. +COUNT_ALLOC Total number of allocations to memory. +COUNT_FREE Total number of attempts to free the allocated memory. +SUM_NUMBER_OF_BYTES_ALLOC Total number of bytes allocated. +SUM_NUMBER_OF_BYTES_FREE Total number of bytes freed +LOW_COUNT_USED Lowest number of allocated blocks (lowest value of CURRENT_COUNT_USED). +CURRENT_COUNT_USED Currently allocated blocks that have not been freed (COUNT_ALLOC minus COUNT_FREE). +HIGH_COUNT_USED Highest number of allocated blocks (highest value of CURRENT_COUNT_USED). +LOW_NUMBER_OF_BYTES_USED Lowest number of bytes used. +CURRENT_NUMBER_OF_BYTES_USED Current number of bytes used (total allocated minus total freed). +HIGH_NUMBER_OF_BYTES_USED Highest number of bytes used. diff --git a/mysql-test/suite/perfschema/r/dml_mems_by_host_by_event_name.result b/mysql-test/suite/perfschema/r/dml_mems_by_host_by_event_name.result new file mode 100644 index 00000000..405317e9 --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_mems_by_host_by_event_name.result @@ -0,0 +1,45 @@ +select * from performance_schema.memory_summary_by_host_by_event_name +where event_name like 'memory/%' limit 1; +select * from performance_schema.memory_summary_by_host_by_event_name +where event_name='FOO'; +insert into performance_schema.memory_summary_by_host_by_event_name +set event_name='FOO', host='BAZ', +count_alloc=1, count_free=2, sum_number_of_bytes_alloc=3, +sum_number_of_bytes_free=4, low_count_used=5; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`memory_summary_by_host_by_event_name` +update performance_schema.memory_summary_by_host_by_event_name +set count_alloc=12; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`memory_summary_by_host_by_event_name` +update performance_schema.memory_summary_by_host_by_event_name +set count_alloc=12 where event_name like "FOO"; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`memory_summary_by_host_by_event_name` +delete from performance_schema.memory_summary_by_host_by_event_name +where count_alloc=1; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`memory_summary_by_host_by_event_name` +delete from performance_schema.memory_summary_by_host_by_event_name; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`memory_summary_by_host_by_event_name` +LOCK TABLES performance_schema.memory_summary_by_host_by_event_name READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`memory_summary_by_host_by_event_name` +UNLOCK TABLES; +LOCK TABLES performance_schema.memory_summary_by_host_by_event_name WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`memory_summary_by_host_by_event_name` +UNLOCK TABLES; +# +# MDEV-25325 column_comment for performance_schema tables +# +select column_name, column_comment +from information_schema.columns +where table_schema='performance_schema' and table_name='memory_summary_by_host_by_event_name'; +column_name column_comment +HOST Host portion of the account. +EVENT_NAME Event name. +COUNT_ALLOC Total number of allocations to memory. +COUNT_FREE Total number of attempts to free the allocated memory. +SUM_NUMBER_OF_BYTES_ALLOC Total number of bytes allocated. +SUM_NUMBER_OF_BYTES_FREE Total number of bytes freed +LOW_COUNT_USED Lowest number of allocated blocks (lowest value of CURRENT_COUNT_USED). +CURRENT_COUNT_USED Currently allocated blocks that have not been freed (COUNT_ALLOC minus COUNT_FREE). +HIGH_COUNT_USED Highest number of allocated blocks (highest value of CURRENT_COUNT_USED). +LOW_NUMBER_OF_BYTES_USED Lowest number of bytes used. +CURRENT_NUMBER_OF_BYTES_USED Current number of bytes used (total allocated minus total freed). +HIGH_NUMBER_OF_BYTES_USED Highest number of bytes used. diff --git a/mysql-test/suite/perfschema/r/dml_mems_by_thread_by_event_name.result b/mysql-test/suite/perfschema/r/dml_mems_by_thread_by_event_name.result new file mode 100644 index 00000000..3f9e1567 --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_mems_by_thread_by_event_name.result @@ -0,0 +1,26 @@ +select * from performance_schema.memory_summary_by_thread_by_event_name +where event_name like 'memory/%' limit 1; +select * from performance_schema.memory_summary_by_thread_by_event_name +where event_name='FOO'; +insert into performance_schema.memory_summary_by_thread_by_event_name +set event_name='FOO', thread_id=12, +count_alloc=1, count_free=2, sum_number_of_bytes_alloc=3, +sum_number_of_bytes_free=4, low_count_used=5; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`memory_summary_by_thread_by_event_name` +update performance_schema.memory_summary_by_thread_by_event_name +set count_alloc=12; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`memory_summary_by_thread_by_event_name` +update performance_schema.memory_summary_by_thread_by_event_name +set count_alloc=12 where event_name like "FOO"; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`memory_summary_by_thread_by_event_name` +delete from performance_schema.memory_summary_by_thread_by_event_name +where count_alloc=1; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`memory_summary_by_thread_by_event_name` +delete from performance_schema.memory_summary_by_thread_by_event_name; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`memory_summary_by_thread_by_event_name` +LOCK TABLES performance_schema.memory_summary_by_thread_by_event_name READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`memory_summary_by_thread_by_event_name` +UNLOCK TABLES; +LOCK TABLES performance_schema.memory_summary_by_thread_by_event_name WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`memory_summary_by_thread_by_event_name` +UNLOCK TABLES; diff --git a/mysql-test/suite/perfschema/r/dml_mems_by_user_by_event_name.result b/mysql-test/suite/perfschema/r/dml_mems_by_user_by_event_name.result new file mode 100644 index 00000000..6250fde2 --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_mems_by_user_by_event_name.result @@ -0,0 +1,45 @@ +select * from performance_schema.memory_summary_by_user_by_event_name +where event_name like 'memory/%' limit 1; +select * from performance_schema.memory_summary_by_user_by_event_name +where event_name='FOO'; +insert into performance_schema.memory_summary_by_user_by_event_name +set event_name='FOO', user='BAR', +count_alloc=1, count_free=2, sum_number_of_bytes_alloc=3, +sum_number_of_bytes_free=4, low_count_used=5; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`memory_summary_by_user_by_event_name` +update performance_schema.memory_summary_by_user_by_event_name +set count_alloc=12; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`memory_summary_by_user_by_event_name` +update performance_schema.memory_summary_by_user_by_event_name +set count_alloc=12 where event_name like "FOO"; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`memory_summary_by_user_by_event_name` +delete from performance_schema.memory_summary_by_user_by_event_name +where count_alloc=1; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`memory_summary_by_user_by_event_name` +delete from performance_schema.memory_summary_by_user_by_event_name; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`memory_summary_by_user_by_event_name` +LOCK TABLES performance_schema.memory_summary_by_user_by_event_name READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`memory_summary_by_user_by_event_name` +UNLOCK TABLES; +LOCK TABLES performance_schema.memory_summary_by_user_by_event_name WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`memory_summary_by_user_by_event_name` +UNLOCK TABLES; +# +# MDEV-25325 column_comment for performance_schema tables +# +select column_name, column_comment +from information_schema.columns +where table_schema='performance_schema' and table_name='memory_summary_by_user_by_event_name'; +column_name column_comment +USER User portion of the account. +EVENT_NAME Event name. +COUNT_ALLOC Total number of allocations to memory. +COUNT_FREE Total number of attempts to free the allocated memory. +SUM_NUMBER_OF_BYTES_ALLOC Total number of bytes allocated. +SUM_NUMBER_OF_BYTES_FREE Total number of bytes freed +LOW_COUNT_USED Lowest number of allocated blocks (lowest value of CURRENT_COUNT_USED). +CURRENT_COUNT_USED Currently allocated blocks that have not been freed (COUNT_ALLOC minus COUNT_FREE). +HIGH_COUNT_USED Highest number of allocated blocks (highest value of CURRENT_COUNT_USED). +LOW_NUMBER_OF_BYTES_USED Lowest number of bytes used. +CURRENT_NUMBER_OF_BYTES_USED Current number of bytes used (total allocated minus total freed). +HIGH_NUMBER_OF_BYTES_USED Highest number of bytes used. diff --git a/mysql-test/suite/perfschema/r/dml_mems_global_by_event_name.result b/mysql-test/suite/perfschema/r/dml_mems_global_by_event_name.result new file mode 100644 index 00000000..cb0aaee6 --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_mems_global_by_event_name.result @@ -0,0 +1,44 @@ +select * from performance_schema.memory_summary_global_by_event_name +where event_name like 'memory/%' limit 1; +select * from performance_schema.memory_summary_global_by_event_name +where event_name='FOO'; +insert into performance_schema.memory_summary_global_by_event_name +set event_name='FOO', +count_alloc=1, count_free=2, sum_number_of_bytes_alloc=3, +sum_number_of_bytes_free=4, low_count_used=5; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`memory_summary_global_by_event_name` +update performance_schema.memory_summary_global_by_event_name +set count_alloc=12; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`memory_summary_global_by_event_name` +update performance_schema.memory_summary_global_by_event_name +set count_alloc=12 where event_name like "FOO"; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`memory_summary_global_by_event_name` +delete from performance_schema.memory_summary_global_by_event_name +where count_alloc=1; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`memory_summary_global_by_event_name` +delete from performance_schema.memory_summary_global_by_event_name; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`memory_summary_global_by_event_name` +LOCK TABLES performance_schema.memory_summary_global_by_event_name READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`memory_summary_global_by_event_name` +UNLOCK TABLES; +LOCK TABLES performance_schema.memory_summary_global_by_event_name WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`memory_summary_global_by_event_name` +UNLOCK TABLES; +# +# MDEV-25325 column_comment for performance_schema tables +# +select column_name, column_comment +from information_schema.columns +where table_schema='performance_schema' and table_name='memory_summary_global_by_event_name'; +column_name column_comment +EVENT_NAME Event name. +COUNT_ALLOC Total number of allocations to memory. +COUNT_FREE Total number of attempts to free the allocated memory. +SUM_NUMBER_OF_BYTES_ALLOC Total number of bytes allocated. +SUM_NUMBER_OF_BYTES_FREE Total number of bytes freed +LOW_COUNT_USED Lowest number of allocated blocks (lowest value of CURRENT_COUNT_USED). +CURRENT_COUNT_USED Currently allocated blocks that have not been freed (COUNT_ALLOC minus COUNT_FREE). +HIGH_COUNT_USED Highest number of allocated blocks (highest value of CURRENT_COUNT_USED). +LOW_NUMBER_OF_BYTES_USED Lowest number of bytes used. +CURRENT_NUMBER_OF_BYTES_USED Current number of bytes used (total allocated minus total freed). +HIGH_NUMBER_OF_BYTES_USED Highest number of bytes used. diff --git a/mysql-test/suite/perfschema/r/dml_metadata_locks.result b/mysql-test/suite/perfschema/r/dml_metadata_locks.result new file mode 100644 index 00000000..cf87b6ef --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_metadata_locks.result @@ -0,0 +1,38 @@ +select * from performance_schema.metadata_locks; +select * from performance_schema.metadata_locks +where object_name='foo'; +OBJECT_TYPE OBJECT_SCHEMA OBJECT_NAME OBJECT_INSTANCE_BEGIN LOCK_TYPE LOCK_DURATION LOCK_STATUS SOURCE OWNER_THREAD_ID OWNER_EVENT_ID +insert into performance_schema.metadata_locks +set object_name='FOO', owner_thread_id=1; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`metadata_locks` +update performance_schema.metadata_locks +set owner_thread_id=12 where object_name='foo'; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`metadata_locks` +delete from performance_schema.metadata_locks; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`metadata_locks` +delete from performance_schema.metadata_locks +where timer_name='CYCLE'; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`metadata_locks` +LOCK TABLES performance_schema.metadata_locks READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`metadata_locks` +UNLOCK TABLES; +LOCK TABLES performance_schema.metadata_locks WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`metadata_locks` +UNLOCK TABLES; +# +# MDEV-25325 column_comment for performance_schema tables +# +select column_name, column_comment +from information_schema.columns +where table_schema='performance_schema' and table_name='metadata_locks'; +column_name column_comment +OBJECT_TYPE Object type. One of BACKUP, COMMIT, EVENT, FUNCTION, GLOBAL, LOCKING SERVICE, PROCEDURE, SCHEMA, TABLE, TABLESPACE, TRIGGER (unused) or USER LEVEL LOCK. +OBJECT_SCHEMA Object schema. +OBJECT_NAME Object name. +OBJECT_INSTANCE_BEGIN Address in memory of the instrumented object. +LOCK_TYPE Lock type. One of BACKUP_FTWRL1, BACKUP_START, BACKUP_TRANS_DML, EXCLUSIVE, INTENTION_EXCLUSIVE, SHARED, SHARED_HIGH_PRIO, SHARED_NO_READ_WRITE, SHARED_NO_WRITE, SHARED_READ, SHARED_UPGRADABLE or SHARED_WRITE. +LOCK_DURATION Lock duration. One of EXPLICIT (locks released by explicit action, for example a global lock acquired with FLUSH TABLES WITH READ LOCK) , STATEMENT (locks implicitly released at statement end) or TRANSACTION (locks implicitly released at transaction end). +LOCK_STATUS Lock status. One of GRANTED, KILLED, PENDING, POST_RELEASE_NOTIFY, PRE_ACQUIRE_NOTIFY, TIMEOUT or VICTIM. +SOURCE Source file containing the instrumented code that produced the event, as well as the line number where the instrumentation occurred. This allows one to examine the source code involved. +OWNER_THREAD_ID Thread that requested the lock. +OWNER_EVENT_ID Event that requested the lock. diff --git a/mysql-test/suite/perfschema/r/dml_mutex_instances.result b/mysql-test/suite/perfschema/r/dml_mutex_instances.result new file mode 100644 index 00000000..c2de16c8 --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_mutex_instances.result @@ -0,0 +1,30 @@ +select * from performance_schema.mutex_instances limit 1; +select * from performance_schema.mutex_instances +where name='FOO'; +insert into performance_schema.mutex_instances +set name='FOO', object_instance_begin=12; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`mutex_instances` +update performance_schema.mutex_instances +set name='FOO'; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`mutex_instances` +delete from performance_schema.mutex_instances +where name like "wait/%"; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`mutex_instances` +delete from performance_schema.mutex_instances; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`mutex_instances` +LOCK TABLES performance_schema.mutex_instances READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`mutex_instances` +UNLOCK TABLES; +LOCK TABLES performance_schema.mutex_instances WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`mutex_instances` +UNLOCK TABLES; +# +# MDEV-25325 column_comment for performance_schema tables +# +select column_name, column_comment +from information_schema.columns +where table_schema='performance_schema' and table_name='mutex_instances'; +column_name column_comment +NAME Instrument name associated with the mutex. +OBJECT_INSTANCE_BEGIN Memory address of the instrumented mutex. +LOCKED_BY_THREAD_ID The THREAD_ID of the locking thread if a thread has a mutex locked, otherwise NULL. diff --git a/mysql-test/suite/perfschema/r/dml_os_global_by_type.result b/mysql-test/suite/perfschema/r/dml_os_global_by_type.result new file mode 100644 index 00000000..eb8eeda6 --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_os_global_by_type.result @@ -0,0 +1,60 @@ +select * from performance_schema.objects_summary_global_by_type +where object_schema = 'performance_schema' limit 1; +OBJECT_TYPE OBJECT_SCHEMA OBJECT_NAME COUNT_STAR SUM_TIMER_WAIT MIN_TIMER_WAIT AVG_TIMER_WAIT MAX_TIMER_WAIT +# # # # # # # # +select * from performance_schema.objects_summary_global_by_type +where object_schema='FOO'; +OBJECT_TYPE OBJECT_SCHEMA OBJECT_NAME COUNT_STAR SUM_TIMER_WAIT MIN_TIMER_WAIT AVG_TIMER_WAIT MAX_TIMER_WAIT +select * from performance_schema.objects_summary_global_by_type +order by count_star limit 1; +OBJECT_TYPE OBJECT_SCHEMA OBJECT_NAME COUNT_STAR SUM_TIMER_WAIT MIN_TIMER_WAIT AVG_TIMER_WAIT MAX_TIMER_WAIT +# # # # # # # # +select * from performance_schema.objects_summary_global_by_type +order by count_star desc limit 1; +OBJECT_TYPE OBJECT_SCHEMA OBJECT_NAME COUNT_STAR SUM_TIMER_WAIT MIN_TIMER_WAIT AVG_TIMER_WAIT MAX_TIMER_WAIT +# # # # # # # # +select * from performance_schema.objects_summary_global_by_type +where object_type = 'TABLE' order by object_schema, object_name limit 1; +OBJECT_TYPE OBJECT_SCHEMA OBJECT_NAME COUNT_STAR SUM_TIMER_WAIT MIN_TIMER_WAIT AVG_TIMER_WAIT MAX_TIMER_WAIT +# # # # # # # # +select * from performance_schema.objects_summary_global_by_type +where object_type = 'TABLE' order by object_schema desc, object_name desc limit 1; +OBJECT_TYPE OBJECT_SCHEMA OBJECT_NAME COUNT_STAR SUM_TIMER_WAIT MIN_TIMER_WAIT AVG_TIMER_WAIT MAX_TIMER_WAIT +# # # # # # # # +insert into performance_schema.objects_summary_global_by_type +set object_type='TABLE', schema_name='FOO', object_name='BAR', +count_star=1, sum_timer_wait=2, min_timer_wait=3, +avg_timer_wait=4, max_timer_wait=5; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`objects_summary_global_by_type` +update performance_schema.objects_summary_global_by_type +set count_star=12; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`objects_summary_global_by_type` +update performance_schema.objects_summary_global_by_type +set count_star=12 where object_name like "FOO"; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`objects_summary_global_by_type` +delete from performance_schema.objects_summary_global_by_type +where count_star=1; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`objects_summary_global_by_type` +delete from performance_schema.objects_summary_global_by_type; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`objects_summary_global_by_type` +LOCK TABLES performance_schema.objects_summary_global_by_type READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`objects_summary_global_by_type` +UNLOCK TABLES; +LOCK TABLES performance_schema.objects_summary_global_by_type WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`objects_summary_global_by_type` +UNLOCK TABLES; +# +# MDEV-25325 column_comment for performance_schema tables +# +select column_name, column_comment +from information_schema.columns +where table_schema='performance_schema' and table_name='objects_summary_global_by_type'; +column_name column_comment +OBJECT_TYPE Groups records together with OBJECT_SCHEMA and OBJECT_NAME. +OBJECT_SCHEMA Groups records together with OBJECT_TYPE and OBJECT_NAME. +OBJECT_NAME Groups records together with OBJECT_SCHEMA and OBJECT_TYPE. +COUNT_STAR Number of summarized events +SUM_TIMER_WAIT Total wait time of the summarized events that are timed. +MIN_TIMER_WAIT Minimum wait time of the summarized events that are timed. +AVG_TIMER_WAIT Average wait time of the summarized events that are timed. +MAX_TIMER_WAIT Maximum wait time of the summarized events that are timed. diff --git a/mysql-test/suite/perfschema/r/dml_performance_timers.result b/mysql-test/suite/perfschema/r/dml_performance_timers.result new file mode 100644 index 00000000..c9978474 --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_performance_timers.result @@ -0,0 +1,40 @@ +select * from performance_schema.performance_timers; +TIMER_NAME TIMER_FREQUENCY TIMER_RESOLUTION TIMER_OVERHEAD +CYCLE +NANOSECOND +MICROSECOND +MILLISECOND +TICK +select * from performance_schema.performance_timers +where timer_name='CYCLE'; +TIMER_NAME TIMER_FREQUENCY TIMER_RESOLUTION TIMER_OVERHEAD +CYCLE +insert into performance_schema.performance_timers +set timer_name='FOO', timer_frequency=1, +timer_resolution=2, timer_overhead=3; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`performance_timers` +update performance_schema.performance_timers +set timer_frequency=12 where timer_name='CYCLE'; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`performance_timers` +delete from performance_schema.performance_timers; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`performance_timers` +delete from performance_schema.performance_timers +where timer_name='CYCLE'; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`performance_timers` +LOCK TABLES performance_schema.performance_timers READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`performance_timers` +UNLOCK TABLES; +LOCK TABLES performance_schema.performance_timers WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`performance_timers` +UNLOCK TABLES; +# +# MDEV-25325 column_comment for performance_schema tables +# +select column_name, column_comment +from information_schema.columns +where table_schema='performance_schema' and table_name='performance_timers'; +column_name column_comment +TIMER_NAME Time name, used in the setup_timers table. +TIMER_FREQUENCY Number of timer units per second. Dependent on the processor speed. +TIMER_RESOLUTION Number of timer units by which timed values increase each time. +TIMER_OVERHEAD Minimum timer overhead, determined during initialization by calling the timer 20 times and selecting the smallest value. Total overhead will be at least double this, as the timer is called at the beginning and end of each timed event. diff --git a/mysql-test/suite/perfschema/r/dml_prepared_statements_instances.result b/mysql-test/suite/perfschema/r/dml_prepared_statements_instances.result new file mode 100644 index 00000000..92be2205 --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_prepared_statements_instances.result @@ -0,0 +1,26 @@ +select * from performance_schema.prepared_statements_instances +where owner_object_name like 'XXYYZZ%' limit 1; +OBJECT_INSTANCE_BEGIN STATEMENT_ID STATEMENT_NAME SQL_TEXT OWNER_THREAD_ID OWNER_EVENT_ID OWNER_OBJECT_TYPE OWNER_OBJECT_SCHEMA OWNER_OBJECT_NAME TIMER_PREPARE COUNT_REPREPARE COUNT_EXECUTE SUM_TIMER_EXECUTE MIN_TIMER_EXECUTE AVG_TIMER_EXECUTE MAX_TIMER_EXECUTE SUM_LOCK_TIME SUM_ERRORS SUM_WARNINGS SUM_ROWS_AFFECTED SUM_ROWS_SENT SUM_ROWS_EXAMINED SUM_CREATED_TMP_DISK_TABLES SUM_CREATED_TMP_TABLES SUM_SELECT_FULL_JOIN SUM_SELECT_FULL_RANGE_JOIN SUM_SELECT_RANGE SUM_SELECT_RANGE_CHECK SUM_SELECT_SCAN SUM_SORT_MERGE_PASSES SUM_SORT_RANGE SUM_SORT_ROWS SUM_SORT_SCAN SUM_NO_INDEX_USED SUM_NO_GOOD_INDEX_USED +select * from performance_schema.prepared_statements_instances +where owner_object_name='XXYYZZ'; +OBJECT_INSTANCE_BEGIN STATEMENT_ID STATEMENT_NAME SQL_TEXT OWNER_THREAD_ID OWNER_EVENT_ID OWNER_OBJECT_TYPE OWNER_OBJECT_SCHEMA OWNER_OBJECT_NAME TIMER_PREPARE COUNT_REPREPARE COUNT_EXECUTE SUM_TIMER_EXECUTE MIN_TIMER_EXECUTE AVG_TIMER_EXECUTE MAX_TIMER_EXECUTE SUM_LOCK_TIME SUM_ERRORS SUM_WARNINGS SUM_ROWS_AFFECTED SUM_ROWS_SENT SUM_ROWS_EXAMINED SUM_CREATED_TMP_DISK_TABLES SUM_CREATED_TMP_TABLES SUM_SELECT_FULL_JOIN SUM_SELECT_FULL_RANGE_JOIN SUM_SELECT_RANGE SUM_SELECT_RANGE_CHECK SUM_SELECT_SCAN SUM_SORT_MERGE_PASSES SUM_SORT_RANGE SUM_SORT_ROWS SUM_SORT_SCAN SUM_NO_INDEX_USED SUM_NO_GOOD_INDEX_USED +insert into performance_schema.prepared_statements_instances +set owner_object_name='XXYYZZ', count_execute=1, sum_timer_execute=2, +min_timer_execute=3, avg_timer_execute=4, max_timer_execute=5; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`prepared_statements_instances` +update performance_schema.prepared_statements_instances set count_execute=12; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`prepared_statements_instances` +update performance_schema.prepared_statements_instances +set count_execute=12 where owner_object_name like "XXYYZZ"; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`prepared_statements_instances` +delete from performance_schema.prepared_statements_instances +where count_execute=1; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`prepared_statements_instances` +delete from performance_schema.prepared_statements_instances; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`prepared_statements_instances` +LOCK TABLES performance_schema.prepared_statements_instances READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`prepared_statements_instances` +UNLOCK TABLES; +LOCK TABLES performance_schema.prepared_statements_instances WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`prepared_statements_instances` +UNLOCK TABLES; diff --git a/mysql-test/suite/perfschema/r/dml_processlist.result b/mysql-test/suite/perfschema/r/dml_processlist.result new file mode 100644 index 00000000..f3627807 --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_processlist.result @@ -0,0 +1,24 @@ +select @@global.performance_schema_show_processlist into @save_processlist; +set @@global.performance_schema_show_processlist = 'on'; +select * from performance_schema.processlist +where user like 'event_scheduler'; +select * from performance_schema.processlist +where user = 'FOO'; +insert into performance_schema.processlist +values (12, 'foo', 'bar', 'test', null, 1000, 'state', 'info'); +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'processlist' +update performance_schema.processlist +set id=12, user='foo'; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'processlist' +delete from performance_schema.processlist +where id <> 99; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'processlist' +delete from performance_schema.processlist; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'processlist' +LOCK TABLES performance_schema.processlist READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'processlist' +UNLOCK TABLES; +LOCK TABLES performance_schema.processlist WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'processlist' +UNLOCK TABLES; +set @@global.performance_schema_show_processlist = @save_processlist; diff --git a/mysql-test/suite/perfschema/r/dml_replication_applier_configuration.result b/mysql-test/suite/perfschema/r/dml_replication_applier_configuration.result new file mode 100644 index 00000000..eee36e49 --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_replication_applier_configuration.result @@ -0,0 +1,21 @@ +SELECT * FROM performance_schema.replication_applier_configuration +LIMIT 1; +sELECT * FROM performance_schema.replication_applier_configuration +WHERE desired_delay=12; +INSERT INTO performance_schema.replication_applier_configuration +SET desired_delay=2; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`replication_applier_configuration` +UPDATE performance_schema.replication_applier_configuration +SET desired_delay=12 WHERE desired_delay=2; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`replication_applier_configuration` +DELETE FROM performance_schema.replication_applier_configuration +WHERE desired_delay=12; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`replication_applier_configuration` +DELETE FROM performance_schema.replication_applier_configuration; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`replication_applier_configuration` +LOCK TABLES performance_schema.replication_applier_configuration READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`replication_applier_configuration` +UNLOCK TABLES; +LOCK TABLES performance_schema.replication_applier_configuration WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`replication_applier_configuration` +UNLOCK TABLES; diff --git a/mysql-test/suite/perfschema/r/dml_replication_applier_status.result b/mysql-test/suite/perfschema/r/dml_replication_applier_status.result new file mode 100644 index 00000000..11f5d80f --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_replication_applier_status.result @@ -0,0 +1,24 @@ +SELECT * FROM performance_schema.replication_applier_status +LIMIT 1; +SELECT * FROM performance_schema.replication_applier_status +WHERE service_state='YES' OR remaining_delay=12; +INSERT INTO performance_schema.replication_applier_status +SET service_state='YES', remaining_delay=12; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`replication_applier_status` +UPDATE performance_schema.replication_applier_status +SET remaining_delay=12; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`replication_applier_status` +UPDATE performance_schema.replication_applier_status +SET remaining_delay=12 WHERE service_state='YES'; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`replication_applier_status` +DELETE FROM performance_schema.replication_applier_status +WHERE service_state='YES'; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`replication_applier_status` +DELETE FROM performance_schema.replication_applier_status; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`replication_applier_status` +LOCK TABLES performance_schema.replication_applier_status READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`replication_applier_status` +UNLOCK TABLES; +LOCK TABLES performance_schema.replication_applier_status WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`replication_applier_status` +UNLOCK TABLES; diff --git a/mysql-test/suite/perfschema/r/dml_replication_applier_status_by_coordinator.result b/mysql-test/suite/perfschema/r/dml_replication_applier_status_by_coordinator.result new file mode 100644 index 00000000..19dae11a --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_replication_applier_status_by_coordinator.result @@ -0,0 +1,25 @@ +SELECT * FROM performance_schema.replication_applier_status_by_coordinator +LIMIT 1; +SELECT * FROM performance_schema.replication_applier_status_by_coordinator +WHERE service_state='YES' or last_error_message='ERROR'; +INSERT INTO performance_schema.replication_applier_status_by_coordinator +SET service_state='YES', last_error_message='ERROR', thread_id=2, +last_error_number=1234; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`replication_applier_status_by_coordinator` +UPDATE performance_schema.replication_applier_status_by_coordinator +SET last_error_number=1234; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`replication_applier_status_by_coordinator` +UPDATE performance_schema.replication_applier_status_by_coordinator +SET last_error_number=1234 where service_state like "YES"; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`replication_applier_status_by_coordinator` +DELETE FROM performance_schema.replication_applier_status_by_coordinator +WHERE thread_id=1; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`replication_applier_status_by_coordinator` +DELETE FROM performance_schema.replication_applier_status_by_coordinator; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`replication_applier_status_by_coordinator` +LOCK TABLES performance_schema.replication_applier_status_by_coordinator READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`replication_applier_status_by_coordinator` +UNLOCK TABLES; +LOCK TABLES performance_schema.replication_applier_status_by_coordinator WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`replication_applier_status_by_coordinator` +UNLOCK TABLES; diff --git a/mysql-test/suite/perfschema/r/dml_replication_applier_status_by_worker.result b/mysql-test/suite/perfschema/r/dml_replication_applier_status_by_worker.result new file mode 100644 index 00000000..e61e5a2d --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_replication_applier_status_by_worker.result @@ -0,0 +1,41 @@ +SELECT * FROM performance_schema.replication_applier_status_by_worker +LIMIT 1; +SELECT * FROM performance_schema.replication_applier_status_by_worker +WHERE service_state='YES' OR last_error_message='ERROR'; +INSERT INTO performance_schema.replication_applier_status_by_worker +SET service_state='YES', last_error_message='ERROR', +worker_id=1, thread_id=2, last_error_number=1234; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`replication_applier_status_by_worker` +UPDATE performance_schema.replication_applier_status_by_worker +SET worker_id=12; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`replication_applier_status_by_worker` +UPDATE performance_schema.replication_applier_status_by_worker +SET worker_d=12 where service_state like "YES"; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`replication_applier_status_by_worker` +DELETE FROM performance_schema.replication_applier_status_by_worker +WHERE worker_id=1; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`replication_applier_status_by_worker` +DELETE FROM performance_schema.replication_applier_status_by_worker; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`replication_applier_status_by_worker` +LOCK TABLES performance_schema.replication_applier_status_by_worker READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`replication_applier_status_by_worker` +UNLOCK TABLES; +LOCK TABLES performance_schema.replication_applier_status_by_worker WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`replication_applier_status_by_worker` +UNLOCK TABLES; +# +# MDEV-25325 column_comment for performance_schema tables +# +select column_name, column_comment +from information_schema.columns +where table_schema='performance_schema' and table_name='replication_applier_status_by_worker'; +column_name column_comment +CHANNEL_NAME Name of replication channel through which the transaction is received. +THREAD_ID Thread_Id as displayed in the performance_schema.threads table for thread with name 'thread/sql/rpl_parallel_thread'. THREAD_ID will be NULL when worker threads are stopped due to error/force stop. +SERVICE_STATE Whether or not the thread is running. +LAST_SEEN_TRANSACTION Last GTID executed by worker +LAST_ERROR_NUMBER Last Error that occurred on a particular worker. +LAST_ERROR_MESSAGE Last error specific message. +LAST_ERROR_TIMESTAMP Time stamp of last error. +WORKER_IDLE_TIME Total idle time in seconds that the worker thread has spent waiting for work from SQL thread. +LAST_TRANS_RETRY_COUNT Total number of retries attempted by last transaction. diff --git a/mysql-test/suite/perfschema/r/dml_replication_connection_configuration.result b/mysql-test/suite/perfschema/r/dml_replication_connection_configuration.result new file mode 100644 index 00000000..a57b6901 --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_replication_connection_configuration.result @@ -0,0 +1,25 @@ +SELECT * FROM performance_schema.replication_connection_configuration +LIMIT 1; +SELECT * FROM performance_schema.replication_connection_configuration +WHERE user='FOO' or host='BAR'; +INSERT INTO performance_schema.replication_connection_configuration +SET user='FOO', host='BAR', +port=1, connection_retry_count=2; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`replication_connection_configuration` +UPDATE performance_schema.replication_connection_configuration +SET connection_retry_interval=12; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`replication_connection_configuration` +UPDATE performance_schema.replication_connection_configuration +SET connection_retry_interval=12 WHERE host LIKE "FOO"; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`replication_connection_configuration` +DELETE FROM performance_schema.replication_connection_configuration +WHERE connection_retry_count=1; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`replication_connection_configuration` +DELETE FROM performance_schema.replication_connection_configuration; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`replication_connection_configuration` +LOCK TABLES performance_schema.replication_connection_configuration READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`replication_connection_configuration` +UNLOCK TABLES; +LOCK TABLES performance_schema.replication_connection_configuration WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`replication_connection_configuration` +UNLOCK TABLES; diff --git a/mysql-test/suite/perfschema/r/dml_replication_connection_status.result b/mysql-test/suite/perfschema/r/dml_replication_connection_status.result new file mode 100644 index 00000000..981a064f --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_replication_connection_status.result @@ -0,0 +1,25 @@ +SELECT * FROM performance_schema.replication_connection_status +LIMIT 1; +SELECT * FROM performance_schema.replication_connection_status +WHERE received_transaction_set='FOO' OR last_error_message='BAR'; +INSERT INTO performance_schema.replication_connection_status +SET received_transaction_set='FOO', last_error_message='BAR', +thread_id=1, last_error_number=2; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'replication_connection_status' +UPDATE performance_schema.replication_connection_status +SET last_error_number=12; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'replication_connection_status' +UPDATE performance_schema.replication_connection_status +SET thread_id=12 WHERE received_transaction_set like "FOO"; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'replication_connection_status' +DELETE FROM performance_schema.replication_connection_status +WHERE last_error_number=1; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'replication_connection_status' +DELETE FROM performance_schema.replication_connection_status; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'replication_connection_status' +LOCK TABLES performance_schema.replication_connection_status READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'replication_connection_status' +UNLOCK TABLES; +LOCK TABLES performance_schema.replication_connection_status WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'replication_connection_status' +UNLOCK TABLES; diff --git a/mysql-test/suite/perfschema/r/dml_replication_group_member_stats.result b/mysql-test/suite/perfschema/r/dml_replication_group_member_stats.result new file mode 100644 index 00000000..f2d67f16 --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_replication_group_member_stats.result @@ -0,0 +1,26 @@ +SELECT * FROM performance_schema.replication_group_member_stats +LIMIT 1; +CHANNEL_NAME VIEW_ID MEMBER_ID COUNT_TRANSACTIONS_IN_QUEUE COUNT_TRANSACTIONS_CHECKED COUNT_CONFLICTS_DETECTED COUNT_TRANSACTIONS_ROWS_VALIDATING TRANSACTIONS_COMMITTED_ALL_MEMBERS LAST_CONFLICT_FREE_TRANSACTION +SELECT * FROM performance_schema.replication_group_member_stats +WHERE channel_name='FOO'; +CHANNEL_NAME VIEW_ID MEMBER_ID COUNT_TRANSACTIONS_IN_QUEUE COUNT_TRANSACTIONS_CHECKED COUNT_CONFLICTS_DETECTED COUNT_TRANSACTIONS_ROWS_VALIDATING TRANSACTIONS_COMMITTED_ALL_MEMBERS LAST_CONFLICT_FREE_TRANSACTION +INSERT INTO performance_schema.replication_group_member_stats +SET channel_name='FOO', node_id=1; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'replication_group_member_stats' +UPDATE performance_schema.replication_group_member_stats +SET member_id=12; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'replication_group_member_stats' +UPDATE performance_schema.replication_group_member_stats +SET member_id=12 WHERE group_name LIKE "FOO"; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'replication_group_member_stats' +DELETE FROM performance_schema.replication_group_member_stats +WHERE member_id=1; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'replication_group_member_stats' +DELETE FROM performance_schema.replication_group_member_stats; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'replication_group_member_stats' +LOCK TABLES performance_schema.replication_group_member_stats READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'replication_group_member_stats' +UNLOCK TABLES; +LOCK TABLES performance_schema.replication_group_member_stats WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'replication_group_member_stats' +UNLOCK TABLES; diff --git a/mysql-test/suite/perfschema/r/dml_replication_group_members.result b/mysql-test/suite/perfschema/r/dml_replication_group_members.result new file mode 100644 index 00000000..cdc211b9 --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_replication_group_members.result @@ -0,0 +1,24 @@ +SELECT * FROM performance_schema.replication_group_members +LIMIT 1; +SELECT * FROM performance_schema.replication_group_members +WHERE channel_name='FOO'; +INSERT INTO performance_schema.replication_group_members +SET channel_name='FOO', member_id=1; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'replication_group_members' +UPDATE performance_schema.replication_group_members +SET member_id=12; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'replication_group_members' +UPDATE performance_schema.replication_group_members +SET member_id=12 WHERE channel_name LIKE "FOO"; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'replication_group_members' +DELETE FROM performance_schema.replication_group_members +WHERE member_id=1; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'replication_group_members' +DELETE FROM performance_schema.replication_group_members; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'replication_group_members' +LOCK TABLES performance_schema.replication_group_members READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'replication_group_members' +UNLOCK TABLES; +LOCK TABLES performance_schema.replication_group_members WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'replication_group_members' +UNLOCK TABLES; diff --git a/mysql-test/suite/perfschema/r/dml_rwlock_instances.result b/mysql-test/suite/perfschema/r/dml_rwlock_instances.result new file mode 100644 index 00000000..0c1c211e --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_rwlock_instances.result @@ -0,0 +1,31 @@ +select * from performance_schema.rwlock_instances limit 1; +select * from performance_schema.rwlock_instances +where name='FOO'; +insert into performance_schema.rwlock_instances +set name='FOO', object_instance_begin=12; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`rwlock_instances` +update performance_schema.rwlock_instances +set name='FOO'; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`rwlock_instances` +delete from performance_schema.rwlock_instances +where name like "wait/%"; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`rwlock_instances` +delete from performance_schema.rwlock_instances; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`rwlock_instances` +LOCK TABLES performance_schema.rwlock_instances READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`rwlock_instances` +UNLOCK TABLES; +LOCK TABLES performance_schema.rwlock_instances WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`rwlock_instances` +UNLOCK TABLES; +# +# MDEV-25325 column_comment for performance_schema tables +# +select column_name, column_comment +from information_schema.columns +where table_schema='performance_schema' and table_name='rwlock_instances'; +column_name column_comment +NAME Instrument name associated with the read write lock +OBJECT_INSTANCE_BEGIN Address in memory of the instrumented lock +WRITE_LOCKED_BY_THREAD_ID THREAD_ID of the locking thread if locked in write (exclusive) mode, otherwise NULL. +READ_LOCKED_BY_COUNT Count of current read locks held diff --git a/mysql-test/suite/perfschema/r/dml_session_account_connect_attrs.result b/mysql-test/suite/perfschema/r/dml_session_account_connect_attrs.result new file mode 100644 index 00000000..ca9ad32d --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_session_account_connect_attrs.result @@ -0,0 +1,36 @@ +SELECT * FROM performance_schema.session_account_connect_attrs +LIMIT 1; +SELECT * FROM performance_schema.session_account_connect_attrs +where ATTR_NAME='FOO' OR ATTR_VALUE='BAR'; +INSERT INTO performance_schema.session_account_connect_attrs +SET ATTR_NAME='FOO', ATTR_VALUE='BAR', +ORDINAL_POSITION=100, PROCESS_ID=102; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`session_account_connect_attrs` +UPDATE performance_schema.session_account_connect_attrs +SET ATTR_NAME='FOO'; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`session_account_connect_attrs` +UPDATE performance_schema.session_account_connect_attrs +SET ATTR_NAME='FOO' WHERE ATTR_VALUE='BAR'; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`session_account_connect_attrs` +DELETE FROM performance_schema.session_account_connect_attrs +WHERE ATTR_VALUE='BAR'; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`session_account_connect_attrs` +DELETE FROM performance_schema.session_account_connect_attrs; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`session_account_connect_attrs` +LOCK TABLES performance_schema.session_account_connect_attrs READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`session_account_connect_attrs` +UNLOCK TABLES; +LOCK TABLES performance_schema.session_account_connect_attrs WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`session_account_connect_attrs` +UNLOCK TABLES; +# +# MDEV-25325 column_comment for performance_schema tables +# +select column_name, column_comment +from information_schema.columns +where table_schema='performance_schema' and table_name='session_account_connect_attrs'; +column_name column_comment +PROCESSLIST_ID Session connection identifier. +ATTR_NAME Attribute name. +ATTR_VALUE Attribute value. +ORDINAL_POSITION Order in which attribute was added to the connection attributes. diff --git a/mysql-test/suite/perfschema/r/dml_session_connect_attrs.result b/mysql-test/suite/perfschema/r/dml_session_connect_attrs.result new file mode 100644 index 00000000..e6b76c38 --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_session_connect_attrs.result @@ -0,0 +1,36 @@ +SELECT * FROM performance_schema.session_connect_attrs +LIMIT 1; +SELECT * FROM performance_schema.session_connect_attrs +where ATTR_NAME='FOO' OR ATTR_VALUE='BAR'; +INSERT INTO performance_schema.session_connect_attrs +SET ATTR_NAME='FOO', ATTR_VALUE='BAR', +ORDINAL_POSITION=100, PROCESS_ID=102; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`session_connect_attrs` +UPDATE performance_schema.session_connect_attrs +SET ATTR_NAME='FOO'; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`session_connect_attrs` +UPDATE performance_schema.session_connect_attrs +SET ATTR_NAME='FOO' WHERE ATTR_VALUE='BAR'; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`session_connect_attrs` +DELETE FROM performance_schema.session_connect_attrs +WHERE ATTR_VALUE='BAR'; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`session_connect_attrs` +DELETE FROM performance_schema.session_connect_attrs; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`session_connect_attrs` +LOCK TABLES performance_schema.session_connect_attrs READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`session_connect_attrs` +UNLOCK TABLES; +LOCK TABLES performance_schema.session_connect_attrs WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`session_connect_attrs` +UNLOCK TABLES; +# +# MDEV-25325 column_comment for performance_schema tables +# +select column_name, column_comment +from information_schema.columns +where table_schema='performance_schema' and table_name='session_connect_attrs'; +column_name column_comment +PROCESSLIST_ID Session connection identifier. +ATTR_NAME Attribute name. +ATTR_VALUE Attribute value. +ORDINAL_POSITION Order in which attribute was added to the connection attributes. diff --git a/mysql-test/suite/perfschema/r/dml_session_status.result b/mysql-test/suite/perfschema/r/dml_session_status.result new file mode 100644 index 00000000..4f36d9e8 --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_session_status.result @@ -0,0 +1,21 @@ +select * from performance_schema.session_status +where variable_name like 'bytes_%' limit 1; +select * from performance_schema.session_status +where variable_name='FOO'; +insert into performance_schema.session_status +set variable_name='FOO', variable_value='BAR'; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`session_status` +update performance_schema.session_status +set variable_name='FOO', variable_value='BAR'; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`session_status` +delete from performance_schema.session_status +where variable_name <> 'FOO'; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`session_status` +delete from performance_schema.session_status; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`session_status` +LOCK TABLES performance_schema.session_status READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`session_status` +UNLOCK TABLES; +LOCK TABLES performance_schema.session_status WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`session_status` +UNLOCK TABLES; diff --git a/mysql-test/suite/perfschema/r/dml_session_variables.result b/mysql-test/suite/perfschema/r/dml_session_variables.result new file mode 100644 index 00000000..c8933a38 --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_session_variables.result @@ -0,0 +1,21 @@ +select * from performance_schema.session_variables +where variable_name like 'bytes_%' limit 1; +select * from performance_schema.session_variables +where variable_name='FOO'; +insert into performance_schema.session_variables +set variable_name='FOO', variable_value='BAR'; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'session_variables' +update performance_schema.session_variables +set variable_name='FOO', variable_value='BAR'; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'session_variables' +delete from performance_schema.session_variables +where variable_name <> 'FOO'; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'session_variables' +delete from performance_schema.session_variables; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'session_variables' +LOCK TABLES performance_schema.session_variables READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'session_variables' +UNLOCK TABLES; +LOCK TABLES performance_schema.session_variables WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'session_variables' +UNLOCK TABLES; diff --git a/mysql-test/suite/perfschema/r/dml_setup_actors.result b/mysql-test/suite/perfschema/r/dml_setup_actors.result new file mode 100644 index 00000000..ffd3d60a --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_setup_actors.result @@ -0,0 +1,116 @@ +drop table if exists test.setup_actors; +create table test.setup_actors as +select * from performance_schema.setup_actors; +insert into performance_schema.setup_actors +values ('%','%','%','YES', 'YES'); +ERROR 23000: Can't write; duplicate key in table 'setup_actors' +insert into performance_schema.setup_actors +values ('%','%','%','NO', 'NO'); +ERROR 23000: Can't write; duplicate key in table 'setup_actors' +truncate table performance_schema.setup_actors; +select * from performance_schema.setup_actors; +HOST USER ROLE ENABLED HISTORY +select * from performance_schema.setup_actors +where user = '%'; +HOST USER ROLE ENABLED HISTORY +insert into performance_schema.setup_actors +set user='Joe', host='localhost'; +insert into performance_schema.setup_actors +set user='Joe', host='%'; +insert into performance_schema.setup_actors +set user='%', host='server1'; +insert into performance_schema.setup_actors +set user='%', host='%'; +insert into performance_schema.setup_actors +values ('localhost', 'user1', '%', 'NO%', 'NO'); +ERROR 01000: Data truncated for column 'ENABLED' at row 1 +insert into performance_schema.setup_actors +values ('localhost', 'user1', '%', 'NO', 'KO'); +ERROR 01000: Data truncated for column 'HISTORY' at row 1 +select * from performance_schema.setup_actors +order by USER, HOST; +HOST USER ROLE ENABLED HISTORY +% % % YES YES +server1 % % YES YES +% Joe % YES YES +localhost Joe % YES YES +update performance_schema.setup_actors +set user='ILLEGAL'; +ERROR HY000: Invalid performance_schema usage +update performance_schema.setup_actors +set host='ILLEGAL'; +ERROR HY000: Invalid performance_schema usage +update performance_schema.setup_actors +set role='ILLEGAL'; +ERROR HY000: Invalid performance_schema usage +update performance_schema.setup_actors +set ENABLED='YES'; +update performance_schema.setup_actors +set HISTORY='YES'; +update performance_schema.setup_actors +set ENABLED=''; +ERROR 01000: Data truncated for column 'ENABLED' at row 1 +update performance_schema.setup_actors +set ENABLED='YESS'; +ERROR 01000: Data truncated for column 'ENABLED' at row 1 +update performance_schema.setup_actors +set ENABLED='NO%'; +ERROR 01000: Data truncated for column 'ENABLED' at row 1 +update performance_schema.setup_actors +set ENABLED=NULL; +ERROR 23000: Column 'ENABLED' cannot be null +update performance_schema.setup_actors +set HISTORY='YESS'; +ERROR 01000: Data truncated for column 'HISTORY' at row 1 +update performance_schema.setup_actors +set HISTORY='NO%'; +ERROR 01000: Data truncated for column 'HISTORY' at row 1 +update performance_schema.setup_actors +set HISTORY=NULL; +ERROR 23000: Column 'HISTORY' cannot be null +select * from performance_schema.setup_actors +order by USER, HOST; +HOST USER ROLE ENABLED HISTORY +% % % YES YES +server1 % % YES YES +% Joe % YES YES +localhost Joe % YES YES +delete from performance_schema.setup_actors +where user = 'Joe' and host = 'localhost'; +select * from performance_schema.setup_actors +order by USER, HOST; +HOST USER ROLE ENABLED HISTORY +% % % YES YES +server1 % % YES YES +% Joe % YES YES +delete from performance_schema.setup_actors; +select * from performance_schema.setup_actors +order by USER, HOST; +HOST USER ROLE ENABLED HISTORY +LOCK TABLES performance_schema.setup_actors READ; +UNLOCK TABLES; +LOCK TABLES performance_schema.setup_actors WRITE; +UNLOCK TABLES; +# +# WL#2284: Increase the length of a user name +# +insert into performance_schema.setup_actors +set user='user_name_len_22_01234', host='localhost'; +delete from performance_schema.setup_actors +where user = 'user_name_len_22_01234' and host = 'localhost'; +truncate table performance_schema.setup_actors; +insert into performance_schema.setup_actors +select * from test.setup_actors; +drop table test.setup_actors; +# +# MDEV-25325 column_comment for performance_schema tables +# +select column_name, column_comment +from information_schema.columns +where table_schema='performance_schema' and table_name='setup_actors'; +column_name column_comment +HOST Host name, either a literal, or the % wildcard representing any host. +USER User name, either a literal or the % wildcard representing any name. +ROLE Unused +ENABLED Whether to enable instrumentation for foreground threads matched by the row. +HISTORY Whether to log historical events for foreground threads matched by the row. diff --git a/mysql-test/suite/perfschema/r/dml_setup_consumers.result b/mysql-test/suite/perfschema/r/dml_setup_consumers.result new file mode 100644 index 00000000..a72b238f --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_setup_consumers.result @@ -0,0 +1,68 @@ +select * from performance_schema.setup_consumers; +NAME ENABLED +events_stages_current YES +events_stages_history YES +events_stages_history_long YES +events_statements_current YES +events_statements_history YES +events_statements_history_long YES +events_transactions_current YES +events_transactions_history YES +events_transactions_history_long YES +events_waits_current YES +events_waits_history YES +events_waits_history_long YES +global_instrumentation YES +thread_instrumentation YES +statements_digest YES +select * from performance_schema.setup_consumers +where name='events_waits_current'; +NAME ENABLED +events_waits_current YES +select * from performance_schema.setup_consumers +where enabled='YES'; +NAME ENABLED +events_stages_current YES +events_stages_history YES +events_stages_history_long YES +events_statements_current YES +events_statements_history YES +events_statements_history_long YES +events_transactions_current YES +events_transactions_history YES +events_transactions_history_long YES +events_waits_current YES +events_waits_history YES +events_waits_history_long YES +global_instrumentation YES +thread_instrumentation YES +statements_digest YES +select * from performance_schema.setup_consumers +where enabled='NO'; +NAME ENABLED +insert into performance_schema.setup_consumers +set name='FOO', enabled='YES'; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`setup_consumers` +update performance_schema.setup_consumers +set name='FOO'; +ERROR HY000: Invalid performance_schema usage +update performance_schema.setup_consumers +set enabled='YES'; +delete from performance_schema.setup_consumers; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`setup_consumers` +delete from performance_schema.setup_consumers +where name='events_waits_current'; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`setup_consumers` +LOCK TABLES performance_schema.setup_consumers READ; +UNLOCK TABLES; +LOCK TABLES performance_schema.setup_consumers WRITE; +UNLOCK TABLES; +# +# MDEV-25325 column_comment for performance_schema tables +# +select column_name, column_comment +from information_schema.columns +where table_schema='performance_schema' and table_name='setup_consumers'; +column_name column_comment +NAME Consumer name +ENABLED YES or NO for whether or not the consumer is enabled. You can modify this column to ensure that event information is added, or is not added. diff --git a/mysql-test/suite/perfschema/r/dml_setup_instruments.result b/mysql-test/suite/perfschema/r/dml_setup_instruments.result new file mode 100644 index 00000000..cdc52da5 --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_setup_instruments.result @@ -0,0 +1,97 @@ +select * from performance_schema.setup_instruments; +select * from performance_schema.setup_instruments +where name like 'Wait/Synch/Mutex/sql/%' + and name not in ('wait/synch/mutex/sql/DEBUG_SYNC::mutex') +order by name limit 10; +NAME ENABLED TIMED +wait/synch/mutex/sql/Ack_receiver::mutex YES YES +wait/synch/mutex/sql/Cversion_lock YES YES +wait/synch/mutex/sql/Delayed_insert::mutex YES YES +wait/synch/mutex/sql/Event_scheduler::LOCK_scheduler_state YES YES +wait/synch/mutex/sql/gtid_waiting::LOCK_gtid_waiting YES YES +wait/synch/mutex/sql/hash_filo::lock YES YES +wait/synch/mutex/sql/HA_DATA_PARTITION::LOCK_auto_inc YES YES +wait/synch/mutex/sql/LOCK_active_mi YES YES +wait/synch/mutex/sql/LOCK_after_binlog_sync YES YES +wait/synch/mutex/sql/LOCK_audit_mask YES YES +select * from performance_schema.setup_instruments +where name like 'Wait/Synch/Rwlock/sql/%' + and name not in ( +'wait/synch/rwlock/sql/CRYPTO_dynlock_value::lock', +'wait/synch/rwlock/sql/LOCK_named_pipe_full_access_group') +order by name limit 10; +NAME ENABLED TIMED +wait/synch/rwlock/sql/LOCK_all_status_vars YES YES +wait/synch/rwlock/sql/LOCK_dbnames YES YES +wait/synch/rwlock/sql/LOCK_dboptions YES YES +wait/synch/rwlock/sql/LOCK_grant YES YES +wait/synch/rwlock/sql/LOCK_rmdir YES YES +wait/synch/rwlock/sql/LOCK_SEQUENCE YES YES +wait/synch/rwlock/sql/LOCK_ssl_refresh YES YES +wait/synch/rwlock/sql/LOCK_system_variables_hash YES YES +wait/synch/rwlock/sql/LOCK_sys_init_connect YES YES +wait/synch/rwlock/sql/LOCK_sys_init_slave YES YES +select * from performance_schema.setup_instruments +where name like 'Wait/Synch/Cond/sql/%' + and name not in ( +'wait/synch/cond/sql/COND_open', +'wait/synch/cond/sql/COND_handler_count', +'wait/synch/cond/sql/DEBUG_SYNC::cond', +'wait/synch/cond/sql/COND_socket_listener_active', +'wait/synch/cond/sql/COND_start_signal_handler') +order by name limit 10; +NAME ENABLED TIMED +wait/synch/cond/sql/Ack_receiver::cond YES YES +wait/synch/cond/sql/COND_binlog_send YES YES +wait/synch/cond/sql/COND_flush_thread_cache YES YES +wait/synch/cond/sql/COND_group_commit_orderer YES YES +wait/synch/cond/sql/COND_gtid_ignore_duplicates YES YES +wait/synch/cond/sql/COND_manager YES YES +wait/synch/cond/sql/COND_parallel_entry YES YES +wait/synch/cond/sql/COND_prepare_ordered YES YES +wait/synch/cond/sql/COND_queue_state YES YES +wait/synch/cond/sql/COND_rpl_thread YES YES +select * from performance_schema.setup_instruments +where name='Wait'; +select * from performance_schema.setup_instruments +where enabled='YES'; +insert into performance_schema.setup_instruments +set name='FOO', enabled='YES', timed='YES'; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`setup_instruments` +update performance_schema.setup_instruments +set name='FOO'; +ERROR HY000: Invalid performance_schema usage +update performance_schema.setup_instruments +set enabled='NO'; +update performance_schema.setup_instruments +set timed='NO'; +select * from performance_schema.setup_instruments; +update performance_schema.setup_instruments +set enabled='YES', timed='YES'; +delete from performance_schema.setup_instruments; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`setup_instruments` +delete from performance_schema.setup_instruments +where name like 'Wait/Synch/%'; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`setup_instruments` +LOCK TABLES performance_schema.setup_instruments READ; +UNLOCK TABLES; +LOCK TABLES performance_schema.setup_instruments WRITE; +UNLOCK TABLES; +# +# Bug#13813193 ASSERTION `TABLE->READ_SET == +# &TABLE->DEF_READ_SET' FAILED / MYSQL_UPDATE +# +UPDATE performance_schema.setup_instruments SET timed='NO' +ORDER BY RAND(); +update performance_schema.setup_instruments +set enabled='YES', TIMED='YES'; +# +# MDEV-25325 column_comment for performance_schema tables +# +select column_name, column_comment +from information_schema.columns +where table_schema='performance_schema' and table_name='setup_instruments'; +column_name column_comment +NAME Instrument name +ENABLED Whether or not the instrument is enabled. It can be disabled, and the instrument will produce no events. +TIMED Whether or not the instrument is timed. It can be set, but if disabled, events produced by the instrument will have NULL values for the corresponding TIMER_START, TIMER_END, and TIMER_WAIT values. diff --git a/mysql-test/suite/perfschema/r/dml_setup_objects.result b/mysql-test/suite/perfschema/r/dml_setup_objects.result new file mode 100644 index 00000000..5e6110f8 --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_setup_objects.result @@ -0,0 +1,84 @@ +drop table if exists test.setup_objects; +SET sql_mode = 'NO_ENGINE_SUBSTITUTION'; +create table test.setup_objects as +select * from performance_schema.setup_objects; +truncate table performance_schema.setup_objects; +select * from performance_schema.setup_objects; +OBJECT_TYPE OBJECT_SCHEMA OBJECT_NAME ENABLED TIMED +select * from performance_schema.setup_objects +order by object_type, object_schema, object_name; +OBJECT_TYPE OBJECT_SCHEMA OBJECT_NAME ENABLED TIMED +select * from performance_schema.setup_objects +where object_type = 'TABLE' + order by object_type, object_schema, object_name; +OBJECT_TYPE OBJECT_SCHEMA OBJECT_NAME ENABLED TIMED +select * from performance_schema.setup_objects +order by object_type, object_schema, object_name; +OBJECT_TYPE OBJECT_SCHEMA OBJECT_NAME ENABLED TIMED +set sql_mode= ''; +insert into performance_schema.setup_objects +set object_type='ILLEGAL', object_schema='FOO', object_name='BAR', +enabled='YES', timed='YES'; +ERROR 23000: Cannot add or update a child row: a foreign key constraint fails +set sql_mode= DEFAULT; +insert into performance_schema.setup_objects +set object_type='TABLE', object_schema='FOO', object_name='BAR', +enabled='YES', timed='YES'; +insert into performance_schema.setup_objects +set object_type='TABLE', object_schema='FOO', object_name='BAR', +enabled='YES', timed='NO'; +ERROR 23000: Can't write; duplicate key in table 'setup_objects' +delete from performance_schema.setup_objects +where object_type='TABLE' and object_schema='FOO'; +select * from performance_schema.setup_objects +order by object_type, object_schema, object_name; +OBJECT_TYPE OBJECT_SCHEMA OBJECT_NAME ENABLED TIMED +insert into performance_schema.setup_objects +set object_type='TABLE', object_schema='FOO', object_name='BAR', +enabled='NO', timed='YES'; +select * from performance_schema.setup_objects +order by object_type, object_schema, object_name; +OBJECT_TYPE OBJECT_SCHEMA OBJECT_NAME ENABLED TIMED +TABLE FOO BAR NO YES +set statement sql_mode = '' for +update performance_schema.setup_objects +set object_type='ILLEGAL'; +ERROR HY000: Invalid performance_schema usage +update performance_schema.setup_objects +set object_schema='ILLEGAL'; +ERROR HY000: Invalid performance_schema usage +update performance_schema.setup_objects +set object_name='ILLEGAL'; +ERROR HY000: Invalid performance_schema usage +update performance_schema.setup_objects +set enabled='NO', timed='NO'; +select * from performance_schema.setup_objects +order by object_type, object_schema, object_name; +OBJECT_TYPE OBJECT_SCHEMA OBJECT_NAME ENABLED TIMED +TABLE FOO BAR NO NO +update performance_schema.setup_objects +set enabled='YES', timed='YES'; +delete from performance_schema.setup_objects +where object_type = 'TABLE'; +delete from performance_schema.setup_objects; +LOCK TABLES performance_schema.setup_objects READ; +UNLOCK TABLES; +LOCK TABLES performance_schema.setup_objects WRITE; +UNLOCK TABLES; +truncate table performance_schema.setup_objects; +insert into performance_schema.setup_objects +select * from test.setup_objects; +drop table test.setup_objects; +SET sql_mode = default; +# +# MDEV-25325 column_comment for performance_schema tables +# +select column_name, column_comment +from information_schema.columns +where table_schema='performance_schema' and table_name='setup_objects'; +column_name column_comment +OBJECT_TYPE Type of object to instrument. +OBJECT_SCHEMA Schema containing the object, either the literal or % for any schema. +OBJECT_NAME Name of the instrumented object, either the literal or % for any object. +ENABLED Whether the object's events are instrumented or not. Can be disabled, in which case monitoring is not enabled for those objects. +TIMED Whether the object's events are timed or not. Can be modified. diff --git a/mysql-test/suite/perfschema/r/dml_setup_timers.result b/mysql-test/suite/perfschema/r/dml_setup_timers.result new file mode 100644 index 00000000..6f5a1f5c --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_setup_timers.result @@ -0,0 +1,111 @@ +update performance_schema.setup_timers +set timer_name='CYCLE' where name="wait"; +Warnings: +Warning 1681 'performance_schema.setup_timers' is deprecated and will be removed in a future release +update performance_schema.setup_timers +set timer_name='NANOSECOND' where name="stage"; +Warnings: +Warning 1681 'performance_schema.setup_timers' is deprecated and will be removed in a future release +update performance_schema.setup_timers +set timer_name='NANOSECOND' where name="statement"; +Warnings: +Warning 1681 'performance_schema.setup_timers' is deprecated and will be removed in a future release +update performance_schema.setup_timers +set timer_name='MICROSECOND' where name="transaction"; +Warnings: +Warning 1681 'performance_schema.setup_timers' is deprecated and will be removed in a future release +update performance_schema.setup_timers +set timer_name='MICROSECOND' where name="idle"; +Warnings: +Warning 1681 'performance_schema.setup_timers' is deprecated and will be removed in a future release +select * from performance_schema.setup_timers; +NAME TIMER_NAME +idle MICROSECOND +wait CYCLE +stage NANOSECOND +statement NANOSECOND +transaction MICROSECOND +Warnings: +Warning 1681 'performance_schema.setup_timers' is deprecated and will be removed in a future release +select * from performance_schema.setup_timers +where name='Wait'; +NAME TIMER_NAME +wait CYCLE +Warnings: +Warning 1681 'performance_schema.setup_timers' is deprecated and will be removed in a future release +select * from performance_schema.setup_timers +where timer_name='CYCLE'; +NAME TIMER_NAME +wait CYCLE +Warnings: +Warning 1681 'performance_schema.setup_timers' is deprecated and will be removed in a future release +insert into performance_schema.setup_timers +set name='FOO', timer_name='CYCLE'; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`setup_timers` +update performance_schema.setup_timers +set name='FOO'; +ERROR HY000: Invalid performance_schema usage +update performance_schema.setup_timers +set timer_name='MILLISECOND'; +Warnings: +Warning 1681 'performance_schema.setup_timers' is deprecated and will be removed in a future release +select * from performance_schema.setup_timers; +NAME TIMER_NAME +idle MILLISECOND +wait MILLISECOND +stage MILLISECOND +statement MILLISECOND +transaction MILLISECOND +Warnings: +Warning 1681 'performance_schema.setup_timers' is deprecated and will be removed in a future release +update performance_schema.setup_timers +set timer_name='CYCLE'; +Warnings: +Warning 1681 'performance_schema.setup_timers' is deprecated and will be removed in a future release +delete from performance_schema.setup_timers; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`setup_timers` +delete from performance_schema.setup_timers +where name='Wait'; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`setup_timers` +LOCK TABLES performance_schema.setup_timers READ; +UNLOCK TABLES; +LOCK TABLES performance_schema.setup_timers WRITE; +UNLOCK TABLES; +update performance_schema.setup_timers +set timer_name='CYCLE' where name="wait"; +Warnings: +Warning 1681 'performance_schema.setup_timers' is deprecated and will be removed in a future release +update performance_schema.setup_timers +set timer_name='NANOSECOND' where name="stage"; +Warnings: +Warning 1681 'performance_schema.setup_timers' is deprecated and will be removed in a future release +update performance_schema.setup_timers +set timer_name='NANOSECOND' where name="statement"; +Warnings: +Warning 1681 'performance_schema.setup_timers' is deprecated and will be removed in a future release +update performance_schema.setup_timers +set timer_name='MICROSECOND' where name="transaction"; +Warnings: +Warning 1681 'performance_schema.setup_timers' is deprecated and will be removed in a future release +update performance_schema.setup_timers +set timer_name='MICROSECOND' where name="idle"; +Warnings: +Warning 1681 'performance_schema.setup_timers' is deprecated and will be removed in a future release +select * from performance_schema.setup_timers; +NAME TIMER_NAME +idle MICROSECOND +wait CYCLE +stage NANOSECOND +statement NANOSECOND +transaction MICROSECOND +Warnings: +Warning 1681 'performance_schema.setup_timers' is deprecated and will be removed in a future release +# +# MDEV-25325 column_comment for performance_schema tables +# +select column_name, column_comment +from information_schema.columns +where table_schema='performance_schema' and table_name='setup_timers'; +column_name column_comment +NAME Type of instrument the timer is used for. +TIMER_NAME Timer applying to the instrument type. Can be modified. diff --git a/mysql-test/suite/perfschema/r/dml_socket_instances.result b/mysql-test/suite/perfschema/r/dml_socket_instances.result new file mode 100644 index 00000000..571d4ad5 --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_socket_instances.result @@ -0,0 +1,34 @@ +select * from performance_schema.socket_instances limit 1; +select * from performance_schema.socket_instances +where ip='FOO'; +insert into performance_schema.socket_instances +set ip='FOO', event_name='BAR', port=12; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`socket_instances` +update performance_schema.socket_instances +set ip='FOO'; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`socket_instances` +delete from performance_schema.socket_instances +where event_name like "wait/%"; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`socket_instances` +delete from performance_schema.socket_instances; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`socket_instances` +LOCK TABLES performance_schema.socket_instances READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`socket_instances` +UNLOCK TABLES; +LOCK TABLES performance_schema.socket_instances WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`socket_instances` +UNLOCK TABLES; +# +# MDEV-25325 column_comment for performance_schema tables +# +select column_name, column_comment +from information_schema.columns +where table_schema='performance_schema' and table_name='socket_instances'; +column_name column_comment +EVENT_NAME NAME from the setup_instruments table, and the name of the wait/io/socket/* instrument that produced the event. +OBJECT_INSTANCE_BEGIN Memory address of the object. +THREAD_ID Thread identifier that the server assigns to each socket. +SOCKET_ID The socket's internal file handle. +IP Client IP address. Blank for Unix socket file, otherwise an IPv4 or IPv6 address. Together with the PORT identifies the connection. +PORT TCP/IP port number, from 0 to 65535. Together with the IP identifies the connection. +STATE Socket status, either IDLE if waiting to receive a request from a client, or ACTIVE diff --git a/mysql-test/suite/perfschema/r/dml_socket_summary_by_event_name.result b/mysql-test/suite/perfschema/r/dml_socket_summary_by_event_name.result new file mode 100644 index 00000000..8701f92d --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_socket_summary_by_event_name.result @@ -0,0 +1,56 @@ +select * from performance_schema.socket_summary_by_event_name +limit 1; +select * from performance_schema.socket_summary_by_event_name +where event_name='FOO'; +insert into performance_schema.socket_summary_by_event_name +set event_name='FOO', +count_star=1, sum_timer_wait=2, min_timer_wait=3, +avg_timer_wait=4, max_timer_wait=5; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`socket_summary_by_event_name` +update performance_schema.socket_summary_by_event_name +set count_star=12; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`socket_summary_by_event_name` +update performance_schema.socket_summary_by_event_name +set count_star=12 where event_name like "FOO"; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`socket_summary_by_event_name` +delete from performance_schema.socket_summary_by_event_name +where count_star=1; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`socket_summary_by_event_name` +delete from performance_schema.socket_summary_by_event_name; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`socket_summary_by_event_name` +LOCK TABLES performance_schema.socket_summary_by_event_name READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`socket_summary_by_event_name` +UNLOCK TABLES; +LOCK TABLES performance_schema.socket_summary_by_event_name WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`socket_summary_by_event_name` +UNLOCK TABLES; +# +# MDEV-25325 column_comment for performance_schema tables +# +select column_name, column_comment +from information_schema.columns +where table_schema='performance_schema' and table_name='socket_summary_by_event_name'; +column_name column_comment +EVENT_NAME Socket instrument. +COUNT_STAR Number of summarized events +SUM_TIMER_WAIT Total wait time of the summarized events that are timed. +MIN_TIMER_WAIT Minimum wait time of the summarized events that are timed. +AVG_TIMER_WAIT Average wait time of the summarized events that are timed. +MAX_TIMER_WAIT Maximum wait time of the summarized events that are timed. +COUNT_READ Number of all read operations, including RECV, RECVFROM, and RECVMSG. +SUM_TIMER_READ Total wait time of all read operations that are timed. +MIN_TIMER_READ Minimum wait time of all read operations that are timed. +AVG_TIMER_READ Average wait time of all read operations that are timed. +MAX_TIMER_READ Maximum wait time of all read operations that are timed. +SUM_NUMBER_OF_BYTES_READ Bytes read by read operations. +COUNT_WRITE Number of all write operations, including SEND, SENDTO, and SENDMSG. +SUM_TIMER_WRITE Total wait time of all write operations that are timed. +MIN_TIMER_WRITE Minimum wait time of all write operations that are timed. +AVG_TIMER_WRITE Average wait time of all write operations that are timed. +MAX_TIMER_WRITE Maximum wait time of all write operations that are timed. +SUM_NUMBER_OF_BYTES_WRITE Bytes written by write operations. +COUNT_MISC Number of all miscellaneous operations not counted above, including CONNECT, LISTEN, ACCEPT, CLOSE, and SHUTDOWN. +SUM_TIMER_MISC Total wait time of all miscellaneous operations that are timed. +MIN_TIMER_MISC Minimum wait time of all miscellaneous operations that are timed. +AVG_TIMER_MISC Average wait time of all miscellaneous operations that are timed. +MAX_TIMER_MISC Maximum wait time of all miscellaneous operations that are timed. diff --git a/mysql-test/suite/perfschema/r/dml_socket_summary_by_instance.result b/mysql-test/suite/perfschema/r/dml_socket_summary_by_instance.result new file mode 100644 index 00000000..ffbab5c7 --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_socket_summary_by_instance.result @@ -0,0 +1,57 @@ +select * from performance_schema.socket_summary_by_instance +limit 1; +select * from performance_schema.socket_summary_by_instance +where object_instance_begin='FOO'; +insert into performance_schema.socket_summary_by_instance +set object_instance_begin=1, +count_star=1, sum_timer_wait=2, min_timer_wait=3, +avg_timer_wait=4, max_timer_wait=5; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`socket_summary_by_instance` +update performance_schema.socket_summary_by_instance +set count_star=12; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`socket_summary_by_instance` +update performance_schema.socket_summary_by_instance +set count_star=12 where object_instance_begin like "FOO"; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`socket_summary_by_instance` +delete from performance_schema.socket_summary_by_instance +where count_star=1; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`socket_summary_by_instance` +delete from performance_schema.socket_summary_by_instance; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`socket_summary_by_instance` +LOCK TABLES performance_schema.socket_summary_by_instance READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`socket_summary_by_instance` +UNLOCK TABLES; +LOCK TABLES performance_schema.socket_summary_by_instance WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`socket_summary_by_instance` +UNLOCK TABLES; +# +# MDEV-25325 column_comment for performance_schema tables +# +select column_name, column_comment +from information_schema.columns +where table_schema='performance_schema' and table_name='socket_summary_by_instance'; +column_name column_comment +EVENT_NAME Socket instrument. +OBJECT_INSTANCE_BEGIN Address in memory. +COUNT_STAR Number of summarized events +SUM_TIMER_WAIT Total wait time of the summarized events that are timed. +MIN_TIMER_WAIT Minimum wait time of the summarized events that are timed. +AVG_TIMER_WAIT Average wait time of the summarized events that are timed. +MAX_TIMER_WAIT Maximum wait time of the summarized events that are timed. +COUNT_READ Number of all read operations, including RECV, RECVFROM, and RECVMSG. +SUM_TIMER_READ Total wait time of all read operations that are timed. +MIN_TIMER_READ Minimum wait time of all read operations that are timed. +AVG_TIMER_READ Average wait time of all read operations that are timed. +MAX_TIMER_READ Maximum wait time of all read operations that are timed. +SUM_NUMBER_OF_BYTES_READ Bytes read by read operations. +COUNT_WRITE Number of all write operations, including SEND, SENDTO, and SENDMSG. +SUM_TIMER_WRITE Total wait time of all write operations that are timed. +MIN_TIMER_WRITE Minimum wait time of all write operations that are timed. +AVG_TIMER_WRITE Average wait time of all write operations that are timed. +MAX_TIMER_WRITE Maximum wait time of all write operations that are timed. +SUM_NUMBER_OF_BYTES_WRITE Bytes written by write operations. +COUNT_MISC Number of all miscellaneous operations not counted above, including CONNECT, LISTEN, ACCEPT, CLOSE, and SHUTDOWN. +SUM_TIMER_MISC Total wait time of all miscellaneous operations that are timed. +MIN_TIMER_MISC Minimum wait time of all miscellaneous operations that are timed. +AVG_TIMER_MISC Average wait time of all miscellaneous operations that are timed. +MAX_TIMER_MISC Maximum wait time of all miscellaneous operations that are timed. diff --git a/mysql-test/suite/perfschema/r/dml_status_by_account.result b/mysql-test/suite/perfschema/r/dml_status_by_account.result new file mode 100644 index 00000000..7b107bd8 --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_status_by_account.result @@ -0,0 +1,24 @@ +select * from performance_schema.status_by_account +where variable_name like 'bytes_%' limit 1; +select * from performance_schema.status_by_account +where variable_name='FOO'; +insert into performance_schema.status_by_account +set user='USER', host='HOST', variable_name='FOO', variable_value='BAR'; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`status_by_account` +update performance_schema.status_by_account +set variable_name='FOO', variable_value='BAR'; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`status_by_account` +update performance_schema.status_by_account +set variable_name='FOO' where user <> 'USER'; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`status_by_account` +delete from performance_schema.status_by_account +where user <> 'USER'; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`status_by_account` +delete from performance_schema.status_by_account; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`status_by_account` +LOCK TABLES performance_schema.status_by_account READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`status_by_account` +UNLOCK TABLES; +LOCK TABLES performance_schema.status_by_account WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`status_by_account` +UNLOCK TABLES; diff --git a/mysql-test/suite/perfschema/r/dml_status_by_host.result b/mysql-test/suite/perfschema/r/dml_status_by_host.result new file mode 100644 index 00000000..99b83e2a --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_status_by_host.result @@ -0,0 +1,24 @@ +select * from performance_schema.status_by_host +where variable_name like 'bytes_%' limit 1; +select * from performance_schema.status_by_host +where variable_name='FOO'; +insert into performance_schema.status_by_host +set host='HOST', variable_name='FOO', variable_value='BAR'; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`status_by_host` +update performance_schema.status_by_host +set variable_name='FOO', variable_value='BAR'; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`status_by_host` +update performance_schema.status_by_host +set variable_name='FOO' where host <> 'HOST'; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`status_by_host` +delete from performance_schema.status_by_host +where host <> 'HOST'; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`status_by_host` +delete from performance_schema.status_by_host; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`status_by_host` +LOCK TABLES performance_schema.status_by_host READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`status_by_host` +UNLOCK TABLES; +LOCK TABLES performance_schema.status_by_host WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`status_by_host` +UNLOCK TABLES; diff --git a/mysql-test/suite/perfschema/r/dml_status_by_thread.result b/mysql-test/suite/perfschema/r/dml_status_by_thread.result new file mode 100644 index 00000000..9eab9789 --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_status_by_thread.result @@ -0,0 +1,24 @@ +select * from performance_schema.status_by_thread +where variable_name like 'bytes_%' limit 1; +select * from performance_schema.status_by_thread +where variable_name='FOO'; +insert into performance_schema.status_by_thread +set thread_id=1, variable_name='FOO', variable_value='BAR'; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`status_by_thread` +update performance_schema.status_by_thread +set variable_name='FOO', variable_value='BAR'; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`status_by_thread` +update performance_schema.status_by_thread +set variable_name='FOO' where thread_id=0; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`status_by_thread` +delete from performance_schema.status_by_thread +where thread_id=1; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`status_by_thread` +delete from performance_schema.status_by_thread; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`status_by_thread` +LOCK TABLES performance_schema.status_by_thread READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`status_by_thread` +UNLOCK TABLES; +LOCK TABLES performance_schema.status_by_thread WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`status_by_thread` +UNLOCK TABLES; diff --git a/mysql-test/suite/perfschema/r/dml_status_by_user.result b/mysql-test/suite/perfschema/r/dml_status_by_user.result new file mode 100644 index 00000000..d81153ae --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_status_by_user.result @@ -0,0 +1,24 @@ +select * from performance_schema.status_by_user +where variable_name like 'bytes_%' limit 1; +select * from performance_schema.status_by_user +where variable_name='FOO'; +insert into performance_schema.status_by_user +set user='USER', variable_name='FOO', variable_value='BAR'; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`status_by_user` +update performance_schema.status_by_user +set variable_name='FOO', variable_value='BAR'; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`status_by_user` +update performance_schema.status_by_user +set variable_name='FOO' where user <> 'USER'; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`status_by_user` +delete from performance_schema.status_by_user +where user <> 'USER'; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`status_by_user` +delete from performance_schema.status_by_user; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`status_by_user` +LOCK TABLES performance_schema.status_by_user READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`status_by_user` +UNLOCK TABLES; +LOCK TABLES performance_schema.status_by_user WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`status_by_user` +UNLOCK TABLES; diff --git a/mysql-test/suite/perfschema/r/dml_table_handles.result b/mysql-test/suite/perfschema/r/dml_table_handles.result new file mode 100644 index 00000000..8089d5f6 --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_table_handles.result @@ -0,0 +1,21 @@ +select * from performance_schema.table_handles; +select * from performance_schema.table_handles +where object_name='foo'; +OBJECT_TYPE OBJECT_SCHEMA OBJECT_NAME OBJECT_INSTANCE_BEGIN OWNER_THREAD_ID OWNER_EVENT_ID INTERNAL_LOCK EXTERNAL_LOCK +insert into performance_schema.table_handles +set object_name='FOO', owner_event_id=1; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`table_handles` +update performance_schema.table_handles +set owner_event_id=12 where object_name='foo'; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`table_handles` +delete from performance_schema.table_handles; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`table_handles` +delete from performance_schema.table_handles +where timer_name='CYCLE'; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`table_handles` +LOCK TABLES performance_schema.table_handles READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`table_handles` +UNLOCK TABLES; +LOCK TABLES performance_schema.table_handles WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`table_handles` +UNLOCK TABLES; diff --git a/mysql-test/suite/perfschema/r/dml_threads.result b/mysql-test/suite/perfschema/r/dml_threads.result new file mode 100644 index 00000000..c0c7281b --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_threads.result @@ -0,0 +1,58 @@ +select * from performance_schema.threads +where name like 'Thread/%' limit 1; +select * from performance_schema.threads +where name='FOO'; +insert into performance_schema.threads +set name='FOO', thread_id=1, processlist_id=2; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`threads` +update performance_schema.threads +set thread_id=12; +ERROR HY000: Invalid performance_schema usage +update performance_schema.threads +set thread_id=12 where PROCESSLIST_ID=connection_id(); +ERROR HY000: Invalid performance_schema usage +update performance_schema.threads +set instrumented= 'NO' where PROCESSLIST_ID=connection_id(); +select instrumented from performance_schema.threads +where PROCESSLIST_ID=connection_id(); +instrumented +NO +update performance_schema.threads +set instrumented= 'YES' where PROCESSLIST_ID=connection_id(); +select instrumented from performance_schema.threads +where PROCESSLIST_ID=connection_id(); +instrumented +YES +delete from performance_schema.threads +where id=1; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`threads` +delete from performance_schema.threads; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`threads` +LOCK TABLES performance_schema.threads READ; +UNLOCK TABLES; +LOCK TABLES performance_schema.threads WRITE; +UNLOCK TABLES; +# +# MDEV-25325 column_comment for performance_schema tables +# +select column_name, column_comment +from information_schema.columns +where table_schema='performance_schema' and table_name='threads'; +column_name column_comment +THREAD_ID A unique thread identifier. +NAME Name associated with the server's thread instrumentation code, for example thread/sql/main for the server's main() function, and thread/sql/one_connection for a user connection. +TYPE FOREGROUND or BACKGROUND, depending on the thread type. User connection threads are FOREGROUND, internal server threads are BACKGROUND. +PROCESSLIST_ID The PROCESSLIST.ID value for threads displayed in the INFORMATION_SCHEMA.PROCESSLIST table, or 0 for background threads. Also corresponds with the CONNECTION_ID() return value for the thread. +PROCESSLIST_USER Foreground thread user, or NULL for a background thread. +PROCESSLIST_HOST Foreground thread host, or NULL for a background thread. +PROCESSLIST_DB Thread's default database, or NULL if none exists. +PROCESSLIST_COMMAND Type of command executed by the thread. These correspond to the the COM_xxx client/server protocol commands, and the Com_xxx status variables. See Thread Command Values. +PROCESSLIST_TIME Time in seconds the thread has been in its current state. +PROCESSLIST_STATE Action, event or state indicating what the thread is doing. +PROCESSLIST_INFO Statement being executed by the thread, or NULL if a statement is not being executed. If a statement results in calling other statements, such as for a stored procedure, the innermost statement from the stored procedure is shown here. +PARENT_THREAD_ID THREAD_ID of the parent thread, if any. Subthreads can for example be spawned as a result of INSERT DELAYED statements. +ROLE Unused. +INSTRUMENTED YES or NO for Whether the thread is instrumented or not. For foreground threads, the initial value is determined by whether there's a user/host match in the setup_actors table. Subthreads are again matched, while for background threads, this will be set to YES by default. To monitor events that the thread executes, INSTRUMENTED must be YES and the thread_instrumentation consumer in the setup_consumers table must also be YES. +HISTORY Whether to log historical events for the thread. +CONNECTION_TYPE The protocol used to establish the connection, or NULL for background threads. +THREAD_OS_ID The thread or task identifier as defined by the underlying operating system, if there is one. diff --git a/mysql-test/suite/perfschema/r/dml_tiws_by_index_usage.result b/mysql-test/suite/perfschema/r/dml_tiws_by_index_usage.result new file mode 100644 index 00000000..81ef27d3 --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_tiws_by_index_usage.result @@ -0,0 +1,72 @@ +select * from performance_schema.table_io_waits_summary_by_index_usage +limit 1; +select * from performance_schema.table_io_waits_summary_by_index_usage +where object_name='FOO'; +insert into performance_schema.table_io_waits_summary_by_index_usage +set object_type='TABLE', object_name='FOO', object_schema='BAR', +count_star=1, sum_timer_wait=2, min_timer_wait=3, +avg_timer_wait=4, max_timer_wait=5; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`table_io_waits_summary_by_index_usage` +update performance_schema.table_io_waits_summary_by_index_usage +set count_star=12; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`table_io_waits_summary_by_index_usage` +update performance_schema.table_io_waits_summary_by_index_usage +set count_star=12 where object_name like "FOO"; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`table_io_waits_summary_by_index_usage` +delete from performance_schema.table_io_waits_summary_by_index_usage +where count_star=1; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`table_io_waits_summary_by_index_usage` +delete from performance_schema.table_io_waits_summary_by_index_usage; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`table_io_waits_summary_by_index_usage` +LOCK TABLES performance_schema.table_io_waits_summary_by_index_usage READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`table_io_waits_summary_by_index_usage` +UNLOCK TABLES; +LOCK TABLES performance_schema.table_io_waits_summary_by_index_usage WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`table_io_waits_summary_by_index_usage` +UNLOCK TABLES; +# +# MDEV-25325 column_comment for performance_schema tables +# +select column_name, column_comment +from information_schema.columns +where table_schema='performance_schema' and table_name='table_io_waits_summary_by_index_usage'; +column_name column_comment +OBJECT_TYPE TABLE in the case of all indexes. +OBJECT_SCHEMA Schema name. +OBJECT_NAME Table name. +INDEX_NAME Index name, or PRIMARY for the primary index, NULL for no index (inserts are counted in this case). +COUNT_STAR Number of summarized events and the sum of the x_READ and x_WRITE columns. +SUM_TIMER_WAIT Total wait time of the summarized events that are timed. +MIN_TIMER_WAIT Minimum wait time of the summarized events that are timed. +AVG_TIMER_WAIT Average wait time of the summarized events that are timed. +MAX_TIMER_WAIT Maximum wait time of the summarized events that are timed. +COUNT_READ Number of all read operations, and the sum of the equivalent x_FETCH columns. +SUM_TIMER_READ Total wait time of all read operations that are timed. +MIN_TIMER_READ Minimum wait time of all read operations that are timed. +AVG_TIMER_READ Average wait time of all read operations that are timed. +MAX_TIMER_READ Maximum wait time of all read operations that are timed. +COUNT_WRITE Number of all write operations, and the sum of the equivalent x_INSERT, x_UPDATE and x_DELETE columns. +SUM_TIMER_WRITE Total wait time of all write operations that are timed. +MIN_TIMER_WRITE Minimum wait time of all write operations that are timed. +AVG_TIMER_WRITE Average wait time of all write operations that are timed. +MAX_TIMER_WRITE Maximum wait time of all write operations that are timed. +COUNT_FETCH Number of all fetch operations. +SUM_TIMER_FETCH Total wait time of all fetch operations that are timed. +MIN_TIMER_FETCH Minimum wait time of all fetch operations that are timed. +AVG_TIMER_FETCH Average wait time of all fetch operations that are timed. +MAX_TIMER_FETCH Maximum wait time of all fetch operations that are timed. +COUNT_INSERT Number of all insert operations. +SUM_TIMER_INSERT Total wait time of all insert operations that are timed. +MIN_TIMER_INSERT Minimum wait time of all insert operations that are timed. +AVG_TIMER_INSERT Average wait time of all insert operations that are timed. +MAX_TIMER_INSERT Maximum wait time of all insert operations that are timed. +COUNT_UPDATE Number of all update operations. +SUM_TIMER_UPDATE Total wait time of all update operations that are timed. +MIN_TIMER_UPDATE Minimum wait time of all update operations that are timed. +AVG_TIMER_UPDATE Average wait time of all update operations that are timed. +MAX_TIMER_UPDATE Maximum wait time of all update operations that are timed. +COUNT_DELETE Number of all delete operations. +SUM_TIMER_DELETE Total wait time of all delete operations that are timed. +MIN_TIMER_DELETE Minimum wait time of all delete operations that are timed. +AVG_TIMER_DELETE Average wait time of all delete operations that are timed. +MAX_TIMER_DELETE Maximum wait time of all delete operations that are timed. diff --git a/mysql-test/suite/perfschema/r/dml_tiws_by_table.result b/mysql-test/suite/perfschema/r/dml_tiws_by_table.result new file mode 100644 index 00000000..46c8604c --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_tiws_by_table.result @@ -0,0 +1,71 @@ +select * from performance_schema.table_io_waits_summary_by_table +limit 1; +select * from performance_schema.table_io_waits_summary_by_table +where object_name='FOO'; +insert into performance_schema.table_io_waits_summary_by_table +set object_type='TABLE', object_name='FOO', object_schema='BAR', +count_star=1, sum_timer_wait=2, min_timer_wait=3, +avg_timer_wait=4, max_timer_wait=5; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`table_io_waits_summary_by_table` +update performance_schema.table_io_waits_summary_by_table +set count_star=12; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`table_io_waits_summary_by_table` +update performance_schema.table_io_waits_summary_by_table +set count_star=12 where object_name like "FOO"; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`table_io_waits_summary_by_table` +delete from performance_schema.table_io_waits_summary_by_table +where count_star=1; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`table_io_waits_summary_by_table` +delete from performance_schema.table_io_waits_summary_by_table; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`table_io_waits_summary_by_table` +LOCK TABLES performance_schema.table_io_waits_summary_by_table READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`table_io_waits_summary_by_table` +UNLOCK TABLES; +LOCK TABLES performance_schema.table_io_waits_summary_by_table WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`table_io_waits_summary_by_table` +UNLOCK TABLES; +# +# MDEV-25325 column_comment for performance_schema tables +# +select column_name, column_comment +from information_schema.columns +where table_schema='performance_schema' and table_name='table_io_waits_summary_by_table'; +column_name column_comment +OBJECT_TYPE Since this table records waits by table, always set to TABLE. +OBJECT_SCHEMA Schema name. +OBJECT_NAME Table name. +COUNT_STAR Number of summarized events and the sum of the x_READ and x_WRITE columns. +SUM_TIMER_WAIT Total wait time of the summarized events that are timed. +MIN_TIMER_WAIT Minimum wait time of the summarized events that are timed. +AVG_TIMER_WAIT Average wait time of the summarized events that are timed. +MAX_TIMER_WAIT Maximum wait time of the summarized events that are timed. +COUNT_READ Number of all read operations, and the sum of the equivalent x_FETCH columns. +SUM_TIMER_READ Total wait time of all read operations that are timed. +MIN_TIMER_READ Minimum wait time of all read operations that are timed. +AVG_TIMER_READ Average wait time of all read operations that are timed. +MAX_TIMER_READ Maximum wait time of all read operations that are timed. +COUNT_WRITE Number of all write operations, and the sum of the equivalent x_INSERT, x_UPDATE and x_DELETE columns. +SUM_TIMER_WRITE Total wait time of all write operations that are timed. +MIN_TIMER_WRITE Minimum wait time of all write operations that are timed. +AVG_TIMER_WRITE Average wait time of all write operations that are timed. +MAX_TIMER_WRITE Maximum wait time of all write operations that are timed. +COUNT_FETCH Number of all fetch operations. +SUM_TIMER_FETCH Total wait time of all fetch operations that are timed. +MIN_TIMER_FETCH Minimum wait time of all fetch operations that are timed. +AVG_TIMER_FETCH Average wait time of all fetch operations that are timed. +MAX_TIMER_FETCH Maximum wait time of all fetch operations that are timed. +COUNT_INSERT Number of all insert operations. +SUM_TIMER_INSERT Total wait time of all insert operations that are timed. +MIN_TIMER_INSERT Minimum wait time of all insert operations that are timed. +AVG_TIMER_INSERT Average wait time of all insert operations that are timed. +MAX_TIMER_INSERT Maximum wait time of all insert operations that are timed. +COUNT_UPDATE Number of all update operations. +SUM_TIMER_UPDATE Total wait time of all update operations that are timed. +MIN_TIMER_UPDATE Minimum wait time of all update operations that are timed. +AVG_TIMER_UPDATE Average wait time of all update operations that are timed. +MAX_TIMER_UPDATE Maximum wait time of all update operations that are timed. +COUNT_DELETE Number of all delete operations. +SUM_TIMER_DELETE Total wait time of all delete operations that are timed. +MIN_TIMER_DELETE Minimum wait time of all delete operations that are timed. +AVG_TIMER_DELETE Average wait time of all delete operations that are timed. +MAX_TIMER_DELETE Maximum wait time of all delete operations that are timed. diff --git a/mysql-test/suite/perfschema/r/dml_tlws_by_table.result b/mysql-test/suite/perfschema/r/dml_tlws_by_table.result new file mode 100644 index 00000000..6d130abf --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_tlws_by_table.result @@ -0,0 +1,106 @@ +select * from performance_schema.table_lock_waits_summary_by_table +limit 1; +select * from performance_schema.table_lock_waits_summary_by_table +where object_name='FOO'; +insert into performance_schema.table_lock_waits_summary_by_table +set object_type='TABLE', object_name='FOO', object_schema='BAR', +count_star=1, sum_timer_wait=2, min_timer_wait=3, +avg_timer_wait=4, max_timer_wait=5; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`table_lock_waits_summary_by_table` +update performance_schema.table_lock_waits_summary_by_table +set count_star=12; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`table_lock_waits_summary_by_table` +update performance_schema.table_lock_waits_summary_by_table +set count_star=12 where object_name like "FOO"; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`table_lock_waits_summary_by_table` +delete from performance_schema.table_lock_waits_summary_by_table +where count_star=1; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`table_lock_waits_summary_by_table` +delete from performance_schema.table_lock_waits_summary_by_table; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`table_lock_waits_summary_by_table` +LOCK TABLES performance_schema.table_lock_waits_summary_by_table READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`table_lock_waits_summary_by_table` +UNLOCK TABLES; +LOCK TABLES performance_schema.table_lock_waits_summary_by_table WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`table_lock_waits_summary_by_table` +UNLOCK TABLES; +# +# MDEV-25325 column_comment for performance_schema tables +# +select column_name, column_comment +from information_schema.columns +where table_schema='performance_schema' and table_name='table_lock_waits_summary_by_table'; +column_name column_comment +OBJECT_TYPE Since this table records waits by table, always set to TABLE. +OBJECT_SCHEMA Schema name. +OBJECT_NAME Table name. +COUNT_STAR Number of summarized events and the sum of the x_READ and x_WRITE columns. +SUM_TIMER_WAIT Total wait time of the summarized events that are timed. +MIN_TIMER_WAIT Minimum wait time of the summarized events that are timed. +AVG_TIMER_WAIT Average wait time of the summarized events that are timed. +MAX_TIMER_WAIT Maximum wait time of the summarized events that are timed. +COUNT_READ Number of all read operations, and the sum of the equivalent x_READ_NORMAL, x_READ_WITH_SHARED_LOCKS, x_READ_HIGH_PRIORITY and x_READ_NO_INSERT columns. +SUM_TIMER_READ Total wait time of all read operations that are timed. +MIN_TIMER_READ Minimum wait time of all read operations that are timed. +AVG_TIMER_READ Average wait time of all read operations that are timed. +MAX_TIMER_READ Maximum wait time of all read operations that are timed. +COUNT_WRITE Number of all write operations, and the sum of the equivalent x_WRITE_ALLOW_WRITE, x_WRITE_CONCURRENT_INSERT, x_WRITE_DELAYED, x_WRITE_LOW_PRIORITY and x_WRITE_NORMAL columns. +SUM_TIMER_WRITE Total wait time of all write operations that are timed. +MIN_TIMER_WRITE Minimum wait time of all write operations that are timed. +AVG_TIMER_WRITE Average wait time of all write operations that are timed. +MAX_TIMER_WRITE Maximum wait time of all write operations that are timed. +COUNT_READ_NORMAL Number of all internal read normal locks. +SUM_TIMER_READ_NORMAL Total wait time of all internal read normal locks that are timed. +MIN_TIMER_READ_NORMAL Minimum wait time of all internal read normal locks that are timed. +AVG_TIMER_READ_NORMAL Average wait time of all internal read normal locks that are timed. +MAX_TIMER_READ_NORMAL Maximum wait time of all internal read normal locks that are timed. +COUNT_READ_WITH_SHARED_LOCKS Number of all internal read with shared locks. +SUM_TIMER_READ_WITH_SHARED_LOCKS Total wait time of all internal read with shared locks that are timed. +MIN_TIMER_READ_WITH_SHARED_LOCKS Minimum wait time of all internal read with shared locks that are timed. +AVG_TIMER_READ_WITH_SHARED_LOCKS Average wait time of all internal read with shared locks that are timed. +MAX_TIMER_READ_WITH_SHARED_LOCKS Maximum wait time of all internal read with shared locks that are timed. +COUNT_READ_HIGH_PRIORITY Number of all internal read high priority locks. +SUM_TIMER_READ_HIGH_PRIORITY Total wait time of all internal read high priority locks that are timed. +MIN_TIMER_READ_HIGH_PRIORITY Minimum wait time of all internal read high priority locks that are timed. +AVG_TIMER_READ_HIGH_PRIORITY Average wait time of all internal read high priority locks that are timed. +MAX_TIMER_READ_HIGH_PRIORITY Maximum wait time of all internal read high priority locks that are timed. +COUNT_READ_NO_INSERT Number of all internal read no insert locks. +SUM_TIMER_READ_NO_INSERT Total wait time of all internal read no insert locks that are timed. +MIN_TIMER_READ_NO_INSERT Minimum wait time of all internal read no insert locks that are timed. +AVG_TIMER_READ_NO_INSERT Average wait time of all internal read no insert locks that are timed. +MAX_TIMER_READ_NO_INSERT Maximum wait time of all internal read no insert locks that are timed. +COUNT_READ_EXTERNAL Number of all external read locks. +SUM_TIMER_READ_EXTERNAL Total wait time of all external read locks that are timed. +MIN_TIMER_READ_EXTERNAL Minimum wait time of all external read locks that are timed. +AVG_TIMER_READ_EXTERNAL Average wait time of all external read locks that are timed. +MAX_TIMER_READ_EXTERNAL Maximum wait time of all external read locks that are timed. +COUNT_WRITE_ALLOW_WRITE Number of all internal read normal locks. +SUM_TIMER_WRITE_ALLOW_WRITE Total wait time of all internal write allow write locks that are timed. +MIN_TIMER_WRITE_ALLOW_WRITE Minimum wait time of all internal write allow write locks that are timed. +AVG_TIMER_WRITE_ALLOW_WRITE Average wait time of all internal write allow write locks that are timed. +MAX_TIMER_WRITE_ALLOW_WRITE Maximum wait time of all internal write allow write locks that are timed. +COUNT_WRITE_CONCURRENT_INSERT Number of all internal concurrent insert write locks. +SUM_TIMER_WRITE_CONCURRENT_INSERT Total wait time of all internal concurrent insert write locks that are timed. +MIN_TIMER_WRITE_CONCURRENT_INSERT Minimum wait time of all internal concurrent insert write locks that are timed. +AVG_TIMER_WRITE_CONCURRENT_INSERT Average wait time of all internal concurrent insert write locks that are timed. +MAX_TIMER_WRITE_CONCURRENT_INSERT Maximum wait time of all internal concurrent insert write locks that are timed. +COUNT_WRITE_DELAYED Number of all internal write delayed locks. +SUM_TIMER_WRITE_DELAYED Total wait time of all internal write delayed locks that are timed. +MIN_TIMER_WRITE_DELAYED Minimum wait time of all internal write delayed locks that are timed. +AVG_TIMER_WRITE_DELAYED Average wait time of all internal write delayed locks that are timed. +MAX_TIMER_WRITE_DELAYED Maximum wait time of all internal write delayed locks that are timed. +COUNT_WRITE_LOW_PRIORITY Number of all internal write low priority locks. +SUM_TIMER_WRITE_LOW_PRIORITY Total wait time of all internal write low priority locks that are timed. +MIN_TIMER_WRITE_LOW_PRIORITY Minimum wait time of all internal write low priority locks that are timed. +AVG_TIMER_WRITE_LOW_PRIORITY Average wait time of all internal write low priority locks that are timed. +MAX_TIMER_WRITE_LOW_PRIORITY Maximum wait time of all internal write low priority locks that are timed. +COUNT_WRITE_NORMAL Number of all internal write normal locks. +SUM_TIMER_WRITE_NORMAL Total wait time of all internal write normal locks that are timed. +MIN_TIMER_WRITE_NORMAL Minimum wait time of all internal write normal locks that are timed. +AVG_TIMER_WRITE_NORMAL Average wait time of all internal write normal locks that are timed. +MAX_TIMER_WRITE_NORMAL Maximum wait time of all internal write normal locks that are timed. +COUNT_WRITE_EXTERNAL Number of all external write locks. +SUM_TIMER_WRITE_EXTERNAL Total wait time of all external write locks that are timed. +MIN_TIMER_WRITE_EXTERNAL Minimum wait time of all external write locks that are timed. +AVG_TIMER_WRITE_EXTERNAL Average wait time of all external write locks that are timed. +MAX_TIMER_WRITE_EXTERNAL Maximum wait time of all external write locks that are timed. diff --git a/mysql-test/suite/perfschema/r/dml_users.result b/mysql-test/suite/perfschema/r/dml_users.result new file mode 100644 index 00000000..53b220c7 --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_users.result @@ -0,0 +1,35 @@ +select * from performance_schema.users +limit 1; +select * from performance_schema.users +where user='FOO'; +insert into performance_schema.users +set user='FOO', +current_connections=1, total_connections=2; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`users` +update performance_schema.users +set current_connections=12; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`users` +update performance_schema.users +set current_connections=12 where user like "FOO"; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`users` +delete from performance_schema.users +where total_connections=1; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`users` +delete from performance_schema.users; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`users` +LOCK TABLES performance_schema.users READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`users` +UNLOCK TABLES; +LOCK TABLES performance_schema.users WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`users` +UNLOCK TABLES; +# +# MDEV-25325 column_comment for performance_schema tables +# +select column_name, column_comment +from information_schema.columns +where table_schema='performance_schema' and table_name='users'; +column_name column_comment +USER The connection's client user name for the connection, or NULL if an internal thread. +CURRENT_CONNECTIONS Current connections for the user. +TOTAL_CONNECTIONS Total connections for the user. diff --git a/mysql-test/suite/perfschema/r/dml_uvar_by_thread.result b/mysql-test/suite/perfschema/r/dml_uvar_by_thread.result new file mode 100644 index 00000000..7c9a7a3d --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_uvar_by_thread.result @@ -0,0 +1,30 @@ +select * from performance_schema.user_variables_by_thread +where variable_name like 'foo%' limit 1; +select * from performance_schema.user_variables_by_thread +where variable_name='FOO'; +insert into performance_schema.user_variables_by_thread +set thread_id=12, variable_name='foo', variable_value='bar'; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`user_variables_by_thread` +update performance_schema.user_variables_by_thread +set thread_id=12; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`user_variables_by_thread` +update performance_schema.user_variables_by_thread +set thread_id=12 where variable_name like "FOO"; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table `performance_schema`.`user_variables_by_thread` +delete from performance_schema.user_variables_by_thread +where thread_id=1; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`user_variables_by_thread` +delete from performance_schema.user_variables_by_thread; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`user_variables_by_thread` +LOCK TABLES performance_schema.user_variables_by_thread READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`user_variables_by_thread` +UNLOCK TABLES; +LOCK TABLES performance_schema.user_variables_by_thread WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`user_variables_by_thread` +UNLOCK TABLES; +CREATE TRIGGER test_uvar_trigger +AFTER INSERT ON performance_schema.user_variables_by_thread +FOR EACH ROW BEGIN +set @a='OK'; +END| +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' diff --git a/mysql-test/suite/perfschema/r/dml_variables_by_thread.result b/mysql-test/suite/perfschema/r/dml_variables_by_thread.result new file mode 100644 index 00000000..b98907b3 --- /dev/null +++ b/mysql-test/suite/perfschema/r/dml_variables_by_thread.result @@ -0,0 +1,24 @@ +select * from performance_schema.variables_by_thread +where variable_name like 'autocommit%' limit 1; +select * from performance_schema.variables_by_thread +where variable_name='FOO'; +insert into performance_schema.variables_by_thread +set thread_id=1, variable_name='FOO', variable_value='BAR'; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table 'variables_by_thread' +update performance_schema.variables_by_thread +set variable_name='FOO', variable_value='BAR'; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'variables_by_thread' +update performance_schema.variables_by_thread +set variable_name='FOO' where thread_id=0; +ERROR 42000: UPDATE command denied to user 'root'@'localhost' for table 'variables_by_thread' +delete from performance_schema.variables_by_thread +where thread_id=1; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'variables_by_thread' +delete from performance_schema.variables_by_thread; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table 'variables_by_thread' +LOCK TABLES performance_schema.variables_by_thread READ; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'variables_by_thread' +UNLOCK TABLES; +LOCK TABLES performance_schema.variables_by_thread WRITE; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'variables_by_thread' +UNLOCK TABLES; diff --git a/mysql-test/suite/perfschema/r/event_aggregate.result b/mysql-test/suite/perfschema/r/event_aggregate.result new file mode 100644 index 00000000..805378f5 --- /dev/null +++ b/mysql-test/suite/perfschema/r/event_aggregate.result @@ -0,0 +1,6911 @@ +"================== Step 1 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 0 +localhost stage/sql/closing tables 0 +localhost stage/sql/init 0 +localhost stage/sql/Opening tables 0 +localhost stage/sql/starting 0 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 0 +localhost statement/sql/insert 0 +localhost statement/sql/select 0 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 0 +execute dump_transactions_global; +event_name count_star +transaction 0 +execute dump_transactions_history; +event_name count(event_name) +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 1 +connect con1, localhost, user1, ,test; +connection default; +"================== Step 2 ==================" +call dump_thread(); +username event_name count_star +user1 wait/io/file/sql/query_log 1 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 1 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 1 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 1 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 1 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 1 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 0 +user1 localhost stage/sql/closing tables 0 +user1 localhost stage/sql/init 0 +user1 localhost stage/sql/Opening tables 0 +user1 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 0 +user1 stage/sql/closing tables 0 +user1 stage/sql/init 0 +user1 stage/sql/Opening tables 0 +user1 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 0 +localhost stage/sql/closing tables 0 +localhost stage/sql/init 0 +localhost stage/sql/Opening tables 0 +localhost stage/sql/starting 0 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 0 +user1 localhost statement/sp/freturn 0 +user1 localhost statement/sql/insert 0 +user1 localhost statement/sql/select 0 +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 0 +user1 statement/sp/freturn 0 +user1 statement/sql/insert 0 +user1 statement/sql/select 0 +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 0 +localhost statement/sql/insert 0 +localhost statement/sql/select 0 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 0 +execute dump_transactions_user; +user event_name count_star +user1 transaction 0 +execute dump_transactions_host; +host event_name count_star +localhost transaction 0 +execute dump_transactions_global; +event_name count_star +transaction 0 +execute dump_transactions_history; +event_name count(event_name) +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 2 2 +connection con1; +select uuid_short() <> 1; +uuid_short() <> 1 +1 +select uuid_short() <> 1; +uuid_short() <> 1 +1 +start transaction; +insert into test.t1 values ("marker"); +commit; +select test.f(10,20); +test.f(10,20) +30 +connection default; +"================== Step 3 ==================" +call dump_thread(); +username event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 7 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 7 +localhost wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 7 +wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 7 +wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 4 +user1 localhost stage/sql/closing tables 11 +user1 localhost stage/sql/init 3 +user1 localhost stage/sql/Opening tables 7 +user1 localhost stage/sql/starting 6 +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 6 +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 4 +localhost stage/sql/closing tables 11 +localhost stage/sql/init 3 +localhost stage/sql/Opening tables 7 +localhost stage/sql/starting 6 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 4 +stage/sql/closing tables 11 +stage/sql/init 3 +stage/sql/Opening tables 7 +stage/sql/starting 6 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 4 +stage/sql/closing tables 11 +stage/sql/init 3 +stage/sql/Opening tables 7 +stage/sql/starting 6 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 0 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 0 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 1 +localhost statement/sql/insert 1 +localhost statement/sql/select 3 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 1 +statement/sql/insert 1 +statement/sql/select 3 +execute dump_statements_history; +event_name count(event_name) +statement/sp/freturn 1 +statement/sql/insert 1 +statement/sql/select 3 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +execute dump_transactions_host; +host event_name count_star +localhost transaction 2 +execute dump_transactions_global; +event_name count_star +transaction 2 +execute dump_transactions_history; +event_name count(event_name) +transaction 2 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 2 2 +connect con2, localhost, user2, ,test; +connection default; +"================== Step 4 ==================" +call dump_thread(); +username event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user2 wait/io/file/sql/query_log 1 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 7 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user2 localhost wait/io/file/sql/query_log 1 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +user2 wait/io/file/sql/query_log 1 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 8 +localhost wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 8 +wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 8 +wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 4 +user1 localhost stage/sql/closing tables 11 +user1 localhost stage/sql/init 3 +user1 localhost stage/sql/Opening tables 7 +user1 localhost stage/sql/starting 6 +user2 localhost stage/sql/checking permissions 0 +user2 localhost stage/sql/closing tables 0 +user2 localhost stage/sql/init 0 +user2 localhost stage/sql/Opening tables 0 +user2 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 6 +user2 stage/sql/checking permissions 0 +user2 stage/sql/closing tables 0 +user2 stage/sql/init 0 +user2 stage/sql/Opening tables 0 +user2 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 4 +localhost stage/sql/closing tables 11 +localhost stage/sql/init 3 +localhost stage/sql/Opening tables 7 +localhost stage/sql/starting 6 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 4 +stage/sql/closing tables 11 +stage/sql/init 3 +stage/sql/Opening tables 7 +stage/sql/starting 6 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 4 +stage/sql/closing tables 11 +stage/sql/init 3 +stage/sql/Opening tables 7 +stage/sql/starting 6 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 0 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 0 +user2 localhost statement/sp/freturn 0 +user2 localhost statement/sql/insert 0 +user2 localhost statement/sql/select 0 +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 0 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 0 +user2 statement/sp/freturn 0 +user2 statement/sql/insert 0 +user2 statement/sql/select 0 +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 1 +localhost statement/sql/insert 1 +localhost statement/sql/select 3 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 1 +statement/sql/insert 1 +statement/sql/select 3 +execute dump_statements_history; +event_name count(event_name) +statement/sp/freturn 1 +statement/sql/insert 1 +statement/sql/select 3 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 0 +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 0 +execute dump_transactions_host; +host event_name count_star +localhost transaction 2 +execute dump_transactions_global; +event_name count_star +transaction 2 +execute dump_transactions_history; +event_name count(event_name) +transaction 2 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +user2 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +user2 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 3 3 +connection con2; +select uuid_short() <> 1; +uuid_short() <> 1 +1 +select uuid_short() <> 1; +uuid_short() <> 1 +1 +start transaction; +insert into test.t1 values ("marker"); +commit; +select test.f(10,20); +test.f(10,20) +30 +connection default; +"================== Step 5 ==================" +call dump_thread(); +username event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 7 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user2 localhost wait/io/file/sql/query_log 7 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 14 +localhost wait/synch/rwlock/sql/LOCK_grant 2 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 14 +wait/synch/rwlock/sql/LOCK_grant 2 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 14 +wait/synch/rwlock/sql/LOCK_grant 2 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 4 +user1 localhost stage/sql/closing tables 11 +user1 localhost stage/sql/init 3 +user1 localhost stage/sql/Opening tables 7 +user1 localhost stage/sql/starting 6 +user2 localhost stage/sql/checking permissions 4 +user2 localhost stage/sql/closing tables 10 +user2 localhost stage/sql/init 3 +user2 localhost stage/sql/Opening tables 6 +user2 localhost stage/sql/starting 6 +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 6 +user2 stage/sql/checking permissions 4 +user2 stage/sql/closing tables 10 +user2 stage/sql/init 3 +user2 stage/sql/Opening tables 6 +user2 stage/sql/starting 6 +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 8 +localhost stage/sql/closing tables 21 +localhost stage/sql/init 6 +localhost stage/sql/Opening tables 13 +localhost stage/sql/starting 12 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 8 +stage/sql/closing tables 21 +stage/sql/init 6 +stage/sql/Opening tables 13 +stage/sql/starting 12 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 8 +stage/sql/closing tables 21 +stage/sql/init 6 +stage/sql/Opening tables 13 +stage/sql/starting 12 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 0 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 0 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 0 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 0 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 2 +localhost statement/sql/insert 2 +localhost statement/sql/select 6 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 2 +statement/sql/insert 2 +statement/sql/select 6 +execute dump_statements_history; +event_name count(event_name) +statement/sp/freturn 2 +statement/sql/insert 2 +statement/sql/select 6 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +execute dump_transactions_host; +host event_name count_star +localhost transaction 4 +execute dump_transactions_global; +event_name count_star +transaction 4 +execute dump_transactions_history; +event_name count(event_name) +transaction 4 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +user2 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +user2 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 3 3 +connect con3, localhost, user3, ,test; +connection default; +"================== Step 6 ==================" +call dump_thread(); +username event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user3 wait/io/file/sql/query_log 1 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 7 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user2 localhost wait/io/file/sql/query_log 7 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user3 localhost wait/io/file/sql/query_log 1 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +user3 wait/io/file/sql/query_log 1 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 15 +localhost wait/synch/rwlock/sql/LOCK_grant 2 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 15 +wait/synch/rwlock/sql/LOCK_grant 2 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 15 +wait/synch/rwlock/sql/LOCK_grant 2 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 4 +user1 localhost stage/sql/closing tables 11 +user1 localhost stage/sql/init 3 +user1 localhost stage/sql/Opening tables 7 +user1 localhost stage/sql/starting 6 +user2 localhost stage/sql/checking permissions 4 +user2 localhost stage/sql/closing tables 10 +user2 localhost stage/sql/init 3 +user2 localhost stage/sql/Opening tables 6 +user2 localhost stage/sql/starting 6 +user3 localhost stage/sql/checking permissions 0 +user3 localhost stage/sql/closing tables 0 +user3 localhost stage/sql/init 0 +user3 localhost stage/sql/Opening tables 0 +user3 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 6 +user2 stage/sql/checking permissions 4 +user2 stage/sql/closing tables 10 +user2 stage/sql/init 3 +user2 stage/sql/Opening tables 6 +user2 stage/sql/starting 6 +user3 stage/sql/checking permissions 0 +user3 stage/sql/closing tables 0 +user3 stage/sql/init 0 +user3 stage/sql/Opening tables 0 +user3 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 8 +localhost stage/sql/closing tables 21 +localhost stage/sql/init 6 +localhost stage/sql/Opening tables 13 +localhost stage/sql/starting 12 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 8 +stage/sql/closing tables 21 +stage/sql/init 6 +stage/sql/Opening tables 13 +stage/sql/starting 12 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 8 +stage/sql/closing tables 21 +stage/sql/init 6 +stage/sql/Opening tables 13 +stage/sql/starting 12 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 0 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 0 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 0 +user3 localhost statement/sp/freturn 0 +user3 localhost statement/sql/insert 0 +user3 localhost statement/sql/select 0 +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 0 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 0 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 0 +user3 statement/sp/freturn 0 +user3 statement/sql/insert 0 +user3 statement/sql/select 0 +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 2 +localhost statement/sql/insert 2 +localhost statement/sql/select 6 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 2 +statement/sql/insert 2 +statement/sql/select 6 +execute dump_statements_history; +event_name count(event_name) +statement/sp/freturn 2 +statement/sql/insert 2 +statement/sql/select 6 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 0 +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 0 +execute dump_transactions_host; +host event_name count_star +localhost transaction 4 +execute dump_transactions_global; +event_name count_star +transaction 4 +execute dump_transactions_history; +event_name count(event_name) +transaction 4 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +user2 localhost 1 1 +user3 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +user2 1 1 +user3 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 4 4 +connection con3; +select uuid_short() <> 1; +uuid_short() <> 1 +1 +select uuid_short() <> 1; +uuid_short() <> 1 +1 +start transaction; +insert into test.t1 values ("marker"); +commit; +select test.f(10,20); +test.f(10,20) +30 +connection default; +"================== Step 7 ==================" +call dump_thread(); +username event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user3 wait/io/file/sql/query_log 7 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 7 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user2 localhost wait/io/file/sql/query_log 7 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user3 localhost wait/io/file/sql/query_log 7 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +user3 wait/io/file/sql/query_log 7 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 21 +localhost wait/synch/rwlock/sql/LOCK_grant 3 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 21 +wait/synch/rwlock/sql/LOCK_grant 3 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 21 +wait/synch/rwlock/sql/LOCK_grant 3 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 4 +user1 localhost stage/sql/closing tables 11 +user1 localhost stage/sql/init 3 +user1 localhost stage/sql/Opening tables 7 +user1 localhost stage/sql/starting 6 +user2 localhost stage/sql/checking permissions 4 +user2 localhost stage/sql/closing tables 10 +user2 localhost stage/sql/init 3 +user2 localhost stage/sql/Opening tables 6 +user2 localhost stage/sql/starting 6 +user3 localhost stage/sql/checking permissions 4 +user3 localhost stage/sql/closing tables 10 +user3 localhost stage/sql/init 3 +user3 localhost stage/sql/Opening tables 6 +user3 localhost stage/sql/starting 6 +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 6 +user2 stage/sql/checking permissions 4 +user2 stage/sql/closing tables 10 +user2 stage/sql/init 3 +user2 stage/sql/Opening tables 6 +user2 stage/sql/starting 6 +user3 stage/sql/checking permissions 4 +user3 stage/sql/closing tables 10 +user3 stage/sql/init 3 +user3 stage/sql/Opening tables 6 +user3 stage/sql/starting 6 +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 12 +localhost stage/sql/closing tables 31 +localhost stage/sql/init 9 +localhost stage/sql/Opening tables 19 +localhost stage/sql/starting 18 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 12 +stage/sql/closing tables 31 +stage/sql/init 9 +stage/sql/Opening tables 19 +stage/sql/starting 18 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 12 +stage/sql/closing tables 31 +stage/sql/init 9 +stage/sql/Opening tables 19 +stage/sql/starting 18 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 0 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 0 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 0 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 0 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 0 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 0 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 3 +localhost statement/sql/insert 3 +localhost statement/sql/select 9 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 3 +statement/sql/insert 3 +statement/sql/select 9 +execute dump_statements_history; +event_name count(event_name) +statement/sp/freturn 3 +statement/sql/insert 3 +statement/sql/select 9 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +execute dump_transactions_host; +host event_name count_star +localhost transaction 6 +execute dump_transactions_global; +event_name count_star +transaction 6 +execute dump_transactions_history; +event_name count(event_name) +transaction 6 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +user2 localhost 1 1 +user3 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +user2 1 1 +user3 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 4 4 +connect con4, localhost, user4, ,test; +connection default; +"================== Step 8 ==================" +call dump_thread(); +username event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user3 wait/io/file/sql/query_log 7 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user4 wait/io/file/sql/query_log 1 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 7 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user2 localhost wait/io/file/sql/query_log 7 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user3 localhost wait/io/file/sql/query_log 7 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user4 localhost wait/io/file/sql/query_log 1 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +user3 wait/io/file/sql/query_log 7 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +user4 wait/io/file/sql/query_log 1 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 22 +localhost wait/synch/rwlock/sql/LOCK_grant 3 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 22 +wait/synch/rwlock/sql/LOCK_grant 3 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 22 +wait/synch/rwlock/sql/LOCK_grant 3 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 4 +user1 localhost stage/sql/closing tables 11 +user1 localhost stage/sql/init 3 +user1 localhost stage/sql/Opening tables 7 +user1 localhost stage/sql/starting 6 +user2 localhost stage/sql/checking permissions 4 +user2 localhost stage/sql/closing tables 10 +user2 localhost stage/sql/init 3 +user2 localhost stage/sql/Opening tables 6 +user2 localhost stage/sql/starting 6 +user3 localhost stage/sql/checking permissions 4 +user3 localhost stage/sql/closing tables 10 +user3 localhost stage/sql/init 3 +user3 localhost stage/sql/Opening tables 6 +user3 localhost stage/sql/starting 6 +user4 localhost stage/sql/checking permissions 0 +user4 localhost stage/sql/closing tables 0 +user4 localhost stage/sql/init 0 +user4 localhost stage/sql/Opening tables 0 +user4 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 6 +user2 stage/sql/checking permissions 4 +user2 stage/sql/closing tables 10 +user2 stage/sql/init 3 +user2 stage/sql/Opening tables 6 +user2 stage/sql/starting 6 +user3 stage/sql/checking permissions 4 +user3 stage/sql/closing tables 10 +user3 stage/sql/init 3 +user3 stage/sql/Opening tables 6 +user3 stage/sql/starting 6 +user4 stage/sql/checking permissions 0 +user4 stage/sql/closing tables 0 +user4 stage/sql/init 0 +user4 stage/sql/Opening tables 0 +user4 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 12 +localhost stage/sql/closing tables 31 +localhost stage/sql/init 9 +localhost stage/sql/Opening tables 19 +localhost stage/sql/starting 18 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 12 +stage/sql/closing tables 31 +stage/sql/init 9 +stage/sql/Opening tables 19 +stage/sql/starting 18 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 12 +stage/sql/closing tables 31 +stage/sql/init 9 +stage/sql/Opening tables 19 +stage/sql/starting 18 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 0 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 0 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 0 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 0 +user4 localhost statement/sp/freturn 0 +user4 localhost statement/sql/insert 0 +user4 localhost statement/sql/select 0 +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 0 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 0 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 0 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 0 +user4 statement/sp/freturn 0 +user4 statement/sql/insert 0 +user4 statement/sql/select 0 +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 3 +localhost statement/sql/insert 3 +localhost statement/sql/select 9 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 3 +statement/sql/insert 3 +statement/sql/select 9 +execute dump_statements_history; +event_name count(event_name) +statement/sp/freturn 3 +statement/sql/insert 3 +statement/sql/select 9 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 0 +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 0 +execute dump_transactions_host; +host event_name count_star +localhost transaction 6 +execute dump_transactions_global; +event_name count_star +transaction 6 +execute dump_transactions_history; +event_name count(event_name) +transaction 6 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +user2 localhost 1 1 +user3 localhost 1 1 +user4 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +user2 1 1 +user3 1 1 +user4 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 5 5 +connection con4; +select uuid_short() <> 1; +uuid_short() <> 1 +1 +select uuid_short() <> 1; +uuid_short() <> 1 +1 +start transaction; +insert into test.t1 values ("marker"); +commit; +select test.f(10,20); +test.f(10,20) +30 +connection default; +"================== Step 9 ==================" +call dump_thread(); +username event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user3 wait/io/file/sql/query_log 7 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user4 wait/io/file/sql/query_log 7 +user4 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 7 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user2 localhost wait/io/file/sql/query_log 7 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user3 localhost wait/io/file/sql/query_log 7 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user4 localhost wait/io/file/sql/query_log 7 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +user3 wait/io/file/sql/query_log 7 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +user4 wait/io/file/sql/query_log 7 +user4 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 28 +localhost wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 28 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 28 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 4 +user1 localhost stage/sql/closing tables 11 +user1 localhost stage/sql/init 3 +user1 localhost stage/sql/Opening tables 7 +user1 localhost stage/sql/starting 6 +user2 localhost stage/sql/checking permissions 4 +user2 localhost stage/sql/closing tables 10 +user2 localhost stage/sql/init 3 +user2 localhost stage/sql/Opening tables 6 +user2 localhost stage/sql/starting 6 +user3 localhost stage/sql/checking permissions 4 +user3 localhost stage/sql/closing tables 10 +user3 localhost stage/sql/init 3 +user3 localhost stage/sql/Opening tables 6 +user3 localhost stage/sql/starting 6 +user4 localhost stage/sql/checking permissions 4 +user4 localhost stage/sql/closing tables 10 +user4 localhost stage/sql/init 3 +user4 localhost stage/sql/Opening tables 6 +user4 localhost stage/sql/starting 6 +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 6 +user2 stage/sql/checking permissions 4 +user2 stage/sql/closing tables 10 +user2 stage/sql/init 3 +user2 stage/sql/Opening tables 6 +user2 stage/sql/starting 6 +user3 stage/sql/checking permissions 4 +user3 stage/sql/closing tables 10 +user3 stage/sql/init 3 +user3 stage/sql/Opening tables 6 +user3 stage/sql/starting 6 +user4 stage/sql/checking permissions 4 +user4 stage/sql/closing tables 10 +user4 stage/sql/init 3 +user4 stage/sql/Opening tables 6 +user4 stage/sql/starting 6 +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 16 +localhost stage/sql/closing tables 41 +localhost stage/sql/init 12 +localhost stage/sql/Opening tables 25 +localhost stage/sql/starting 24 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 24 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 24 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 0 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 0 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 0 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 0 +user4 localhost statement/sp/freturn 1 +user4 localhost statement/sql/insert 1 +user4 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 0 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 0 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 0 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 0 +user4 statement/sp/freturn 1 +user4 statement/sql/insert 1 +user4 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +user2 localhost 1 1 +user3 localhost 1 1 +user4 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +user2 1 1 +user3 1 1 +user4 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 5 5 +disconnect con1; +connection default; +"================== Step 10 ==================" +call dump_thread(); +username status +user1 not found +username event_name count_star +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user3 wait/io/file/sql/query_log 7 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user4 wait/io/file/sql/query_log 7 +user4 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 8 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user2 localhost wait/io/file/sql/query_log 7 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user3 localhost wait/io/file/sql/query_log 7 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user4 localhost wait/io/file/sql/query_log 7 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 8 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +user3 wait/io/file/sql/query_log 7 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +user4 wait/io/file/sql/query_log 7 +user4 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 29 +localhost wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 29 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 29 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 4 +user1 localhost stage/sql/closing tables 11 +user1 localhost stage/sql/init 3 +user1 localhost stage/sql/Opening tables 7 +user1 localhost stage/sql/starting 7 +user2 localhost stage/sql/checking permissions 4 +user2 localhost stage/sql/closing tables 10 +user2 localhost stage/sql/init 3 +user2 localhost stage/sql/Opening tables 6 +user2 localhost stage/sql/starting 6 +user3 localhost stage/sql/checking permissions 4 +user3 localhost stage/sql/closing tables 10 +user3 localhost stage/sql/init 3 +user3 localhost stage/sql/Opening tables 6 +user3 localhost stage/sql/starting 6 +user4 localhost stage/sql/checking permissions 4 +user4 localhost stage/sql/closing tables 10 +user4 localhost stage/sql/init 3 +user4 localhost stage/sql/Opening tables 6 +user4 localhost stage/sql/starting 6 +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 7 +user2 stage/sql/checking permissions 4 +user2 stage/sql/closing tables 10 +user2 stage/sql/init 3 +user2 stage/sql/Opening tables 6 +user2 stage/sql/starting 6 +user3 stage/sql/checking permissions 4 +user3 stage/sql/closing tables 10 +user3 stage/sql/init 3 +user3 stage/sql/Opening tables 6 +user3 stage/sql/starting 6 +user4 stage/sql/checking permissions 4 +user4 stage/sql/closing tables 10 +user4 stage/sql/init 3 +user4 stage/sql/Opening tables 6 +user4 stage/sql/starting 6 +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 16 +localhost stage/sql/closing tables 41 +localhost stage/sql/init 12 +localhost stage/sql/Opening tables 25 +localhost stage/sql/starting 25 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 25 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 25 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 1 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 0 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 0 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 0 +user4 localhost statement/sp/freturn 1 +user4 localhost statement/sql/insert 1 +user4 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 1 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 0 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 0 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 0 +user4 statement/sp/freturn 1 +user4 statement/sql/insert 1 +user4 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 1 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 1 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 1 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 1 1 +user3 localhost 1 1 +user4 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 1 1 +user3 1 1 +user4 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 4 5 +disconnect con2; +connection default; +"================== Step 11 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username event_name count_star +user3 wait/io/file/sql/query_log 7 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user4 wait/io/file/sql/query_log 7 +user4 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 8 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user2 localhost wait/io/file/sql/query_log 8 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user3 localhost wait/io/file/sql/query_log 7 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user4 localhost wait/io/file/sql/query_log 7 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 8 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +user2 wait/io/file/sql/query_log 8 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +user3 wait/io/file/sql/query_log 7 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +user4 wait/io/file/sql/query_log 7 +user4 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 30 +localhost wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 30 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 30 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 4 +user1 localhost stage/sql/closing tables 11 +user1 localhost stage/sql/init 3 +user1 localhost stage/sql/Opening tables 7 +user1 localhost stage/sql/starting 7 +user2 localhost stage/sql/checking permissions 4 +user2 localhost stage/sql/closing tables 10 +user2 localhost stage/sql/init 3 +user2 localhost stage/sql/Opening tables 6 +user2 localhost stage/sql/starting 7 +user3 localhost stage/sql/checking permissions 4 +user3 localhost stage/sql/closing tables 10 +user3 localhost stage/sql/init 3 +user3 localhost stage/sql/Opening tables 6 +user3 localhost stage/sql/starting 6 +user4 localhost stage/sql/checking permissions 4 +user4 localhost stage/sql/closing tables 10 +user4 localhost stage/sql/init 3 +user4 localhost stage/sql/Opening tables 6 +user4 localhost stage/sql/starting 6 +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 7 +user2 stage/sql/checking permissions 4 +user2 stage/sql/closing tables 10 +user2 stage/sql/init 3 +user2 stage/sql/Opening tables 6 +user2 stage/sql/starting 7 +user3 stage/sql/checking permissions 4 +user3 stage/sql/closing tables 10 +user3 stage/sql/init 3 +user3 stage/sql/Opening tables 6 +user3 stage/sql/starting 6 +user4 stage/sql/checking permissions 4 +user4 stage/sql/closing tables 10 +user4 stage/sql/init 3 +user4 stage/sql/Opening tables 6 +user4 stage/sql/starting 6 +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 16 +localhost stage/sql/closing tables 41 +localhost stage/sql/init 12 +localhost stage/sql/Opening tables 25 +localhost stage/sql/starting 26 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 26 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 26 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 1 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 1 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 0 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 0 +user4 localhost statement/sp/freturn 1 +user4 localhost statement/sql/insert 1 +user4 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 1 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 1 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 0 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 0 +user4 statement/sp/freturn 1 +user4 statement/sql/insert 1 +user4 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 2 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 2 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 2 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 1 1 +user4 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 1 1 +user4 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 3 5 +disconnect con3; +connection default; +"================== Step 12 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username event_name count_star +user4 wait/io/file/sql/query_log 7 +user4 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 8 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user2 localhost wait/io/file/sql/query_log 8 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user3 localhost wait/io/file/sql/query_log 8 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user4 localhost wait/io/file/sql/query_log 7 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 8 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +user2 wait/io/file/sql/query_log 8 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +user3 wait/io/file/sql/query_log 8 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +user4 wait/io/file/sql/query_log 7 +user4 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 31 +localhost wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 31 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 31 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 4 +user1 localhost stage/sql/closing tables 11 +user1 localhost stage/sql/init 3 +user1 localhost stage/sql/Opening tables 7 +user1 localhost stage/sql/starting 7 +user2 localhost stage/sql/checking permissions 4 +user2 localhost stage/sql/closing tables 10 +user2 localhost stage/sql/init 3 +user2 localhost stage/sql/Opening tables 6 +user2 localhost stage/sql/starting 7 +user3 localhost stage/sql/checking permissions 4 +user3 localhost stage/sql/closing tables 10 +user3 localhost stage/sql/init 3 +user3 localhost stage/sql/Opening tables 6 +user3 localhost stage/sql/starting 7 +user4 localhost stage/sql/checking permissions 4 +user4 localhost stage/sql/closing tables 10 +user4 localhost stage/sql/init 3 +user4 localhost stage/sql/Opening tables 6 +user4 localhost stage/sql/starting 6 +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 7 +user2 stage/sql/checking permissions 4 +user2 stage/sql/closing tables 10 +user2 stage/sql/init 3 +user2 stage/sql/Opening tables 6 +user2 stage/sql/starting 7 +user3 stage/sql/checking permissions 4 +user3 stage/sql/closing tables 10 +user3 stage/sql/init 3 +user3 stage/sql/Opening tables 6 +user3 stage/sql/starting 7 +user4 stage/sql/checking permissions 4 +user4 stage/sql/closing tables 10 +user4 stage/sql/init 3 +user4 stage/sql/Opening tables 6 +user4 stage/sql/starting 6 +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 16 +localhost stage/sql/closing tables 41 +localhost stage/sql/init 12 +localhost stage/sql/Opening tables 25 +localhost stage/sql/starting 27 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 27 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 27 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 1 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 1 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 1 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 0 +user4 localhost statement/sp/freturn 1 +user4 localhost statement/sql/insert 1 +user4 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 1 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 1 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 1 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 0 +user4 statement/sp/freturn 1 +user4 statement/sql/insert 1 +user4 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 3 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 3 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 3 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 2 5 +disconnect con4; +connection default; +"================== Step 13 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 8 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user2 localhost wait/io/file/sql/query_log 8 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user3 localhost wait/io/file/sql/query_log 8 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user4 localhost wait/io/file/sql/query_log 8 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 8 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +user2 wait/io/file/sql/query_log 8 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +user3 wait/io/file/sql/query_log 8 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +user4 wait/io/file/sql/query_log 8 +user4 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 32 +localhost wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 4 +user1 localhost stage/sql/closing tables 11 +user1 localhost stage/sql/init 3 +user1 localhost stage/sql/Opening tables 7 +user1 localhost stage/sql/starting 7 +user2 localhost stage/sql/checking permissions 4 +user2 localhost stage/sql/closing tables 10 +user2 localhost stage/sql/init 3 +user2 localhost stage/sql/Opening tables 6 +user2 localhost stage/sql/starting 7 +user3 localhost stage/sql/checking permissions 4 +user3 localhost stage/sql/closing tables 10 +user3 localhost stage/sql/init 3 +user3 localhost stage/sql/Opening tables 6 +user3 localhost stage/sql/starting 7 +user4 localhost stage/sql/checking permissions 4 +user4 localhost stage/sql/closing tables 10 +user4 localhost stage/sql/init 3 +user4 localhost stage/sql/Opening tables 6 +user4 localhost stage/sql/starting 7 +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 7 +user2 stage/sql/checking permissions 4 +user2 stage/sql/closing tables 10 +user2 stage/sql/init 3 +user2 stage/sql/Opening tables 6 +user2 stage/sql/starting 7 +user3 stage/sql/checking permissions 4 +user3 stage/sql/closing tables 10 +user3 stage/sql/init 3 +user3 stage/sql/Opening tables 6 +user3 stage/sql/starting 7 +user4 stage/sql/checking permissions 4 +user4 stage/sql/closing tables 10 +user4 stage/sql/init 3 +user4 stage/sql/Opening tables 6 +user4 stage/sql/starting 7 +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 16 +localhost stage/sql/closing tables 41 +localhost stage/sql/init 12 +localhost stage/sql/Opening tables 25 +localhost stage/sql/starting 28 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 1 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 1 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 1 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 1 +user4 localhost statement/sp/freturn 1 +user4 localhost statement/sql/insert 1 +user4 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 1 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 1 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 1 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 1 +user4 statement/sp/freturn 1 +user4 statement/sql/insert 1 +user4 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 4 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +connection default; +truncate performance_schema.events_waits_summary_by_thread_by_event_name; +"================== WAITS_BY_THREAD truncated ==================" +"================== Step 14 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 8 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user2 localhost wait/io/file/sql/query_log 8 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user3 localhost wait/io/file/sql/query_log 8 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user4 localhost wait/io/file/sql/query_log 8 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 8 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +user2 wait/io/file/sql/query_log 8 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +user3 wait/io/file/sql/query_log 8 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +user4 wait/io/file/sql/query_log 8 +user4 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 32 +localhost wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 4 +user1 localhost stage/sql/closing tables 11 +user1 localhost stage/sql/init 3 +user1 localhost stage/sql/Opening tables 7 +user1 localhost stage/sql/starting 7 +user2 localhost stage/sql/checking permissions 4 +user2 localhost stage/sql/closing tables 10 +user2 localhost stage/sql/init 3 +user2 localhost stage/sql/Opening tables 6 +user2 localhost stage/sql/starting 7 +user3 localhost stage/sql/checking permissions 4 +user3 localhost stage/sql/closing tables 10 +user3 localhost stage/sql/init 3 +user3 localhost stage/sql/Opening tables 6 +user3 localhost stage/sql/starting 7 +user4 localhost stage/sql/checking permissions 4 +user4 localhost stage/sql/closing tables 10 +user4 localhost stage/sql/init 3 +user4 localhost stage/sql/Opening tables 6 +user4 localhost stage/sql/starting 7 +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 7 +user2 stage/sql/checking permissions 4 +user2 stage/sql/closing tables 10 +user2 stage/sql/init 3 +user2 stage/sql/Opening tables 6 +user2 stage/sql/starting 7 +user3 stage/sql/checking permissions 4 +user3 stage/sql/closing tables 10 +user3 stage/sql/init 3 +user3 stage/sql/Opening tables 6 +user3 stage/sql/starting 7 +user4 stage/sql/checking permissions 4 +user4 stage/sql/closing tables 10 +user4 stage/sql/init 3 +user4 stage/sql/Opening tables 6 +user4 stage/sql/starting 7 +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 16 +localhost stage/sql/closing tables 41 +localhost stage/sql/init 12 +localhost stage/sql/Opening tables 25 +localhost stage/sql/starting 28 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 1 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 1 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 1 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 1 +user4 localhost statement/sp/freturn 1 +user4 localhost statement/sql/insert 1 +user4 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 1 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 1 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 1 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 1 +user4 statement/sp/freturn 1 +user4 statement/sql/insert 1 +user4 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 4 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_waits_summary_by_account_by_event_name; +"================== WAITS_BY_ACCOUNT truncated ==================" +"================== Step 15 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 8 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +user2 wait/io/file/sql/query_log 8 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +user3 wait/io/file/sql/query_log 8 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +user4 wait/io/file/sql/query_log 8 +user4 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 32 +localhost wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 4 +user1 localhost stage/sql/closing tables 11 +user1 localhost stage/sql/init 3 +user1 localhost stage/sql/Opening tables 7 +user1 localhost stage/sql/starting 7 +user2 localhost stage/sql/checking permissions 4 +user2 localhost stage/sql/closing tables 10 +user2 localhost stage/sql/init 3 +user2 localhost stage/sql/Opening tables 6 +user2 localhost stage/sql/starting 7 +user3 localhost stage/sql/checking permissions 4 +user3 localhost stage/sql/closing tables 10 +user3 localhost stage/sql/init 3 +user3 localhost stage/sql/Opening tables 6 +user3 localhost stage/sql/starting 7 +user4 localhost stage/sql/checking permissions 4 +user4 localhost stage/sql/closing tables 10 +user4 localhost stage/sql/init 3 +user4 localhost stage/sql/Opening tables 6 +user4 localhost stage/sql/starting 7 +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 7 +user2 stage/sql/checking permissions 4 +user2 stage/sql/closing tables 10 +user2 stage/sql/init 3 +user2 stage/sql/Opening tables 6 +user2 stage/sql/starting 7 +user3 stage/sql/checking permissions 4 +user3 stage/sql/closing tables 10 +user3 stage/sql/init 3 +user3 stage/sql/Opening tables 6 +user3 stage/sql/starting 7 +user4 stage/sql/checking permissions 4 +user4 stage/sql/closing tables 10 +user4 stage/sql/init 3 +user4 stage/sql/Opening tables 6 +user4 stage/sql/starting 7 +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 16 +localhost stage/sql/closing tables 41 +localhost stage/sql/init 12 +localhost stage/sql/Opening tables 25 +localhost stage/sql/starting 28 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 1 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 1 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 1 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 1 +user4 localhost statement/sp/freturn 1 +user4 localhost statement/sql/insert 1 +user4 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 1 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 1 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 1 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 1 +user4 statement/sp/freturn 1 +user4 statement/sql/insert 1 +user4 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 4 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_waits_summary_by_user_by_event_name; +"================== WAITS_BY_USER truncated ==================" +"================== Step 16 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 32 +localhost wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 4 +user1 localhost stage/sql/closing tables 11 +user1 localhost stage/sql/init 3 +user1 localhost stage/sql/Opening tables 7 +user1 localhost stage/sql/starting 7 +user2 localhost stage/sql/checking permissions 4 +user2 localhost stage/sql/closing tables 10 +user2 localhost stage/sql/init 3 +user2 localhost stage/sql/Opening tables 6 +user2 localhost stage/sql/starting 7 +user3 localhost stage/sql/checking permissions 4 +user3 localhost stage/sql/closing tables 10 +user3 localhost stage/sql/init 3 +user3 localhost stage/sql/Opening tables 6 +user3 localhost stage/sql/starting 7 +user4 localhost stage/sql/checking permissions 4 +user4 localhost stage/sql/closing tables 10 +user4 localhost stage/sql/init 3 +user4 localhost stage/sql/Opening tables 6 +user4 localhost stage/sql/starting 7 +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 7 +user2 stage/sql/checking permissions 4 +user2 stage/sql/closing tables 10 +user2 stage/sql/init 3 +user2 stage/sql/Opening tables 6 +user2 stage/sql/starting 7 +user3 stage/sql/checking permissions 4 +user3 stage/sql/closing tables 10 +user3 stage/sql/init 3 +user3 stage/sql/Opening tables 6 +user3 stage/sql/starting 7 +user4 stage/sql/checking permissions 4 +user4 stage/sql/closing tables 10 +user4 stage/sql/init 3 +user4 stage/sql/Opening tables 6 +user4 stage/sql/starting 7 +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 16 +localhost stage/sql/closing tables 41 +localhost stage/sql/init 12 +localhost stage/sql/Opening tables 25 +localhost stage/sql/starting 28 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 1 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 1 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 1 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 1 +user4 localhost statement/sp/freturn 1 +user4 localhost statement/sql/insert 1 +user4 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 1 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 1 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 1 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 1 +user4 statement/sp/freturn 1 +user4 statement/sql/insert 1 +user4 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 4 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_waits_summary_by_host_by_event_name; +"================== WAITS_BY_HOST truncated ==================" +"================== Step 17 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 4 +user1 localhost stage/sql/closing tables 11 +user1 localhost stage/sql/init 3 +user1 localhost stage/sql/Opening tables 7 +user1 localhost stage/sql/starting 7 +user2 localhost stage/sql/checking permissions 4 +user2 localhost stage/sql/closing tables 10 +user2 localhost stage/sql/init 3 +user2 localhost stage/sql/Opening tables 6 +user2 localhost stage/sql/starting 7 +user3 localhost stage/sql/checking permissions 4 +user3 localhost stage/sql/closing tables 10 +user3 localhost stage/sql/init 3 +user3 localhost stage/sql/Opening tables 6 +user3 localhost stage/sql/starting 7 +user4 localhost stage/sql/checking permissions 4 +user4 localhost stage/sql/closing tables 10 +user4 localhost stage/sql/init 3 +user4 localhost stage/sql/Opening tables 6 +user4 localhost stage/sql/starting 7 +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 7 +user2 stage/sql/checking permissions 4 +user2 stage/sql/closing tables 10 +user2 stage/sql/init 3 +user2 stage/sql/Opening tables 6 +user2 stage/sql/starting 7 +user3 stage/sql/checking permissions 4 +user3 stage/sql/closing tables 10 +user3 stage/sql/init 3 +user3 stage/sql/Opening tables 6 +user3 stage/sql/starting 7 +user4 stage/sql/checking permissions 4 +user4 stage/sql/closing tables 10 +user4 stage/sql/init 3 +user4 stage/sql/Opening tables 6 +user4 stage/sql/starting 7 +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 16 +localhost stage/sql/closing tables 41 +localhost stage/sql/init 12 +localhost stage/sql/Opening tables 25 +localhost stage/sql/starting 28 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 1 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 1 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 1 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 1 +user4 localhost statement/sp/freturn 1 +user4 localhost statement/sql/insert 1 +user4 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 1 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 1 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 1 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 1 +user4 statement/sp/freturn 1 +user4 statement/sql/insert 1 +user4 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 4 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_waits_summary_global_by_event_name; +"================== WAITS_GLOBAL truncated ==================" +"================== Step 18 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 4 +user1 localhost stage/sql/closing tables 11 +user1 localhost stage/sql/init 3 +user1 localhost stage/sql/Opening tables 7 +user1 localhost stage/sql/starting 7 +user2 localhost stage/sql/checking permissions 4 +user2 localhost stage/sql/closing tables 10 +user2 localhost stage/sql/init 3 +user2 localhost stage/sql/Opening tables 6 +user2 localhost stage/sql/starting 7 +user3 localhost stage/sql/checking permissions 4 +user3 localhost stage/sql/closing tables 10 +user3 localhost stage/sql/init 3 +user3 localhost stage/sql/Opening tables 6 +user3 localhost stage/sql/starting 7 +user4 localhost stage/sql/checking permissions 4 +user4 localhost stage/sql/closing tables 10 +user4 localhost stage/sql/init 3 +user4 localhost stage/sql/Opening tables 6 +user4 localhost stage/sql/starting 7 +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 7 +user2 stage/sql/checking permissions 4 +user2 stage/sql/closing tables 10 +user2 stage/sql/init 3 +user2 stage/sql/Opening tables 6 +user2 stage/sql/starting 7 +user3 stage/sql/checking permissions 4 +user3 stage/sql/closing tables 10 +user3 stage/sql/init 3 +user3 stage/sql/Opening tables 6 +user3 stage/sql/starting 7 +user4 stage/sql/checking permissions 4 +user4 stage/sql/closing tables 10 +user4 stage/sql/init 3 +user4 stage/sql/Opening tables 6 +user4 stage/sql/starting 7 +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 16 +localhost stage/sql/closing tables 41 +localhost stage/sql/init 12 +localhost stage/sql/Opening tables 25 +localhost stage/sql/starting 28 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 1 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 1 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 1 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 1 +user4 localhost statement/sp/freturn 1 +user4 localhost statement/sql/insert 1 +user4 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 1 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 1 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 1 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 1 +user4 statement/sp/freturn 1 +user4 statement/sql/insert 1 +user4 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 4 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_stages_summary_by_thread_by_event_name; +"================== STAGES_BY_THREAD truncated ==================" +"================== Step 19 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 4 +user1 localhost stage/sql/closing tables 11 +user1 localhost stage/sql/init 3 +user1 localhost stage/sql/Opening tables 7 +user1 localhost stage/sql/starting 7 +user2 localhost stage/sql/checking permissions 4 +user2 localhost stage/sql/closing tables 10 +user2 localhost stage/sql/init 3 +user2 localhost stage/sql/Opening tables 6 +user2 localhost stage/sql/starting 7 +user3 localhost stage/sql/checking permissions 4 +user3 localhost stage/sql/closing tables 10 +user3 localhost stage/sql/init 3 +user3 localhost stage/sql/Opening tables 6 +user3 localhost stage/sql/starting 7 +user4 localhost stage/sql/checking permissions 4 +user4 localhost stage/sql/closing tables 10 +user4 localhost stage/sql/init 3 +user4 localhost stage/sql/Opening tables 6 +user4 localhost stage/sql/starting 7 +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 7 +user2 stage/sql/checking permissions 4 +user2 stage/sql/closing tables 10 +user2 stage/sql/init 3 +user2 stage/sql/Opening tables 6 +user2 stage/sql/starting 7 +user3 stage/sql/checking permissions 4 +user3 stage/sql/closing tables 10 +user3 stage/sql/init 3 +user3 stage/sql/Opening tables 6 +user3 stage/sql/starting 7 +user4 stage/sql/checking permissions 4 +user4 stage/sql/closing tables 10 +user4 stage/sql/init 3 +user4 stage/sql/Opening tables 6 +user4 stage/sql/starting 7 +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 16 +localhost stage/sql/closing tables 41 +localhost stage/sql/init 12 +localhost stage/sql/Opening tables 25 +localhost stage/sql/starting 28 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 1 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 1 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 1 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 1 +user4 localhost statement/sp/freturn 1 +user4 localhost statement/sql/insert 1 +user4 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 1 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 1 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 1 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 1 +user4 statement/sp/freturn 1 +user4 statement/sql/insert 1 +user4 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 4 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_stages_summary_by_account_by_event_name; +"================== STAGES_BY_ACCOUNT truncated ==================" +"================== Step 20 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 0 +user1 localhost stage/sql/closing tables 0 +user1 localhost stage/sql/init 0 +user1 localhost stage/sql/Opening tables 0 +user1 localhost stage/sql/starting 0 +user2 localhost stage/sql/checking permissions 0 +user2 localhost stage/sql/closing tables 0 +user2 localhost stage/sql/init 0 +user2 localhost stage/sql/Opening tables 0 +user2 localhost stage/sql/starting 0 +user3 localhost stage/sql/checking permissions 0 +user3 localhost stage/sql/closing tables 0 +user3 localhost stage/sql/init 0 +user3 localhost stage/sql/Opening tables 0 +user3 localhost stage/sql/starting 0 +user4 localhost stage/sql/checking permissions 0 +user4 localhost stage/sql/closing tables 0 +user4 localhost stage/sql/init 0 +user4 localhost stage/sql/Opening tables 0 +user4 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 7 +user2 stage/sql/checking permissions 4 +user2 stage/sql/closing tables 10 +user2 stage/sql/init 3 +user2 stage/sql/Opening tables 6 +user2 stage/sql/starting 7 +user3 stage/sql/checking permissions 4 +user3 stage/sql/closing tables 10 +user3 stage/sql/init 3 +user3 stage/sql/Opening tables 6 +user3 stage/sql/starting 7 +user4 stage/sql/checking permissions 4 +user4 stage/sql/closing tables 10 +user4 stage/sql/init 3 +user4 stage/sql/Opening tables 6 +user4 stage/sql/starting 7 +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 16 +localhost stage/sql/closing tables 41 +localhost stage/sql/init 12 +localhost stage/sql/Opening tables 25 +localhost stage/sql/starting 28 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 1 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 1 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 1 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 1 +user4 localhost statement/sp/freturn 1 +user4 localhost statement/sql/insert 1 +user4 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 1 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 1 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 1 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 1 +user4 statement/sp/freturn 1 +user4 statement/sql/insert 1 +user4 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 4 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_stages_summary_by_user_by_event_name; +"================== STAGES_BY_USER truncated ==================" +"================== Step 21 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 0 +user1 localhost stage/sql/closing tables 0 +user1 localhost stage/sql/init 0 +user1 localhost stage/sql/Opening tables 0 +user1 localhost stage/sql/starting 0 +user2 localhost stage/sql/checking permissions 0 +user2 localhost stage/sql/closing tables 0 +user2 localhost stage/sql/init 0 +user2 localhost stage/sql/Opening tables 0 +user2 localhost stage/sql/starting 0 +user3 localhost stage/sql/checking permissions 0 +user3 localhost stage/sql/closing tables 0 +user3 localhost stage/sql/init 0 +user3 localhost stage/sql/Opening tables 0 +user3 localhost stage/sql/starting 0 +user4 localhost stage/sql/checking permissions 0 +user4 localhost stage/sql/closing tables 0 +user4 localhost stage/sql/init 0 +user4 localhost stage/sql/Opening tables 0 +user4 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 0 +user1 stage/sql/closing tables 0 +user1 stage/sql/init 0 +user1 stage/sql/Opening tables 0 +user1 stage/sql/starting 0 +user2 stage/sql/checking permissions 0 +user2 stage/sql/closing tables 0 +user2 stage/sql/init 0 +user2 stage/sql/Opening tables 0 +user2 stage/sql/starting 0 +user3 stage/sql/checking permissions 0 +user3 stage/sql/closing tables 0 +user3 stage/sql/init 0 +user3 stage/sql/Opening tables 0 +user3 stage/sql/starting 0 +user4 stage/sql/checking permissions 0 +user4 stage/sql/closing tables 0 +user4 stage/sql/init 0 +user4 stage/sql/Opening tables 0 +user4 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 16 +localhost stage/sql/closing tables 41 +localhost stage/sql/init 12 +localhost stage/sql/Opening tables 25 +localhost stage/sql/starting 28 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 1 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 1 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 1 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 1 +user4 localhost statement/sp/freturn 1 +user4 localhost statement/sql/insert 1 +user4 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 1 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 1 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 1 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 1 +user4 statement/sp/freturn 1 +user4 statement/sql/insert 1 +user4 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 4 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_stages_summary_by_host_by_event_name; +"================== STAGES_BY_HOST truncated ==================" +"================== Step 22 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 0 +user1 localhost stage/sql/closing tables 0 +user1 localhost stage/sql/init 0 +user1 localhost stage/sql/Opening tables 0 +user1 localhost stage/sql/starting 0 +user2 localhost stage/sql/checking permissions 0 +user2 localhost stage/sql/closing tables 0 +user2 localhost stage/sql/init 0 +user2 localhost stage/sql/Opening tables 0 +user2 localhost stage/sql/starting 0 +user3 localhost stage/sql/checking permissions 0 +user3 localhost stage/sql/closing tables 0 +user3 localhost stage/sql/init 0 +user3 localhost stage/sql/Opening tables 0 +user3 localhost stage/sql/starting 0 +user4 localhost stage/sql/checking permissions 0 +user4 localhost stage/sql/closing tables 0 +user4 localhost stage/sql/init 0 +user4 localhost stage/sql/Opening tables 0 +user4 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 0 +user1 stage/sql/closing tables 0 +user1 stage/sql/init 0 +user1 stage/sql/Opening tables 0 +user1 stage/sql/starting 0 +user2 stage/sql/checking permissions 0 +user2 stage/sql/closing tables 0 +user2 stage/sql/init 0 +user2 stage/sql/Opening tables 0 +user2 stage/sql/starting 0 +user3 stage/sql/checking permissions 0 +user3 stage/sql/closing tables 0 +user3 stage/sql/init 0 +user3 stage/sql/Opening tables 0 +user3 stage/sql/starting 0 +user4 stage/sql/checking permissions 0 +user4 stage/sql/closing tables 0 +user4 stage/sql/init 0 +user4 stage/sql/Opening tables 0 +user4 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 0 +localhost stage/sql/closing tables 0 +localhost stage/sql/init 0 +localhost stage/sql/Opening tables 0 +localhost stage/sql/starting 0 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 1 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 1 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 1 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 1 +user4 localhost statement/sp/freturn 1 +user4 localhost statement/sql/insert 1 +user4 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 1 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 1 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 1 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 1 +user4 statement/sp/freturn 1 +user4 statement/sql/insert 1 +user4 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 4 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_stages_summary_global_by_event_name; +"================== STAGES_GLOBAL truncated ==================" +"================== Step 23 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 0 +user1 localhost stage/sql/closing tables 0 +user1 localhost stage/sql/init 0 +user1 localhost stage/sql/Opening tables 0 +user1 localhost stage/sql/starting 0 +user2 localhost stage/sql/checking permissions 0 +user2 localhost stage/sql/closing tables 0 +user2 localhost stage/sql/init 0 +user2 localhost stage/sql/Opening tables 0 +user2 localhost stage/sql/starting 0 +user3 localhost stage/sql/checking permissions 0 +user3 localhost stage/sql/closing tables 0 +user3 localhost stage/sql/init 0 +user3 localhost stage/sql/Opening tables 0 +user3 localhost stage/sql/starting 0 +user4 localhost stage/sql/checking permissions 0 +user4 localhost stage/sql/closing tables 0 +user4 localhost stage/sql/init 0 +user4 localhost stage/sql/Opening tables 0 +user4 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 0 +user1 stage/sql/closing tables 0 +user1 stage/sql/init 0 +user1 stage/sql/Opening tables 0 +user1 stage/sql/starting 0 +user2 stage/sql/checking permissions 0 +user2 stage/sql/closing tables 0 +user2 stage/sql/init 0 +user2 stage/sql/Opening tables 0 +user2 stage/sql/starting 0 +user3 stage/sql/checking permissions 0 +user3 stage/sql/closing tables 0 +user3 stage/sql/init 0 +user3 stage/sql/Opening tables 0 +user3 stage/sql/starting 0 +user4 stage/sql/checking permissions 0 +user4 stage/sql/closing tables 0 +user4 stage/sql/init 0 +user4 stage/sql/Opening tables 0 +user4 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 0 +localhost stage/sql/closing tables 0 +localhost stage/sql/init 0 +localhost stage/sql/Opening tables 0 +localhost stage/sql/starting 0 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 1 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 1 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 1 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 1 +user4 localhost statement/sp/freturn 1 +user4 localhost statement/sql/insert 1 +user4 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 1 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 1 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 1 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 1 +user4 statement/sp/freturn 1 +user4 statement/sql/insert 1 +user4 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 4 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_statements_summary_by_thread_by_event_name; +"================== STATEMENTS_BY_THREAD truncated ==================" +"================== Step 24 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 0 +user1 localhost stage/sql/closing tables 0 +user1 localhost stage/sql/init 0 +user1 localhost stage/sql/Opening tables 0 +user1 localhost stage/sql/starting 0 +user2 localhost stage/sql/checking permissions 0 +user2 localhost stage/sql/closing tables 0 +user2 localhost stage/sql/init 0 +user2 localhost stage/sql/Opening tables 0 +user2 localhost stage/sql/starting 0 +user3 localhost stage/sql/checking permissions 0 +user3 localhost stage/sql/closing tables 0 +user3 localhost stage/sql/init 0 +user3 localhost stage/sql/Opening tables 0 +user3 localhost stage/sql/starting 0 +user4 localhost stage/sql/checking permissions 0 +user4 localhost stage/sql/closing tables 0 +user4 localhost stage/sql/init 0 +user4 localhost stage/sql/Opening tables 0 +user4 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 0 +user1 stage/sql/closing tables 0 +user1 stage/sql/init 0 +user1 stage/sql/Opening tables 0 +user1 stage/sql/starting 0 +user2 stage/sql/checking permissions 0 +user2 stage/sql/closing tables 0 +user2 stage/sql/init 0 +user2 stage/sql/Opening tables 0 +user2 stage/sql/starting 0 +user3 stage/sql/checking permissions 0 +user3 stage/sql/closing tables 0 +user3 stage/sql/init 0 +user3 stage/sql/Opening tables 0 +user3 stage/sql/starting 0 +user4 stage/sql/checking permissions 0 +user4 stage/sql/closing tables 0 +user4 stage/sql/init 0 +user4 stage/sql/Opening tables 0 +user4 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 0 +localhost stage/sql/closing tables 0 +localhost stage/sql/init 0 +localhost stage/sql/Opening tables 0 +localhost stage/sql/starting 0 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 1 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 1 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 1 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 1 +user4 localhost statement/sp/freturn 1 +user4 localhost statement/sql/insert 1 +user4 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 1 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 1 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 1 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 1 +user4 statement/sp/freturn 1 +user4 statement/sql/insert 1 +user4 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 4 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_statements_summary_by_account_by_event_name; +"================== STATEMENTS_BY_ACCOUNT truncated ==================" +"================== Step 25 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 0 +user1 localhost stage/sql/closing tables 0 +user1 localhost stage/sql/init 0 +user1 localhost stage/sql/Opening tables 0 +user1 localhost stage/sql/starting 0 +user2 localhost stage/sql/checking permissions 0 +user2 localhost stage/sql/closing tables 0 +user2 localhost stage/sql/init 0 +user2 localhost stage/sql/Opening tables 0 +user2 localhost stage/sql/starting 0 +user3 localhost stage/sql/checking permissions 0 +user3 localhost stage/sql/closing tables 0 +user3 localhost stage/sql/init 0 +user3 localhost stage/sql/Opening tables 0 +user3 localhost stage/sql/starting 0 +user4 localhost stage/sql/checking permissions 0 +user4 localhost stage/sql/closing tables 0 +user4 localhost stage/sql/init 0 +user4 localhost stage/sql/Opening tables 0 +user4 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 0 +user1 stage/sql/closing tables 0 +user1 stage/sql/init 0 +user1 stage/sql/Opening tables 0 +user1 stage/sql/starting 0 +user2 stage/sql/checking permissions 0 +user2 stage/sql/closing tables 0 +user2 stage/sql/init 0 +user2 stage/sql/Opening tables 0 +user2 stage/sql/starting 0 +user3 stage/sql/checking permissions 0 +user3 stage/sql/closing tables 0 +user3 stage/sql/init 0 +user3 stage/sql/Opening tables 0 +user3 stage/sql/starting 0 +user4 stage/sql/checking permissions 0 +user4 stage/sql/closing tables 0 +user4 stage/sql/init 0 +user4 stage/sql/Opening tables 0 +user4 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 0 +localhost stage/sql/closing tables 0 +localhost stage/sql/init 0 +localhost stage/sql/Opening tables 0 +localhost stage/sql/starting 0 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 0 +user1 localhost statement/sp/freturn 0 +user1 localhost statement/sql/insert 0 +user1 localhost statement/sql/select 0 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 0 +user2 localhost statement/sp/freturn 0 +user2 localhost statement/sql/insert 0 +user2 localhost statement/sql/select 0 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 0 +user3 localhost statement/sp/freturn 0 +user3 localhost statement/sql/insert 0 +user3 localhost statement/sql/select 0 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 0 +user4 localhost statement/sp/freturn 0 +user4 localhost statement/sql/insert 0 +user4 localhost statement/sql/select 0 +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 1 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 1 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 1 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 1 +user4 statement/sp/freturn 1 +user4 statement/sql/insert 1 +user4 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 4 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_statements_summary_by_user_by_event_name; +"================== STATEMENTS_BY_USER truncated ==================" +"================== Step 26 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 0 +user1 localhost stage/sql/closing tables 0 +user1 localhost stage/sql/init 0 +user1 localhost stage/sql/Opening tables 0 +user1 localhost stage/sql/starting 0 +user2 localhost stage/sql/checking permissions 0 +user2 localhost stage/sql/closing tables 0 +user2 localhost stage/sql/init 0 +user2 localhost stage/sql/Opening tables 0 +user2 localhost stage/sql/starting 0 +user3 localhost stage/sql/checking permissions 0 +user3 localhost stage/sql/closing tables 0 +user3 localhost stage/sql/init 0 +user3 localhost stage/sql/Opening tables 0 +user3 localhost stage/sql/starting 0 +user4 localhost stage/sql/checking permissions 0 +user4 localhost stage/sql/closing tables 0 +user4 localhost stage/sql/init 0 +user4 localhost stage/sql/Opening tables 0 +user4 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 0 +user1 stage/sql/closing tables 0 +user1 stage/sql/init 0 +user1 stage/sql/Opening tables 0 +user1 stage/sql/starting 0 +user2 stage/sql/checking permissions 0 +user2 stage/sql/closing tables 0 +user2 stage/sql/init 0 +user2 stage/sql/Opening tables 0 +user2 stage/sql/starting 0 +user3 stage/sql/checking permissions 0 +user3 stage/sql/closing tables 0 +user3 stage/sql/init 0 +user3 stage/sql/Opening tables 0 +user3 stage/sql/starting 0 +user4 stage/sql/checking permissions 0 +user4 stage/sql/closing tables 0 +user4 stage/sql/init 0 +user4 stage/sql/Opening tables 0 +user4 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 0 +localhost stage/sql/closing tables 0 +localhost stage/sql/init 0 +localhost stage/sql/Opening tables 0 +localhost stage/sql/starting 0 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 0 +user1 localhost statement/sp/freturn 0 +user1 localhost statement/sql/insert 0 +user1 localhost statement/sql/select 0 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 0 +user2 localhost statement/sp/freturn 0 +user2 localhost statement/sql/insert 0 +user2 localhost statement/sql/select 0 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 0 +user3 localhost statement/sp/freturn 0 +user3 localhost statement/sql/insert 0 +user3 localhost statement/sql/select 0 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 0 +user4 localhost statement/sp/freturn 0 +user4 localhost statement/sql/insert 0 +user4 localhost statement/sql/select 0 +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 0 +user1 statement/sp/freturn 0 +user1 statement/sql/insert 0 +user1 statement/sql/select 0 +user2 statement/com/Error 0 +user2 statement/com/Quit 0 +user2 statement/sp/freturn 0 +user2 statement/sql/insert 0 +user2 statement/sql/select 0 +user3 statement/com/Error 0 +user3 statement/com/Quit 0 +user3 statement/sp/freturn 0 +user3 statement/sql/insert 0 +user3 statement/sql/select 0 +user4 statement/com/Error 0 +user4 statement/com/Quit 0 +user4 statement/sp/freturn 0 +user4 statement/sql/insert 0 +user4 statement/sql/select 0 +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 4 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_statements_summary_by_host_by_event_name; +"================== STATEMENTS_BY_HOST truncated ==================" +"================== Step 27 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 0 +user1 localhost stage/sql/closing tables 0 +user1 localhost stage/sql/init 0 +user1 localhost stage/sql/Opening tables 0 +user1 localhost stage/sql/starting 0 +user2 localhost stage/sql/checking permissions 0 +user2 localhost stage/sql/closing tables 0 +user2 localhost stage/sql/init 0 +user2 localhost stage/sql/Opening tables 0 +user2 localhost stage/sql/starting 0 +user3 localhost stage/sql/checking permissions 0 +user3 localhost stage/sql/closing tables 0 +user3 localhost stage/sql/init 0 +user3 localhost stage/sql/Opening tables 0 +user3 localhost stage/sql/starting 0 +user4 localhost stage/sql/checking permissions 0 +user4 localhost stage/sql/closing tables 0 +user4 localhost stage/sql/init 0 +user4 localhost stage/sql/Opening tables 0 +user4 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 0 +user1 stage/sql/closing tables 0 +user1 stage/sql/init 0 +user1 stage/sql/Opening tables 0 +user1 stage/sql/starting 0 +user2 stage/sql/checking permissions 0 +user2 stage/sql/closing tables 0 +user2 stage/sql/init 0 +user2 stage/sql/Opening tables 0 +user2 stage/sql/starting 0 +user3 stage/sql/checking permissions 0 +user3 stage/sql/closing tables 0 +user3 stage/sql/init 0 +user3 stage/sql/Opening tables 0 +user3 stage/sql/starting 0 +user4 stage/sql/checking permissions 0 +user4 stage/sql/closing tables 0 +user4 stage/sql/init 0 +user4 stage/sql/Opening tables 0 +user4 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 0 +localhost stage/sql/closing tables 0 +localhost stage/sql/init 0 +localhost stage/sql/Opening tables 0 +localhost stage/sql/starting 0 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 0 +user1 localhost statement/sp/freturn 0 +user1 localhost statement/sql/insert 0 +user1 localhost statement/sql/select 0 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 0 +user2 localhost statement/sp/freturn 0 +user2 localhost statement/sql/insert 0 +user2 localhost statement/sql/select 0 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 0 +user3 localhost statement/sp/freturn 0 +user3 localhost statement/sql/insert 0 +user3 localhost statement/sql/select 0 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 0 +user4 localhost statement/sp/freturn 0 +user4 localhost statement/sql/insert 0 +user4 localhost statement/sql/select 0 +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 0 +user1 statement/sp/freturn 0 +user1 statement/sql/insert 0 +user1 statement/sql/select 0 +user2 statement/com/Error 0 +user2 statement/com/Quit 0 +user2 statement/sp/freturn 0 +user2 statement/sql/insert 0 +user2 statement/sql/select 0 +user3 statement/com/Error 0 +user3 statement/com/Quit 0 +user3 statement/sp/freturn 0 +user3 statement/sql/insert 0 +user3 statement/sql/select 0 +user4 statement/com/Error 0 +user4 statement/com/Quit 0 +user4 statement/sp/freturn 0 +user4 statement/sql/insert 0 +user4 statement/sql/select 0 +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 0 +localhost statement/sql/insert 0 +localhost statement/sql/select 0 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_statements_summary_global_by_event_name; +"================== STATEMENTS_GLOBAL truncated ==================" +"================== Step 28 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 0 +user1 localhost stage/sql/closing tables 0 +user1 localhost stage/sql/init 0 +user1 localhost stage/sql/Opening tables 0 +user1 localhost stage/sql/starting 0 +user2 localhost stage/sql/checking permissions 0 +user2 localhost stage/sql/closing tables 0 +user2 localhost stage/sql/init 0 +user2 localhost stage/sql/Opening tables 0 +user2 localhost stage/sql/starting 0 +user3 localhost stage/sql/checking permissions 0 +user3 localhost stage/sql/closing tables 0 +user3 localhost stage/sql/init 0 +user3 localhost stage/sql/Opening tables 0 +user3 localhost stage/sql/starting 0 +user4 localhost stage/sql/checking permissions 0 +user4 localhost stage/sql/closing tables 0 +user4 localhost stage/sql/init 0 +user4 localhost stage/sql/Opening tables 0 +user4 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 0 +user1 stage/sql/closing tables 0 +user1 stage/sql/init 0 +user1 stage/sql/Opening tables 0 +user1 stage/sql/starting 0 +user2 stage/sql/checking permissions 0 +user2 stage/sql/closing tables 0 +user2 stage/sql/init 0 +user2 stage/sql/Opening tables 0 +user2 stage/sql/starting 0 +user3 stage/sql/checking permissions 0 +user3 stage/sql/closing tables 0 +user3 stage/sql/init 0 +user3 stage/sql/Opening tables 0 +user3 stage/sql/starting 0 +user4 stage/sql/checking permissions 0 +user4 stage/sql/closing tables 0 +user4 stage/sql/init 0 +user4 stage/sql/Opening tables 0 +user4 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 0 +localhost stage/sql/closing tables 0 +localhost stage/sql/init 0 +localhost stage/sql/Opening tables 0 +localhost stage/sql/starting 0 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 0 +user1 localhost statement/sp/freturn 0 +user1 localhost statement/sql/insert 0 +user1 localhost statement/sql/select 0 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 0 +user2 localhost statement/sp/freturn 0 +user2 localhost statement/sql/insert 0 +user2 localhost statement/sql/select 0 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 0 +user3 localhost statement/sp/freturn 0 +user3 localhost statement/sql/insert 0 +user3 localhost statement/sql/select 0 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 0 +user4 localhost statement/sp/freturn 0 +user4 localhost statement/sql/insert 0 +user4 localhost statement/sql/select 0 +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 0 +user1 statement/sp/freturn 0 +user1 statement/sql/insert 0 +user1 statement/sql/select 0 +user2 statement/com/Error 0 +user2 statement/com/Quit 0 +user2 statement/sp/freturn 0 +user2 statement/sql/insert 0 +user2 statement/sql/select 0 +user3 statement/com/Error 0 +user3 statement/com/Quit 0 +user3 statement/sp/freturn 0 +user3 statement/sql/insert 0 +user3 statement/sql/select 0 +user4 statement/com/Error 0 +user4 statement/com/Quit 0 +user4 statement/sp/freturn 0 +user4 statement/sql/insert 0 +user4 statement/sql/select 0 +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 0 +localhost statement/sql/insert 0 +localhost statement/sql/select 0 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_transactions_summary_by_thread_by_event_name; +"================== TRANSACTIONS_BY_THREAD truncated ==================" +"================== Step 29 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 0 +user1 localhost stage/sql/closing tables 0 +user1 localhost stage/sql/init 0 +user1 localhost stage/sql/Opening tables 0 +user1 localhost stage/sql/starting 0 +user2 localhost stage/sql/checking permissions 0 +user2 localhost stage/sql/closing tables 0 +user2 localhost stage/sql/init 0 +user2 localhost stage/sql/Opening tables 0 +user2 localhost stage/sql/starting 0 +user3 localhost stage/sql/checking permissions 0 +user3 localhost stage/sql/closing tables 0 +user3 localhost stage/sql/init 0 +user3 localhost stage/sql/Opening tables 0 +user3 localhost stage/sql/starting 0 +user4 localhost stage/sql/checking permissions 0 +user4 localhost stage/sql/closing tables 0 +user4 localhost stage/sql/init 0 +user4 localhost stage/sql/Opening tables 0 +user4 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 0 +user1 stage/sql/closing tables 0 +user1 stage/sql/init 0 +user1 stage/sql/Opening tables 0 +user1 stage/sql/starting 0 +user2 stage/sql/checking permissions 0 +user2 stage/sql/closing tables 0 +user2 stage/sql/init 0 +user2 stage/sql/Opening tables 0 +user2 stage/sql/starting 0 +user3 stage/sql/checking permissions 0 +user3 stage/sql/closing tables 0 +user3 stage/sql/init 0 +user3 stage/sql/Opening tables 0 +user3 stage/sql/starting 0 +user4 stage/sql/checking permissions 0 +user4 stage/sql/closing tables 0 +user4 stage/sql/init 0 +user4 stage/sql/Opening tables 0 +user4 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 0 +localhost stage/sql/closing tables 0 +localhost stage/sql/init 0 +localhost stage/sql/Opening tables 0 +localhost stage/sql/starting 0 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 0 +user1 localhost statement/sp/freturn 0 +user1 localhost statement/sql/insert 0 +user1 localhost statement/sql/select 0 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 0 +user2 localhost statement/sp/freturn 0 +user2 localhost statement/sql/insert 0 +user2 localhost statement/sql/select 0 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 0 +user3 localhost statement/sp/freturn 0 +user3 localhost statement/sql/insert 0 +user3 localhost statement/sql/select 0 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 0 +user4 localhost statement/sp/freturn 0 +user4 localhost statement/sql/insert 0 +user4 localhost statement/sql/select 0 +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 0 +user1 statement/sp/freturn 0 +user1 statement/sql/insert 0 +user1 statement/sql/select 0 +user2 statement/com/Error 0 +user2 statement/com/Quit 0 +user2 statement/sp/freturn 0 +user2 statement/sql/insert 0 +user2 statement/sql/select 0 +user3 statement/com/Error 0 +user3 statement/com/Quit 0 +user3 statement/sp/freturn 0 +user3 statement/sql/insert 0 +user3 statement/sql/select 0 +user4 statement/com/Error 0 +user4 statement/com/Quit 0 +user4 statement/sp/freturn 0 +user4 statement/sql/insert 0 +user4 statement/sql/select 0 +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 0 +localhost statement/sql/insert 0 +localhost statement/sql/select 0 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_transactions_summary_by_account_by_event_name; +"================== TRANSACTIONS_BY_ACCOUNT truncated ==================" +"================== Step 30 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 0 +user1 localhost stage/sql/closing tables 0 +user1 localhost stage/sql/init 0 +user1 localhost stage/sql/Opening tables 0 +user1 localhost stage/sql/starting 0 +user2 localhost stage/sql/checking permissions 0 +user2 localhost stage/sql/closing tables 0 +user2 localhost stage/sql/init 0 +user2 localhost stage/sql/Opening tables 0 +user2 localhost stage/sql/starting 0 +user3 localhost stage/sql/checking permissions 0 +user3 localhost stage/sql/closing tables 0 +user3 localhost stage/sql/init 0 +user3 localhost stage/sql/Opening tables 0 +user3 localhost stage/sql/starting 0 +user4 localhost stage/sql/checking permissions 0 +user4 localhost stage/sql/closing tables 0 +user4 localhost stage/sql/init 0 +user4 localhost stage/sql/Opening tables 0 +user4 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 0 +user1 stage/sql/closing tables 0 +user1 stage/sql/init 0 +user1 stage/sql/Opening tables 0 +user1 stage/sql/starting 0 +user2 stage/sql/checking permissions 0 +user2 stage/sql/closing tables 0 +user2 stage/sql/init 0 +user2 stage/sql/Opening tables 0 +user2 stage/sql/starting 0 +user3 stage/sql/checking permissions 0 +user3 stage/sql/closing tables 0 +user3 stage/sql/init 0 +user3 stage/sql/Opening tables 0 +user3 stage/sql/starting 0 +user4 stage/sql/checking permissions 0 +user4 stage/sql/closing tables 0 +user4 stage/sql/init 0 +user4 stage/sql/Opening tables 0 +user4 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 0 +localhost stage/sql/closing tables 0 +localhost stage/sql/init 0 +localhost stage/sql/Opening tables 0 +localhost stage/sql/starting 0 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 0 +user1 localhost statement/sp/freturn 0 +user1 localhost statement/sql/insert 0 +user1 localhost statement/sql/select 0 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 0 +user2 localhost statement/sp/freturn 0 +user2 localhost statement/sql/insert 0 +user2 localhost statement/sql/select 0 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 0 +user3 localhost statement/sp/freturn 0 +user3 localhost statement/sql/insert 0 +user3 localhost statement/sql/select 0 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 0 +user4 localhost statement/sp/freturn 0 +user4 localhost statement/sql/insert 0 +user4 localhost statement/sql/select 0 +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 0 +user1 statement/sp/freturn 0 +user1 statement/sql/insert 0 +user1 statement/sql/select 0 +user2 statement/com/Error 0 +user2 statement/com/Quit 0 +user2 statement/sp/freturn 0 +user2 statement/sql/insert 0 +user2 statement/sql/select 0 +user3 statement/com/Error 0 +user3 statement/com/Quit 0 +user3 statement/sp/freturn 0 +user3 statement/sql/insert 0 +user3 statement/sql/select 0 +user4 statement/com/Error 0 +user4 statement/com/Quit 0 +user4 statement/sp/freturn 0 +user4 statement/sql/insert 0 +user4 statement/sql/select 0 +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 0 +localhost statement/sql/insert 0 +localhost statement/sql/select 0 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 0 +user2 localhost transaction 0 +user3 localhost transaction 0 +user4 localhost transaction 0 +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_transactions_summary_by_user_by_event_name; +"================== TRANSACTIONS_BY_USER truncated ==================" +"================== Step 31 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 0 +user1 localhost stage/sql/closing tables 0 +user1 localhost stage/sql/init 0 +user1 localhost stage/sql/Opening tables 0 +user1 localhost stage/sql/starting 0 +user2 localhost stage/sql/checking permissions 0 +user2 localhost stage/sql/closing tables 0 +user2 localhost stage/sql/init 0 +user2 localhost stage/sql/Opening tables 0 +user2 localhost stage/sql/starting 0 +user3 localhost stage/sql/checking permissions 0 +user3 localhost stage/sql/closing tables 0 +user3 localhost stage/sql/init 0 +user3 localhost stage/sql/Opening tables 0 +user3 localhost stage/sql/starting 0 +user4 localhost stage/sql/checking permissions 0 +user4 localhost stage/sql/closing tables 0 +user4 localhost stage/sql/init 0 +user4 localhost stage/sql/Opening tables 0 +user4 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 0 +user1 stage/sql/closing tables 0 +user1 stage/sql/init 0 +user1 stage/sql/Opening tables 0 +user1 stage/sql/starting 0 +user2 stage/sql/checking permissions 0 +user2 stage/sql/closing tables 0 +user2 stage/sql/init 0 +user2 stage/sql/Opening tables 0 +user2 stage/sql/starting 0 +user3 stage/sql/checking permissions 0 +user3 stage/sql/closing tables 0 +user3 stage/sql/init 0 +user3 stage/sql/Opening tables 0 +user3 stage/sql/starting 0 +user4 stage/sql/checking permissions 0 +user4 stage/sql/closing tables 0 +user4 stage/sql/init 0 +user4 stage/sql/Opening tables 0 +user4 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 0 +localhost stage/sql/closing tables 0 +localhost stage/sql/init 0 +localhost stage/sql/Opening tables 0 +localhost stage/sql/starting 0 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 0 +user1 localhost statement/sp/freturn 0 +user1 localhost statement/sql/insert 0 +user1 localhost statement/sql/select 0 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 0 +user2 localhost statement/sp/freturn 0 +user2 localhost statement/sql/insert 0 +user2 localhost statement/sql/select 0 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 0 +user3 localhost statement/sp/freturn 0 +user3 localhost statement/sql/insert 0 +user3 localhost statement/sql/select 0 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 0 +user4 localhost statement/sp/freturn 0 +user4 localhost statement/sql/insert 0 +user4 localhost statement/sql/select 0 +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 0 +user1 statement/sp/freturn 0 +user1 statement/sql/insert 0 +user1 statement/sql/select 0 +user2 statement/com/Error 0 +user2 statement/com/Quit 0 +user2 statement/sp/freturn 0 +user2 statement/sql/insert 0 +user2 statement/sql/select 0 +user3 statement/com/Error 0 +user3 statement/com/Quit 0 +user3 statement/sp/freturn 0 +user3 statement/sql/insert 0 +user3 statement/sql/select 0 +user4 statement/com/Error 0 +user4 statement/com/Quit 0 +user4 statement/sp/freturn 0 +user4 statement/sql/insert 0 +user4 statement/sql/select 0 +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 0 +localhost statement/sql/insert 0 +localhost statement/sql/select 0 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 0 +user2 localhost transaction 0 +user3 localhost transaction 0 +user4 localhost transaction 0 +execute dump_transactions_user; +user event_name count_star +user1 transaction 0 +user2 transaction 0 +user3 transaction 0 +user4 transaction 0 +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_transactions_summary_by_host_by_event_name; +"================== TRANSACTIONS_BY_HOST truncated ==================" +"================== Step 32 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 0 +user1 localhost stage/sql/closing tables 0 +user1 localhost stage/sql/init 0 +user1 localhost stage/sql/Opening tables 0 +user1 localhost stage/sql/starting 0 +user2 localhost stage/sql/checking permissions 0 +user2 localhost stage/sql/closing tables 0 +user2 localhost stage/sql/init 0 +user2 localhost stage/sql/Opening tables 0 +user2 localhost stage/sql/starting 0 +user3 localhost stage/sql/checking permissions 0 +user3 localhost stage/sql/closing tables 0 +user3 localhost stage/sql/init 0 +user3 localhost stage/sql/Opening tables 0 +user3 localhost stage/sql/starting 0 +user4 localhost stage/sql/checking permissions 0 +user4 localhost stage/sql/closing tables 0 +user4 localhost stage/sql/init 0 +user4 localhost stage/sql/Opening tables 0 +user4 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 0 +user1 stage/sql/closing tables 0 +user1 stage/sql/init 0 +user1 stage/sql/Opening tables 0 +user1 stage/sql/starting 0 +user2 stage/sql/checking permissions 0 +user2 stage/sql/closing tables 0 +user2 stage/sql/init 0 +user2 stage/sql/Opening tables 0 +user2 stage/sql/starting 0 +user3 stage/sql/checking permissions 0 +user3 stage/sql/closing tables 0 +user3 stage/sql/init 0 +user3 stage/sql/Opening tables 0 +user3 stage/sql/starting 0 +user4 stage/sql/checking permissions 0 +user4 stage/sql/closing tables 0 +user4 stage/sql/init 0 +user4 stage/sql/Opening tables 0 +user4 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 0 +localhost stage/sql/closing tables 0 +localhost stage/sql/init 0 +localhost stage/sql/Opening tables 0 +localhost stage/sql/starting 0 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 0 +user1 localhost statement/sp/freturn 0 +user1 localhost statement/sql/insert 0 +user1 localhost statement/sql/select 0 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 0 +user2 localhost statement/sp/freturn 0 +user2 localhost statement/sql/insert 0 +user2 localhost statement/sql/select 0 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 0 +user3 localhost statement/sp/freturn 0 +user3 localhost statement/sql/insert 0 +user3 localhost statement/sql/select 0 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 0 +user4 localhost statement/sp/freturn 0 +user4 localhost statement/sql/insert 0 +user4 localhost statement/sql/select 0 +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 0 +user1 statement/sp/freturn 0 +user1 statement/sql/insert 0 +user1 statement/sql/select 0 +user2 statement/com/Error 0 +user2 statement/com/Quit 0 +user2 statement/sp/freturn 0 +user2 statement/sql/insert 0 +user2 statement/sql/select 0 +user3 statement/com/Error 0 +user3 statement/com/Quit 0 +user3 statement/sp/freturn 0 +user3 statement/sql/insert 0 +user3 statement/sql/select 0 +user4 statement/com/Error 0 +user4 statement/com/Quit 0 +user4 statement/sp/freturn 0 +user4 statement/sql/insert 0 +user4 statement/sql/select 0 +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 0 +localhost statement/sql/insert 0 +localhost statement/sql/select 0 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 0 +user2 localhost transaction 0 +user3 localhost transaction 0 +user4 localhost transaction 0 +execute dump_transactions_user; +user event_name count_star +user1 transaction 0 +user2 transaction 0 +user3 transaction 0 +user4 transaction 0 +execute dump_transactions_host; +host event_name count_star +localhost transaction 0 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_transactions_summary_global_by_event_name; +"================== TRANSACTIONS_GLOBAL truncated ==================" +"================== Step 33 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 0 +user1 localhost stage/sql/closing tables 0 +user1 localhost stage/sql/init 0 +user1 localhost stage/sql/Opening tables 0 +user1 localhost stage/sql/starting 0 +user2 localhost stage/sql/checking permissions 0 +user2 localhost stage/sql/closing tables 0 +user2 localhost stage/sql/init 0 +user2 localhost stage/sql/Opening tables 0 +user2 localhost stage/sql/starting 0 +user3 localhost stage/sql/checking permissions 0 +user3 localhost stage/sql/closing tables 0 +user3 localhost stage/sql/init 0 +user3 localhost stage/sql/Opening tables 0 +user3 localhost stage/sql/starting 0 +user4 localhost stage/sql/checking permissions 0 +user4 localhost stage/sql/closing tables 0 +user4 localhost stage/sql/init 0 +user4 localhost stage/sql/Opening tables 0 +user4 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 0 +user1 stage/sql/closing tables 0 +user1 stage/sql/init 0 +user1 stage/sql/Opening tables 0 +user1 stage/sql/starting 0 +user2 stage/sql/checking permissions 0 +user2 stage/sql/closing tables 0 +user2 stage/sql/init 0 +user2 stage/sql/Opening tables 0 +user2 stage/sql/starting 0 +user3 stage/sql/checking permissions 0 +user3 stage/sql/closing tables 0 +user3 stage/sql/init 0 +user3 stage/sql/Opening tables 0 +user3 stage/sql/starting 0 +user4 stage/sql/checking permissions 0 +user4 stage/sql/closing tables 0 +user4 stage/sql/init 0 +user4 stage/sql/Opening tables 0 +user4 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 0 +localhost stage/sql/closing tables 0 +localhost stage/sql/init 0 +localhost stage/sql/Opening tables 0 +localhost stage/sql/starting 0 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 0 +user1 localhost statement/sp/freturn 0 +user1 localhost statement/sql/insert 0 +user1 localhost statement/sql/select 0 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 0 +user2 localhost statement/sp/freturn 0 +user2 localhost statement/sql/insert 0 +user2 localhost statement/sql/select 0 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 0 +user3 localhost statement/sp/freturn 0 +user3 localhost statement/sql/insert 0 +user3 localhost statement/sql/select 0 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 0 +user4 localhost statement/sp/freturn 0 +user4 localhost statement/sql/insert 0 +user4 localhost statement/sql/select 0 +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 0 +user1 statement/sp/freturn 0 +user1 statement/sql/insert 0 +user1 statement/sql/select 0 +user2 statement/com/Error 0 +user2 statement/com/Quit 0 +user2 statement/sp/freturn 0 +user2 statement/sql/insert 0 +user2 statement/sql/select 0 +user3 statement/com/Error 0 +user3 statement/com/Quit 0 +user3 statement/sp/freturn 0 +user3 statement/sql/insert 0 +user3 statement/sql/select 0 +user4 statement/com/Error 0 +user4 statement/com/Quit 0 +user4 statement/sp/freturn 0 +user4 statement/sql/insert 0 +user4 statement/sql/select 0 +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 0 +localhost statement/sql/insert 0 +localhost statement/sql/select 0 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 0 +user2 localhost transaction 0 +user3 localhost transaction 0 +user4 localhost transaction 0 +execute dump_transactions_user; +user event_name count_star +user1 transaction 0 +user2 transaction 0 +user3 transaction 0 +user4 transaction 0 +execute dump_transactions_host; +host event_name count_star +localhost transaction 0 +execute dump_transactions_global; +event_name count_star +transaction 0 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.accounts; +"================== ACCOUNTS truncated ==================" +"================== Step 34 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 0 +user1 stage/sql/closing tables 0 +user1 stage/sql/init 0 +user1 stage/sql/Opening tables 0 +user1 stage/sql/starting 0 +user2 stage/sql/checking permissions 0 +user2 stage/sql/closing tables 0 +user2 stage/sql/init 0 +user2 stage/sql/Opening tables 0 +user2 stage/sql/starting 0 +user3 stage/sql/checking permissions 0 +user3 stage/sql/closing tables 0 +user3 stage/sql/init 0 +user3 stage/sql/Opening tables 0 +user3 stage/sql/starting 0 +user4 stage/sql/checking permissions 0 +user4 stage/sql/closing tables 0 +user4 stage/sql/init 0 +user4 stage/sql/Opening tables 0 +user4 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 0 +localhost stage/sql/closing tables 0 +localhost stage/sql/init 0 +localhost stage/sql/Opening tables 0 +localhost stage/sql/starting 0 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 0 +user1 statement/sp/freturn 0 +user1 statement/sql/insert 0 +user1 statement/sql/select 0 +user2 statement/com/Error 0 +user2 statement/com/Quit 0 +user2 statement/sp/freturn 0 +user2 statement/sql/insert 0 +user2 statement/sql/select 0 +user3 statement/com/Error 0 +user3 statement/com/Quit 0 +user3 statement/sp/freturn 0 +user3 statement/sql/insert 0 +user3 statement/sql/select 0 +user4 statement/com/Error 0 +user4 statement/com/Quit 0 +user4 statement/sp/freturn 0 +user4 statement/sql/insert 0 +user4 statement/sql/select 0 +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 0 +localhost statement/sql/insert 0 +localhost statement/sql/select 0 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +user1 transaction 0 +user2 transaction 0 +user3 transaction 0 +user4 transaction 0 +execute dump_transactions_host; +host event_name count_star +localhost transaction 0 +execute dump_transactions_global; +event_name count_star +transaction 0 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.users; +"================== USERS truncated ==================" +"================== Step 35 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 0 +localhost stage/sql/closing tables 0 +localhost stage/sql/init 0 +localhost stage/sql/Opening tables 0 +localhost stage/sql/starting 0 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 0 +localhost statement/sql/insert 0 +localhost statement/sql/select 0 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 0 +execute dump_transactions_global; +event_name count_star +transaction 0 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.hosts; +"================== HOSTS truncated ==================" +"================== Step 36 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 0 +localhost stage/sql/closing tables 0 +localhost stage/sql/init 0 +localhost stage/sql/Opening tables 0 +localhost stage/sql/starting 0 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 0 +localhost statement/sql/insert 0 +localhost statement/sql/select 0 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 0 +execute dump_transactions_global; +event_name count_star +transaction 0 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 1 diff --git a/mysql-test/suite/perfschema/r/event_aggregate_no_a.result b/mysql-test/suite/perfschema/r/event_aggregate_no_a.result new file mode 100644 index 00000000..30948c2e --- /dev/null +++ b/mysql-test/suite/perfschema/r/event_aggregate_no_a.result @@ -0,0 +1,5251 @@ +"================== Step 1 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 0 +localhost stage/sql/closing tables 0 +localhost stage/sql/init 0 +localhost stage/sql/Opening tables 0 +localhost stage/sql/starting 0 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 0 +localhost statement/sql/insert 0 +localhost statement/sql/select 0 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 0 +execute dump_transactions_global; +event_name count_star +transaction 0 +execute dump_transactions_history; +event_name count(event_name) +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 1 +connect con1, localhost, user1, ,test; +connection default; +"================== Step 2 ==================" +call dump_thread(); +username event_name count_star +user1 wait/io/file/sql/query_log 1 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 1 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 1 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 1 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 1 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 0 +user1 stage/sql/closing tables 0 +user1 stage/sql/init 0 +user1 stage/sql/Opening tables 0 +user1 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 0 +localhost stage/sql/closing tables 0 +localhost stage/sql/init 0 +localhost stage/sql/Opening tables 0 +localhost stage/sql/starting 0 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 0 +user1 statement/sp/freturn 0 +user1 statement/sql/insert 0 +user1 statement/sql/select 0 +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 0 +localhost statement/sql/insert 0 +localhost statement/sql/select 0 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +user1 transaction 0 +execute dump_transactions_host; +host event_name count_star +localhost transaction 0 +execute dump_transactions_global; +event_name count_star +transaction 0 +execute dump_transactions_history; +event_name count(event_name) +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 2 2 +connection con1; +select uuid_short() <> 1; +uuid_short() <> 1 +1 +select uuid_short() <> 1; +uuid_short() <> 1 +1 +start transaction; +insert into test.t1 values ("marker"); +commit; +select test.f(10,20); +test.f(10,20) +30 +connection default; +"================== Step 3 ==================" +call dump_thread(); +username event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 7 +localhost wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 7 +wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 7 +wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 6 +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 4 +localhost stage/sql/closing tables 11 +localhost stage/sql/init 3 +localhost stage/sql/Opening tables 7 +localhost stage/sql/starting 6 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 4 +stage/sql/closing tables 11 +stage/sql/init 3 +stage/sql/Opening tables 7 +stage/sql/starting 6 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 4 +stage/sql/closing tables 11 +stage/sql/init 3 +stage/sql/Opening tables 7 +stage/sql/starting 6 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 0 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 1 +localhost statement/sql/insert 1 +localhost statement/sql/select 3 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 1 +statement/sql/insert 1 +statement/sql/select 3 +execute dump_statements_history; +event_name count(event_name) +statement/sp/freturn 1 +statement/sql/insert 1 +statement/sql/select 3 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +execute dump_transactions_host; +host event_name count_star +localhost transaction 2 +execute dump_transactions_global; +event_name count_star +transaction 2 +execute dump_transactions_history; +event_name count(event_name) +transaction 2 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 2 2 +connect con2, localhost, user2, ,test; +connection default; +"================== Step 4 ==================" +call dump_thread(); +username event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user2 wait/io/file/sql/query_log 1 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +user2 wait/io/file/sql/query_log 1 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 8 +localhost wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 8 +wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 8 +wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 6 +user2 stage/sql/checking permissions 0 +user2 stage/sql/closing tables 0 +user2 stage/sql/init 0 +user2 stage/sql/Opening tables 0 +user2 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 4 +localhost stage/sql/closing tables 11 +localhost stage/sql/init 3 +localhost stage/sql/Opening tables 7 +localhost stage/sql/starting 6 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 4 +stage/sql/closing tables 11 +stage/sql/init 3 +stage/sql/Opening tables 7 +stage/sql/starting 6 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 4 +stage/sql/closing tables 11 +stage/sql/init 3 +stage/sql/Opening tables 7 +stage/sql/starting 6 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 0 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 0 +user2 statement/sp/freturn 0 +user2 statement/sql/insert 0 +user2 statement/sql/select 0 +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 1 +localhost statement/sql/insert 1 +localhost statement/sql/select 3 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 1 +statement/sql/insert 1 +statement/sql/select 3 +execute dump_statements_history; +event_name count(event_name) +statement/sp/freturn 1 +statement/sql/insert 1 +statement/sql/select 3 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 0 +execute dump_transactions_host; +host event_name count_star +localhost transaction 2 +execute dump_transactions_global; +event_name count_star +transaction 2 +execute dump_transactions_history; +event_name count(event_name) +transaction 2 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +user2 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 3 3 +connection con2; +select uuid_short() <> 1; +uuid_short() <> 1 +1 +select uuid_short() <> 1; +uuid_short() <> 1 +1 +start transaction; +insert into test.t1 values ("marker"); +commit; +select test.f(10,20); +test.f(10,20) +30 +connection default; +"================== Step 5 ==================" +call dump_thread(); +username event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 14 +localhost wait/synch/rwlock/sql/LOCK_grant 2 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 14 +wait/synch/rwlock/sql/LOCK_grant 2 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 14 +wait/synch/rwlock/sql/LOCK_grant 2 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 6 +user2 stage/sql/checking permissions 4 +user2 stage/sql/closing tables 10 +user2 stage/sql/init 3 +user2 stage/sql/Opening tables 6 +user2 stage/sql/starting 6 +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 8 +localhost stage/sql/closing tables 21 +localhost stage/sql/init 6 +localhost stage/sql/Opening tables 13 +localhost stage/sql/starting 12 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 8 +stage/sql/closing tables 21 +stage/sql/init 6 +stage/sql/Opening tables 13 +stage/sql/starting 12 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 8 +stage/sql/closing tables 21 +stage/sql/init 6 +stage/sql/Opening tables 13 +stage/sql/starting 12 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 0 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 0 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 2 +localhost statement/sql/insert 2 +localhost statement/sql/select 6 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 2 +statement/sql/insert 2 +statement/sql/select 6 +execute dump_statements_history; +event_name count(event_name) +statement/sp/freturn 2 +statement/sql/insert 2 +statement/sql/select 6 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +execute dump_transactions_host; +host event_name count_star +localhost transaction 4 +execute dump_transactions_global; +event_name count_star +transaction 4 +execute dump_transactions_history; +event_name count(event_name) +transaction 4 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +user2 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 3 3 +connect con3, localhost, user3, ,test; +connection default; +"================== Step 6 ==================" +call dump_thread(); +username event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user3 wait/io/file/sql/query_log 1 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +user3 wait/io/file/sql/query_log 1 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 15 +localhost wait/synch/rwlock/sql/LOCK_grant 2 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 15 +wait/synch/rwlock/sql/LOCK_grant 2 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 15 +wait/synch/rwlock/sql/LOCK_grant 2 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 6 +user2 stage/sql/checking permissions 4 +user2 stage/sql/closing tables 10 +user2 stage/sql/init 3 +user2 stage/sql/Opening tables 6 +user2 stage/sql/starting 6 +user3 stage/sql/checking permissions 0 +user3 stage/sql/closing tables 0 +user3 stage/sql/init 0 +user3 stage/sql/Opening tables 0 +user3 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 8 +localhost stage/sql/closing tables 21 +localhost stage/sql/init 6 +localhost stage/sql/Opening tables 13 +localhost stage/sql/starting 12 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 8 +stage/sql/closing tables 21 +stage/sql/init 6 +stage/sql/Opening tables 13 +stage/sql/starting 12 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 8 +stage/sql/closing tables 21 +stage/sql/init 6 +stage/sql/Opening tables 13 +stage/sql/starting 12 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 0 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 0 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 0 +user3 statement/sp/freturn 0 +user3 statement/sql/insert 0 +user3 statement/sql/select 0 +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 2 +localhost statement/sql/insert 2 +localhost statement/sql/select 6 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 2 +statement/sql/insert 2 +statement/sql/select 6 +execute dump_statements_history; +event_name count(event_name) +statement/sp/freturn 2 +statement/sql/insert 2 +statement/sql/select 6 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 0 +execute dump_transactions_host; +host event_name count_star +localhost transaction 4 +execute dump_transactions_global; +event_name count_star +transaction 4 +execute dump_transactions_history; +event_name count(event_name) +transaction 4 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +user2 1 1 +user3 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 4 4 +connection con3; +select uuid_short() <> 1; +uuid_short() <> 1 +1 +select uuid_short() <> 1; +uuid_short() <> 1 +1 +start transaction; +insert into test.t1 values ("marker"); +commit; +select test.f(10,20); +test.f(10,20) +30 +connection default; +"================== Step 7 ==================" +call dump_thread(); +username event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user3 wait/io/file/sql/query_log 7 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +user3 wait/io/file/sql/query_log 7 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 21 +localhost wait/synch/rwlock/sql/LOCK_grant 3 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 21 +wait/synch/rwlock/sql/LOCK_grant 3 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 21 +wait/synch/rwlock/sql/LOCK_grant 3 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 6 +user2 stage/sql/checking permissions 4 +user2 stage/sql/closing tables 10 +user2 stage/sql/init 3 +user2 stage/sql/Opening tables 6 +user2 stage/sql/starting 6 +user3 stage/sql/checking permissions 4 +user3 stage/sql/closing tables 10 +user3 stage/sql/init 3 +user3 stage/sql/Opening tables 6 +user3 stage/sql/starting 6 +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 12 +localhost stage/sql/closing tables 31 +localhost stage/sql/init 9 +localhost stage/sql/Opening tables 19 +localhost stage/sql/starting 18 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 12 +stage/sql/closing tables 31 +stage/sql/init 9 +stage/sql/Opening tables 19 +stage/sql/starting 18 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 12 +stage/sql/closing tables 31 +stage/sql/init 9 +stage/sql/Opening tables 19 +stage/sql/starting 18 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 0 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 0 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 0 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 3 +localhost statement/sql/insert 3 +localhost statement/sql/select 9 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 3 +statement/sql/insert 3 +statement/sql/select 9 +execute dump_statements_history; +event_name count(event_name) +statement/sp/freturn 3 +statement/sql/insert 3 +statement/sql/select 9 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +execute dump_transactions_host; +host event_name count_star +localhost transaction 6 +execute dump_transactions_global; +event_name count_star +transaction 6 +execute dump_transactions_history; +event_name count(event_name) +transaction 6 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +user2 1 1 +user3 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 4 4 +connect con4, localhost, user4, ,test; +connection default; +"================== Step 8 ==================" +call dump_thread(); +username event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user3 wait/io/file/sql/query_log 7 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user4 wait/io/file/sql/query_log 1 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +user3 wait/io/file/sql/query_log 7 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +user4 wait/io/file/sql/query_log 1 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 22 +localhost wait/synch/rwlock/sql/LOCK_grant 3 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 22 +wait/synch/rwlock/sql/LOCK_grant 3 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 22 +wait/synch/rwlock/sql/LOCK_grant 3 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 6 +user2 stage/sql/checking permissions 4 +user2 stage/sql/closing tables 10 +user2 stage/sql/init 3 +user2 stage/sql/Opening tables 6 +user2 stage/sql/starting 6 +user3 stage/sql/checking permissions 4 +user3 stage/sql/closing tables 10 +user3 stage/sql/init 3 +user3 stage/sql/Opening tables 6 +user3 stage/sql/starting 6 +user4 stage/sql/checking permissions 0 +user4 stage/sql/closing tables 0 +user4 stage/sql/init 0 +user4 stage/sql/Opening tables 0 +user4 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 12 +localhost stage/sql/closing tables 31 +localhost stage/sql/init 9 +localhost stage/sql/Opening tables 19 +localhost stage/sql/starting 18 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 12 +stage/sql/closing tables 31 +stage/sql/init 9 +stage/sql/Opening tables 19 +stage/sql/starting 18 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 12 +stage/sql/closing tables 31 +stage/sql/init 9 +stage/sql/Opening tables 19 +stage/sql/starting 18 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 0 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 0 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 0 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 0 +user4 statement/sp/freturn 0 +user4 statement/sql/insert 0 +user4 statement/sql/select 0 +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 3 +localhost statement/sql/insert 3 +localhost statement/sql/select 9 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 3 +statement/sql/insert 3 +statement/sql/select 9 +execute dump_statements_history; +event_name count(event_name) +statement/sp/freturn 3 +statement/sql/insert 3 +statement/sql/select 9 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 0 +execute dump_transactions_host; +host event_name count_star +localhost transaction 6 +execute dump_transactions_global; +event_name count_star +transaction 6 +execute dump_transactions_history; +event_name count(event_name) +transaction 6 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +user2 1 1 +user3 1 1 +user4 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 5 5 +connection con4; +select uuid_short() <> 1; +uuid_short() <> 1 +1 +select uuid_short() <> 1; +uuid_short() <> 1 +1 +start transaction; +insert into test.t1 values ("marker"); +commit; +select test.f(10,20); +test.f(10,20) +30 +connection default; +"================== Step 9 ==================" +call dump_thread(); +username event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user3 wait/io/file/sql/query_log 7 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user4 wait/io/file/sql/query_log 7 +user4 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +user3 wait/io/file/sql/query_log 7 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +user4 wait/io/file/sql/query_log 7 +user4 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 28 +localhost wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 28 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 28 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 6 +user2 stage/sql/checking permissions 4 +user2 stage/sql/closing tables 10 +user2 stage/sql/init 3 +user2 stage/sql/Opening tables 6 +user2 stage/sql/starting 6 +user3 stage/sql/checking permissions 4 +user3 stage/sql/closing tables 10 +user3 stage/sql/init 3 +user3 stage/sql/Opening tables 6 +user3 stage/sql/starting 6 +user4 stage/sql/checking permissions 4 +user4 stage/sql/closing tables 10 +user4 stage/sql/init 3 +user4 stage/sql/Opening tables 6 +user4 stage/sql/starting 6 +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 16 +localhost stage/sql/closing tables 41 +localhost stage/sql/init 12 +localhost stage/sql/Opening tables 25 +localhost stage/sql/starting 24 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 24 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 24 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 0 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 0 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 0 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 0 +user4 statement/sp/freturn 1 +user4 statement/sql/insert 1 +user4 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +user2 1 1 +user3 1 1 +user4 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 5 5 +disconnect con1; +connection default; +"================== Step 10 ==================" +call dump_thread(); +username status +user1 not found +username event_name count_star +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user3 wait/io/file/sql/query_log 7 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user4 wait/io/file/sql/query_log 7 +user4 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 8 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +user3 wait/io/file/sql/query_log 7 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +user4 wait/io/file/sql/query_log 7 +user4 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 29 +localhost wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 29 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 29 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 7 +user2 stage/sql/checking permissions 4 +user2 stage/sql/closing tables 10 +user2 stage/sql/init 3 +user2 stage/sql/Opening tables 6 +user2 stage/sql/starting 6 +user3 stage/sql/checking permissions 4 +user3 stage/sql/closing tables 10 +user3 stage/sql/init 3 +user3 stage/sql/Opening tables 6 +user3 stage/sql/starting 6 +user4 stage/sql/checking permissions 4 +user4 stage/sql/closing tables 10 +user4 stage/sql/init 3 +user4 stage/sql/Opening tables 6 +user4 stage/sql/starting 6 +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 16 +localhost stage/sql/closing tables 41 +localhost stage/sql/init 12 +localhost stage/sql/Opening tables 25 +localhost stage/sql/starting 25 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 25 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 25 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 1 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 0 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 0 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 0 +user4 statement/sp/freturn 1 +user4 statement/sql/insert 1 +user4 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 1 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 1 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 1 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 1 1 +user3 1 1 +user4 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 4 5 +disconnect con2; +connection default; +"================== Step 11 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username event_name count_star +user3 wait/io/file/sql/query_log 7 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user4 wait/io/file/sql/query_log 7 +user4 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 8 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +user2 wait/io/file/sql/query_log 8 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +user3 wait/io/file/sql/query_log 7 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +user4 wait/io/file/sql/query_log 7 +user4 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 30 +localhost wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 30 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 30 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 7 +user2 stage/sql/checking permissions 4 +user2 stage/sql/closing tables 10 +user2 stage/sql/init 3 +user2 stage/sql/Opening tables 6 +user2 stage/sql/starting 7 +user3 stage/sql/checking permissions 4 +user3 stage/sql/closing tables 10 +user3 stage/sql/init 3 +user3 stage/sql/Opening tables 6 +user3 stage/sql/starting 6 +user4 stage/sql/checking permissions 4 +user4 stage/sql/closing tables 10 +user4 stage/sql/init 3 +user4 stage/sql/Opening tables 6 +user4 stage/sql/starting 6 +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 16 +localhost stage/sql/closing tables 41 +localhost stage/sql/init 12 +localhost stage/sql/Opening tables 25 +localhost stage/sql/starting 26 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 26 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 26 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 1 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 1 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 0 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 0 +user4 statement/sp/freturn 1 +user4 statement/sql/insert 1 +user4 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 2 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 2 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 2 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 1 1 +user4 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 3 5 +disconnect con3; +connection default; +"================== Step 12 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username event_name count_star +user4 wait/io/file/sql/query_log 7 +user4 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 8 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +user2 wait/io/file/sql/query_log 8 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +user3 wait/io/file/sql/query_log 8 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +user4 wait/io/file/sql/query_log 7 +user4 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 31 +localhost wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 31 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 31 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 7 +user2 stage/sql/checking permissions 4 +user2 stage/sql/closing tables 10 +user2 stage/sql/init 3 +user2 stage/sql/Opening tables 6 +user2 stage/sql/starting 7 +user3 stage/sql/checking permissions 4 +user3 stage/sql/closing tables 10 +user3 stage/sql/init 3 +user3 stage/sql/Opening tables 6 +user3 stage/sql/starting 7 +user4 stage/sql/checking permissions 4 +user4 stage/sql/closing tables 10 +user4 stage/sql/init 3 +user4 stage/sql/Opening tables 6 +user4 stage/sql/starting 6 +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 16 +localhost stage/sql/closing tables 41 +localhost stage/sql/init 12 +localhost stage/sql/Opening tables 25 +localhost stage/sql/starting 27 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 27 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 27 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 1 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 1 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 1 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 0 +user4 statement/sp/freturn 1 +user4 statement/sql/insert 1 +user4 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 3 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 3 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 3 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 2 5 +disconnect con4; +connection default; +"================== Step 13 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 8 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +user2 wait/io/file/sql/query_log 8 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +user3 wait/io/file/sql/query_log 8 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +user4 wait/io/file/sql/query_log 8 +user4 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 32 +localhost wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 7 +user2 stage/sql/checking permissions 4 +user2 stage/sql/closing tables 10 +user2 stage/sql/init 3 +user2 stage/sql/Opening tables 6 +user2 stage/sql/starting 7 +user3 stage/sql/checking permissions 4 +user3 stage/sql/closing tables 10 +user3 stage/sql/init 3 +user3 stage/sql/Opening tables 6 +user3 stage/sql/starting 7 +user4 stage/sql/checking permissions 4 +user4 stage/sql/closing tables 10 +user4 stage/sql/init 3 +user4 stage/sql/Opening tables 6 +user4 stage/sql/starting 7 +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 16 +localhost stage/sql/closing tables 41 +localhost stage/sql/init 12 +localhost stage/sql/Opening tables 25 +localhost stage/sql/starting 28 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 1 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 1 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 1 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 1 +user4 statement/sp/freturn 1 +user4 statement/sql/insert 1 +user4 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 4 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +connection default; +truncate performance_schema.events_waits_summary_by_thread_by_event_name; +"================== WAITS_BY_THREAD truncated ==================" +"================== Step 14 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 8 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +user2 wait/io/file/sql/query_log 8 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +user3 wait/io/file/sql/query_log 8 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +user4 wait/io/file/sql/query_log 8 +user4 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 32 +localhost wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 7 +user2 stage/sql/checking permissions 4 +user2 stage/sql/closing tables 10 +user2 stage/sql/init 3 +user2 stage/sql/Opening tables 6 +user2 stage/sql/starting 7 +user3 stage/sql/checking permissions 4 +user3 stage/sql/closing tables 10 +user3 stage/sql/init 3 +user3 stage/sql/Opening tables 6 +user3 stage/sql/starting 7 +user4 stage/sql/checking permissions 4 +user4 stage/sql/closing tables 10 +user4 stage/sql/init 3 +user4 stage/sql/Opening tables 6 +user4 stage/sql/starting 7 +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 16 +localhost stage/sql/closing tables 41 +localhost stage/sql/init 12 +localhost stage/sql/Opening tables 25 +localhost stage/sql/starting 28 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 1 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 1 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 1 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 1 +user4 statement/sp/freturn 1 +user4 statement/sql/insert 1 +user4 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 4 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_waits_summary_by_account_by_event_name; +"================== WAITS_BY_ACCOUNT truncated ==================" +"================== Step 15 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 8 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +user2 wait/io/file/sql/query_log 8 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +user3 wait/io/file/sql/query_log 8 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +user4 wait/io/file/sql/query_log 8 +user4 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 32 +localhost wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 7 +user2 stage/sql/checking permissions 4 +user2 stage/sql/closing tables 10 +user2 stage/sql/init 3 +user2 stage/sql/Opening tables 6 +user2 stage/sql/starting 7 +user3 stage/sql/checking permissions 4 +user3 stage/sql/closing tables 10 +user3 stage/sql/init 3 +user3 stage/sql/Opening tables 6 +user3 stage/sql/starting 7 +user4 stage/sql/checking permissions 4 +user4 stage/sql/closing tables 10 +user4 stage/sql/init 3 +user4 stage/sql/Opening tables 6 +user4 stage/sql/starting 7 +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 16 +localhost stage/sql/closing tables 41 +localhost stage/sql/init 12 +localhost stage/sql/Opening tables 25 +localhost stage/sql/starting 28 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 1 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 1 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 1 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 1 +user4 statement/sp/freturn 1 +user4 statement/sql/insert 1 +user4 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 4 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_waits_summary_by_user_by_event_name; +"================== WAITS_BY_USER truncated ==================" +"================== Step 16 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 32 +localhost wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 7 +user2 stage/sql/checking permissions 4 +user2 stage/sql/closing tables 10 +user2 stage/sql/init 3 +user2 stage/sql/Opening tables 6 +user2 stage/sql/starting 7 +user3 stage/sql/checking permissions 4 +user3 stage/sql/closing tables 10 +user3 stage/sql/init 3 +user3 stage/sql/Opening tables 6 +user3 stage/sql/starting 7 +user4 stage/sql/checking permissions 4 +user4 stage/sql/closing tables 10 +user4 stage/sql/init 3 +user4 stage/sql/Opening tables 6 +user4 stage/sql/starting 7 +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 16 +localhost stage/sql/closing tables 41 +localhost stage/sql/init 12 +localhost stage/sql/Opening tables 25 +localhost stage/sql/starting 28 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 1 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 1 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 1 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 1 +user4 statement/sp/freturn 1 +user4 statement/sql/insert 1 +user4 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 4 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_waits_summary_by_host_by_event_name; +"================== WAITS_BY_HOST truncated ==================" +"================== Step 17 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 7 +user2 stage/sql/checking permissions 4 +user2 stage/sql/closing tables 10 +user2 stage/sql/init 3 +user2 stage/sql/Opening tables 6 +user2 stage/sql/starting 7 +user3 stage/sql/checking permissions 4 +user3 stage/sql/closing tables 10 +user3 stage/sql/init 3 +user3 stage/sql/Opening tables 6 +user3 stage/sql/starting 7 +user4 stage/sql/checking permissions 4 +user4 stage/sql/closing tables 10 +user4 stage/sql/init 3 +user4 stage/sql/Opening tables 6 +user4 stage/sql/starting 7 +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 16 +localhost stage/sql/closing tables 41 +localhost stage/sql/init 12 +localhost stage/sql/Opening tables 25 +localhost stage/sql/starting 28 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 1 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 1 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 1 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 1 +user4 statement/sp/freturn 1 +user4 statement/sql/insert 1 +user4 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 4 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_waits_summary_global_by_event_name; +"================== WAITS_GLOBAL truncated ==================" +"================== Step 18 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 7 +user2 stage/sql/checking permissions 4 +user2 stage/sql/closing tables 10 +user2 stage/sql/init 3 +user2 stage/sql/Opening tables 6 +user2 stage/sql/starting 7 +user3 stage/sql/checking permissions 4 +user3 stage/sql/closing tables 10 +user3 stage/sql/init 3 +user3 stage/sql/Opening tables 6 +user3 stage/sql/starting 7 +user4 stage/sql/checking permissions 4 +user4 stage/sql/closing tables 10 +user4 stage/sql/init 3 +user4 stage/sql/Opening tables 6 +user4 stage/sql/starting 7 +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 16 +localhost stage/sql/closing tables 41 +localhost stage/sql/init 12 +localhost stage/sql/Opening tables 25 +localhost stage/sql/starting 28 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 1 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 1 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 1 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 1 +user4 statement/sp/freturn 1 +user4 statement/sql/insert 1 +user4 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 4 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_stages_summary_by_thread_by_event_name; +"================== STAGES_BY_THREAD truncated ==================" +"================== Step 19 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 7 +user2 stage/sql/checking permissions 4 +user2 stage/sql/closing tables 10 +user2 stage/sql/init 3 +user2 stage/sql/Opening tables 6 +user2 stage/sql/starting 7 +user3 stage/sql/checking permissions 4 +user3 stage/sql/closing tables 10 +user3 stage/sql/init 3 +user3 stage/sql/Opening tables 6 +user3 stage/sql/starting 7 +user4 stage/sql/checking permissions 4 +user4 stage/sql/closing tables 10 +user4 stage/sql/init 3 +user4 stage/sql/Opening tables 6 +user4 stage/sql/starting 7 +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 16 +localhost stage/sql/closing tables 41 +localhost stage/sql/init 12 +localhost stage/sql/Opening tables 25 +localhost stage/sql/starting 28 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 1 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 1 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 1 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 1 +user4 statement/sp/freturn 1 +user4 statement/sql/insert 1 +user4 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 4 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_stages_summary_by_account_by_event_name; +"================== STAGES_BY_ACCOUNT truncated ==================" +"================== Step 20 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 7 +user2 stage/sql/checking permissions 4 +user2 stage/sql/closing tables 10 +user2 stage/sql/init 3 +user2 stage/sql/Opening tables 6 +user2 stage/sql/starting 7 +user3 stage/sql/checking permissions 4 +user3 stage/sql/closing tables 10 +user3 stage/sql/init 3 +user3 stage/sql/Opening tables 6 +user3 stage/sql/starting 7 +user4 stage/sql/checking permissions 4 +user4 stage/sql/closing tables 10 +user4 stage/sql/init 3 +user4 stage/sql/Opening tables 6 +user4 stage/sql/starting 7 +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 16 +localhost stage/sql/closing tables 41 +localhost stage/sql/init 12 +localhost stage/sql/Opening tables 25 +localhost stage/sql/starting 28 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 1 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 1 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 1 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 1 +user4 statement/sp/freturn 1 +user4 statement/sql/insert 1 +user4 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 4 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_stages_summary_by_user_by_event_name; +"================== STAGES_BY_USER truncated ==================" +"================== Step 21 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 0 +user1 stage/sql/closing tables 0 +user1 stage/sql/init 0 +user1 stage/sql/Opening tables 0 +user1 stage/sql/starting 0 +user2 stage/sql/checking permissions 0 +user2 stage/sql/closing tables 0 +user2 stage/sql/init 0 +user2 stage/sql/Opening tables 0 +user2 stage/sql/starting 0 +user3 stage/sql/checking permissions 0 +user3 stage/sql/closing tables 0 +user3 stage/sql/init 0 +user3 stage/sql/Opening tables 0 +user3 stage/sql/starting 0 +user4 stage/sql/checking permissions 0 +user4 stage/sql/closing tables 0 +user4 stage/sql/init 0 +user4 stage/sql/Opening tables 0 +user4 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 16 +localhost stage/sql/closing tables 41 +localhost stage/sql/init 12 +localhost stage/sql/Opening tables 25 +localhost stage/sql/starting 28 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 1 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 1 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 1 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 1 +user4 statement/sp/freturn 1 +user4 statement/sql/insert 1 +user4 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 4 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_stages_summary_by_host_by_event_name; +"================== STAGES_BY_HOST truncated ==================" +"================== Step 22 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 0 +user1 stage/sql/closing tables 0 +user1 stage/sql/init 0 +user1 stage/sql/Opening tables 0 +user1 stage/sql/starting 0 +user2 stage/sql/checking permissions 0 +user2 stage/sql/closing tables 0 +user2 stage/sql/init 0 +user2 stage/sql/Opening tables 0 +user2 stage/sql/starting 0 +user3 stage/sql/checking permissions 0 +user3 stage/sql/closing tables 0 +user3 stage/sql/init 0 +user3 stage/sql/Opening tables 0 +user3 stage/sql/starting 0 +user4 stage/sql/checking permissions 0 +user4 stage/sql/closing tables 0 +user4 stage/sql/init 0 +user4 stage/sql/Opening tables 0 +user4 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 0 +localhost stage/sql/closing tables 0 +localhost stage/sql/init 0 +localhost stage/sql/Opening tables 0 +localhost stage/sql/starting 0 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 1 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 1 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 1 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 1 +user4 statement/sp/freturn 1 +user4 statement/sql/insert 1 +user4 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 4 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_stages_summary_global_by_event_name; +"================== STAGES_GLOBAL truncated ==================" +"================== Step 23 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 0 +user1 stage/sql/closing tables 0 +user1 stage/sql/init 0 +user1 stage/sql/Opening tables 0 +user1 stage/sql/starting 0 +user2 stage/sql/checking permissions 0 +user2 stage/sql/closing tables 0 +user2 stage/sql/init 0 +user2 stage/sql/Opening tables 0 +user2 stage/sql/starting 0 +user3 stage/sql/checking permissions 0 +user3 stage/sql/closing tables 0 +user3 stage/sql/init 0 +user3 stage/sql/Opening tables 0 +user3 stage/sql/starting 0 +user4 stage/sql/checking permissions 0 +user4 stage/sql/closing tables 0 +user4 stage/sql/init 0 +user4 stage/sql/Opening tables 0 +user4 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 0 +localhost stage/sql/closing tables 0 +localhost stage/sql/init 0 +localhost stage/sql/Opening tables 0 +localhost stage/sql/starting 0 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 1 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 1 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 1 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 1 +user4 statement/sp/freturn 1 +user4 statement/sql/insert 1 +user4 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 4 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_statements_summary_by_thread_by_event_name; +"================== STATEMENTS_BY_THREAD truncated ==================" +"================== Step 24 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 0 +user1 stage/sql/closing tables 0 +user1 stage/sql/init 0 +user1 stage/sql/Opening tables 0 +user1 stage/sql/starting 0 +user2 stage/sql/checking permissions 0 +user2 stage/sql/closing tables 0 +user2 stage/sql/init 0 +user2 stage/sql/Opening tables 0 +user2 stage/sql/starting 0 +user3 stage/sql/checking permissions 0 +user3 stage/sql/closing tables 0 +user3 stage/sql/init 0 +user3 stage/sql/Opening tables 0 +user3 stage/sql/starting 0 +user4 stage/sql/checking permissions 0 +user4 stage/sql/closing tables 0 +user4 stage/sql/init 0 +user4 stage/sql/Opening tables 0 +user4 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 0 +localhost stage/sql/closing tables 0 +localhost stage/sql/init 0 +localhost stage/sql/Opening tables 0 +localhost stage/sql/starting 0 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 1 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 1 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 1 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 1 +user4 statement/sp/freturn 1 +user4 statement/sql/insert 1 +user4 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 4 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_statements_summary_by_account_by_event_name; +"================== STATEMENTS_BY_ACCOUNT truncated ==================" +"================== Step 25 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 0 +user1 stage/sql/closing tables 0 +user1 stage/sql/init 0 +user1 stage/sql/Opening tables 0 +user1 stage/sql/starting 0 +user2 stage/sql/checking permissions 0 +user2 stage/sql/closing tables 0 +user2 stage/sql/init 0 +user2 stage/sql/Opening tables 0 +user2 stage/sql/starting 0 +user3 stage/sql/checking permissions 0 +user3 stage/sql/closing tables 0 +user3 stage/sql/init 0 +user3 stage/sql/Opening tables 0 +user3 stage/sql/starting 0 +user4 stage/sql/checking permissions 0 +user4 stage/sql/closing tables 0 +user4 stage/sql/init 0 +user4 stage/sql/Opening tables 0 +user4 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 0 +localhost stage/sql/closing tables 0 +localhost stage/sql/init 0 +localhost stage/sql/Opening tables 0 +localhost stage/sql/starting 0 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 1 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 1 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 1 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 1 +user4 statement/sp/freturn 1 +user4 statement/sql/insert 1 +user4 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 4 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_statements_summary_by_user_by_event_name; +"================== STATEMENTS_BY_USER truncated ==================" +"================== Step 26 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 0 +user1 stage/sql/closing tables 0 +user1 stage/sql/init 0 +user1 stage/sql/Opening tables 0 +user1 stage/sql/starting 0 +user2 stage/sql/checking permissions 0 +user2 stage/sql/closing tables 0 +user2 stage/sql/init 0 +user2 stage/sql/Opening tables 0 +user2 stage/sql/starting 0 +user3 stage/sql/checking permissions 0 +user3 stage/sql/closing tables 0 +user3 stage/sql/init 0 +user3 stage/sql/Opening tables 0 +user3 stage/sql/starting 0 +user4 stage/sql/checking permissions 0 +user4 stage/sql/closing tables 0 +user4 stage/sql/init 0 +user4 stage/sql/Opening tables 0 +user4 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 0 +localhost stage/sql/closing tables 0 +localhost stage/sql/init 0 +localhost stage/sql/Opening tables 0 +localhost stage/sql/starting 0 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 0 +user1 statement/sp/freturn 0 +user1 statement/sql/insert 0 +user1 statement/sql/select 0 +user2 statement/com/Error 0 +user2 statement/com/Quit 0 +user2 statement/sp/freturn 0 +user2 statement/sql/insert 0 +user2 statement/sql/select 0 +user3 statement/com/Error 0 +user3 statement/com/Quit 0 +user3 statement/sp/freturn 0 +user3 statement/sql/insert 0 +user3 statement/sql/select 0 +user4 statement/com/Error 0 +user4 statement/com/Quit 0 +user4 statement/sp/freturn 0 +user4 statement/sql/insert 0 +user4 statement/sql/select 0 +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 4 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_statements_summary_by_host_by_event_name; +"================== STATEMENTS_BY_HOST truncated ==================" +"================== Step 27 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 0 +user1 stage/sql/closing tables 0 +user1 stage/sql/init 0 +user1 stage/sql/Opening tables 0 +user1 stage/sql/starting 0 +user2 stage/sql/checking permissions 0 +user2 stage/sql/closing tables 0 +user2 stage/sql/init 0 +user2 stage/sql/Opening tables 0 +user2 stage/sql/starting 0 +user3 stage/sql/checking permissions 0 +user3 stage/sql/closing tables 0 +user3 stage/sql/init 0 +user3 stage/sql/Opening tables 0 +user3 stage/sql/starting 0 +user4 stage/sql/checking permissions 0 +user4 stage/sql/closing tables 0 +user4 stage/sql/init 0 +user4 stage/sql/Opening tables 0 +user4 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 0 +localhost stage/sql/closing tables 0 +localhost stage/sql/init 0 +localhost stage/sql/Opening tables 0 +localhost stage/sql/starting 0 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 0 +user1 statement/sp/freturn 0 +user1 statement/sql/insert 0 +user1 statement/sql/select 0 +user2 statement/com/Error 0 +user2 statement/com/Quit 0 +user2 statement/sp/freturn 0 +user2 statement/sql/insert 0 +user2 statement/sql/select 0 +user3 statement/com/Error 0 +user3 statement/com/Quit 0 +user3 statement/sp/freturn 0 +user3 statement/sql/insert 0 +user3 statement/sql/select 0 +user4 statement/com/Error 0 +user4 statement/com/Quit 0 +user4 statement/sp/freturn 0 +user4 statement/sql/insert 0 +user4 statement/sql/select 0 +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 0 +localhost statement/sql/insert 0 +localhost statement/sql/select 0 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_statements_summary_global_by_event_name; +"================== STATEMENTS_GLOBAL truncated ==================" +"================== Step 28 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 0 +user1 stage/sql/closing tables 0 +user1 stage/sql/init 0 +user1 stage/sql/Opening tables 0 +user1 stage/sql/starting 0 +user2 stage/sql/checking permissions 0 +user2 stage/sql/closing tables 0 +user2 stage/sql/init 0 +user2 stage/sql/Opening tables 0 +user2 stage/sql/starting 0 +user3 stage/sql/checking permissions 0 +user3 stage/sql/closing tables 0 +user3 stage/sql/init 0 +user3 stage/sql/Opening tables 0 +user3 stage/sql/starting 0 +user4 stage/sql/checking permissions 0 +user4 stage/sql/closing tables 0 +user4 stage/sql/init 0 +user4 stage/sql/Opening tables 0 +user4 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 0 +localhost stage/sql/closing tables 0 +localhost stage/sql/init 0 +localhost stage/sql/Opening tables 0 +localhost stage/sql/starting 0 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 0 +user1 statement/sp/freturn 0 +user1 statement/sql/insert 0 +user1 statement/sql/select 0 +user2 statement/com/Error 0 +user2 statement/com/Quit 0 +user2 statement/sp/freturn 0 +user2 statement/sql/insert 0 +user2 statement/sql/select 0 +user3 statement/com/Error 0 +user3 statement/com/Quit 0 +user3 statement/sp/freturn 0 +user3 statement/sql/insert 0 +user3 statement/sql/select 0 +user4 statement/com/Error 0 +user4 statement/com/Quit 0 +user4 statement/sp/freturn 0 +user4 statement/sql/insert 0 +user4 statement/sql/select 0 +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 0 +localhost statement/sql/insert 0 +localhost statement/sql/select 0 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_transactions_summary_by_thread_by_event_name; +"================== TRANSACTIONS_BY_THREAD truncated ==================" +"================== Step 29 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 0 +user1 stage/sql/closing tables 0 +user1 stage/sql/init 0 +user1 stage/sql/Opening tables 0 +user1 stage/sql/starting 0 +user2 stage/sql/checking permissions 0 +user2 stage/sql/closing tables 0 +user2 stage/sql/init 0 +user2 stage/sql/Opening tables 0 +user2 stage/sql/starting 0 +user3 stage/sql/checking permissions 0 +user3 stage/sql/closing tables 0 +user3 stage/sql/init 0 +user3 stage/sql/Opening tables 0 +user3 stage/sql/starting 0 +user4 stage/sql/checking permissions 0 +user4 stage/sql/closing tables 0 +user4 stage/sql/init 0 +user4 stage/sql/Opening tables 0 +user4 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 0 +localhost stage/sql/closing tables 0 +localhost stage/sql/init 0 +localhost stage/sql/Opening tables 0 +localhost stage/sql/starting 0 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 0 +user1 statement/sp/freturn 0 +user1 statement/sql/insert 0 +user1 statement/sql/select 0 +user2 statement/com/Error 0 +user2 statement/com/Quit 0 +user2 statement/sp/freturn 0 +user2 statement/sql/insert 0 +user2 statement/sql/select 0 +user3 statement/com/Error 0 +user3 statement/com/Quit 0 +user3 statement/sp/freturn 0 +user3 statement/sql/insert 0 +user3 statement/sql/select 0 +user4 statement/com/Error 0 +user4 statement/com/Quit 0 +user4 statement/sp/freturn 0 +user4 statement/sql/insert 0 +user4 statement/sql/select 0 +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 0 +localhost statement/sql/insert 0 +localhost statement/sql/select 0 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_transactions_summary_by_account_by_event_name; +"================== TRANSACTIONS_BY_ACCOUNT truncated ==================" +"================== Step 30 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 0 +user1 stage/sql/closing tables 0 +user1 stage/sql/init 0 +user1 stage/sql/Opening tables 0 +user1 stage/sql/starting 0 +user2 stage/sql/checking permissions 0 +user2 stage/sql/closing tables 0 +user2 stage/sql/init 0 +user2 stage/sql/Opening tables 0 +user2 stage/sql/starting 0 +user3 stage/sql/checking permissions 0 +user3 stage/sql/closing tables 0 +user3 stage/sql/init 0 +user3 stage/sql/Opening tables 0 +user3 stage/sql/starting 0 +user4 stage/sql/checking permissions 0 +user4 stage/sql/closing tables 0 +user4 stage/sql/init 0 +user4 stage/sql/Opening tables 0 +user4 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 0 +localhost stage/sql/closing tables 0 +localhost stage/sql/init 0 +localhost stage/sql/Opening tables 0 +localhost stage/sql/starting 0 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 0 +user1 statement/sp/freturn 0 +user1 statement/sql/insert 0 +user1 statement/sql/select 0 +user2 statement/com/Error 0 +user2 statement/com/Quit 0 +user2 statement/sp/freturn 0 +user2 statement/sql/insert 0 +user2 statement/sql/select 0 +user3 statement/com/Error 0 +user3 statement/com/Quit 0 +user3 statement/sp/freturn 0 +user3 statement/sql/insert 0 +user3 statement/sql/select 0 +user4 statement/com/Error 0 +user4 statement/com/Quit 0 +user4 statement/sp/freturn 0 +user4 statement/sql/insert 0 +user4 statement/sql/select 0 +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 0 +localhost statement/sql/insert 0 +localhost statement/sql/select 0 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_transactions_summary_by_user_by_event_name; +"================== TRANSACTIONS_BY_USER truncated ==================" +"================== Step 31 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 0 +user1 stage/sql/closing tables 0 +user1 stage/sql/init 0 +user1 stage/sql/Opening tables 0 +user1 stage/sql/starting 0 +user2 stage/sql/checking permissions 0 +user2 stage/sql/closing tables 0 +user2 stage/sql/init 0 +user2 stage/sql/Opening tables 0 +user2 stage/sql/starting 0 +user3 stage/sql/checking permissions 0 +user3 stage/sql/closing tables 0 +user3 stage/sql/init 0 +user3 stage/sql/Opening tables 0 +user3 stage/sql/starting 0 +user4 stage/sql/checking permissions 0 +user4 stage/sql/closing tables 0 +user4 stage/sql/init 0 +user4 stage/sql/Opening tables 0 +user4 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 0 +localhost stage/sql/closing tables 0 +localhost stage/sql/init 0 +localhost stage/sql/Opening tables 0 +localhost stage/sql/starting 0 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 0 +user1 statement/sp/freturn 0 +user1 statement/sql/insert 0 +user1 statement/sql/select 0 +user2 statement/com/Error 0 +user2 statement/com/Quit 0 +user2 statement/sp/freturn 0 +user2 statement/sql/insert 0 +user2 statement/sql/select 0 +user3 statement/com/Error 0 +user3 statement/com/Quit 0 +user3 statement/sp/freturn 0 +user3 statement/sql/insert 0 +user3 statement/sql/select 0 +user4 statement/com/Error 0 +user4 statement/com/Quit 0 +user4 statement/sp/freturn 0 +user4 statement/sql/insert 0 +user4 statement/sql/select 0 +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 0 +localhost statement/sql/insert 0 +localhost statement/sql/select 0 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +user1 transaction 0 +user2 transaction 0 +user3 transaction 0 +user4 transaction 0 +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_transactions_summary_by_host_by_event_name; +"================== TRANSACTIONS_BY_HOST truncated ==================" +"================== Step 32 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 0 +user1 stage/sql/closing tables 0 +user1 stage/sql/init 0 +user1 stage/sql/Opening tables 0 +user1 stage/sql/starting 0 +user2 stage/sql/checking permissions 0 +user2 stage/sql/closing tables 0 +user2 stage/sql/init 0 +user2 stage/sql/Opening tables 0 +user2 stage/sql/starting 0 +user3 stage/sql/checking permissions 0 +user3 stage/sql/closing tables 0 +user3 stage/sql/init 0 +user3 stage/sql/Opening tables 0 +user3 stage/sql/starting 0 +user4 stage/sql/checking permissions 0 +user4 stage/sql/closing tables 0 +user4 stage/sql/init 0 +user4 stage/sql/Opening tables 0 +user4 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 0 +localhost stage/sql/closing tables 0 +localhost stage/sql/init 0 +localhost stage/sql/Opening tables 0 +localhost stage/sql/starting 0 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 0 +user1 statement/sp/freturn 0 +user1 statement/sql/insert 0 +user1 statement/sql/select 0 +user2 statement/com/Error 0 +user2 statement/com/Quit 0 +user2 statement/sp/freturn 0 +user2 statement/sql/insert 0 +user2 statement/sql/select 0 +user3 statement/com/Error 0 +user3 statement/com/Quit 0 +user3 statement/sp/freturn 0 +user3 statement/sql/insert 0 +user3 statement/sql/select 0 +user4 statement/com/Error 0 +user4 statement/com/Quit 0 +user4 statement/sp/freturn 0 +user4 statement/sql/insert 0 +user4 statement/sql/select 0 +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 0 +localhost statement/sql/insert 0 +localhost statement/sql/select 0 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +user1 transaction 0 +user2 transaction 0 +user3 transaction 0 +user4 transaction 0 +execute dump_transactions_host; +host event_name count_star +localhost transaction 0 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_transactions_summary_global_by_event_name; +"================== TRANSACTIONS_GLOBAL truncated ==================" +"================== Step 33 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 0 +user1 stage/sql/closing tables 0 +user1 stage/sql/init 0 +user1 stage/sql/Opening tables 0 +user1 stage/sql/starting 0 +user2 stage/sql/checking permissions 0 +user2 stage/sql/closing tables 0 +user2 stage/sql/init 0 +user2 stage/sql/Opening tables 0 +user2 stage/sql/starting 0 +user3 stage/sql/checking permissions 0 +user3 stage/sql/closing tables 0 +user3 stage/sql/init 0 +user3 stage/sql/Opening tables 0 +user3 stage/sql/starting 0 +user4 stage/sql/checking permissions 0 +user4 stage/sql/closing tables 0 +user4 stage/sql/init 0 +user4 stage/sql/Opening tables 0 +user4 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 0 +localhost stage/sql/closing tables 0 +localhost stage/sql/init 0 +localhost stage/sql/Opening tables 0 +localhost stage/sql/starting 0 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 0 +user1 statement/sp/freturn 0 +user1 statement/sql/insert 0 +user1 statement/sql/select 0 +user2 statement/com/Error 0 +user2 statement/com/Quit 0 +user2 statement/sp/freturn 0 +user2 statement/sql/insert 0 +user2 statement/sql/select 0 +user3 statement/com/Error 0 +user3 statement/com/Quit 0 +user3 statement/sp/freturn 0 +user3 statement/sql/insert 0 +user3 statement/sql/select 0 +user4 statement/com/Error 0 +user4 statement/com/Quit 0 +user4 statement/sp/freturn 0 +user4 statement/sql/insert 0 +user4 statement/sql/select 0 +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 0 +localhost statement/sql/insert 0 +localhost statement/sql/select 0 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +user1 transaction 0 +user2 transaction 0 +user3 transaction 0 +user4 transaction 0 +execute dump_transactions_host; +host event_name count_star +localhost transaction 0 +execute dump_transactions_global; +event_name count_star +transaction 0 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.accounts; +"================== ACCOUNTS truncated ==================" +"================== Step 34 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 0 +user1 stage/sql/closing tables 0 +user1 stage/sql/init 0 +user1 stage/sql/Opening tables 0 +user1 stage/sql/starting 0 +user2 stage/sql/checking permissions 0 +user2 stage/sql/closing tables 0 +user2 stage/sql/init 0 +user2 stage/sql/Opening tables 0 +user2 stage/sql/starting 0 +user3 stage/sql/checking permissions 0 +user3 stage/sql/closing tables 0 +user3 stage/sql/init 0 +user3 stage/sql/Opening tables 0 +user3 stage/sql/starting 0 +user4 stage/sql/checking permissions 0 +user4 stage/sql/closing tables 0 +user4 stage/sql/init 0 +user4 stage/sql/Opening tables 0 +user4 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 0 +localhost stage/sql/closing tables 0 +localhost stage/sql/init 0 +localhost stage/sql/Opening tables 0 +localhost stage/sql/starting 0 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 0 +user1 statement/sp/freturn 0 +user1 statement/sql/insert 0 +user1 statement/sql/select 0 +user2 statement/com/Error 0 +user2 statement/com/Quit 0 +user2 statement/sp/freturn 0 +user2 statement/sql/insert 0 +user2 statement/sql/select 0 +user3 statement/com/Error 0 +user3 statement/com/Quit 0 +user3 statement/sp/freturn 0 +user3 statement/sql/insert 0 +user3 statement/sql/select 0 +user4 statement/com/Error 0 +user4 statement/com/Quit 0 +user4 statement/sp/freturn 0 +user4 statement/sql/insert 0 +user4 statement/sql/select 0 +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 0 +localhost statement/sql/insert 0 +localhost statement/sql/select 0 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +user1 transaction 0 +user2 transaction 0 +user3 transaction 0 +user4 transaction 0 +execute dump_transactions_host; +host event_name count_star +localhost transaction 0 +execute dump_transactions_global; +event_name count_star +transaction 0 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.users; +"================== USERS truncated ==================" +"================== Step 35 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 0 +localhost stage/sql/closing tables 0 +localhost stage/sql/init 0 +localhost stage/sql/Opening tables 0 +localhost stage/sql/starting 0 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 0 +localhost statement/sql/insert 0 +localhost statement/sql/select 0 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 0 +execute dump_transactions_global; +event_name count_star +transaction 0 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.hosts; +"================== HOSTS truncated ==================" +"================== Step 36 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 0 +localhost stage/sql/closing tables 0 +localhost stage/sql/init 0 +localhost stage/sql/Opening tables 0 +localhost stage/sql/starting 0 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 0 +localhost statement/sql/insert 0 +localhost statement/sql/select 0 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 0 +execute dump_transactions_global; +event_name count_star +transaction 0 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 1 diff --git a/mysql-test/suite/perfschema/r/event_aggregate_no_a_no_h.result b/mysql-test/suite/perfschema/r/event_aggregate_no_a_no_h.result new file mode 100644 index 00000000..956ea6c6 --- /dev/null +++ b/mysql-test/suite/perfschema/r/event_aggregate_no_a_no_h.result @@ -0,0 +1,4747 @@ +"================== Step 1 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 0 +execute dump_transactions_history; +event_name count(event_name) +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connect con1, localhost, user1, ,test; +connection default; +"================== Step 2 ==================" +call dump_thread(); +username event_name count_star +user1 wait/io/file/sql/query_log 1 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 1 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 1 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 1 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 0 +user1 stage/sql/closing tables 0 +user1 stage/sql/init 0 +user1 stage/sql/Opening tables 0 +user1 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 0 +user1 statement/sp/freturn 0 +user1 statement/sql/insert 0 +user1 statement/sql/select 0 +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +user1 transaction 0 +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 0 +execute dump_transactions_history; +event_name count(event_name) +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connection con1; +select uuid_short() <> 1; +uuid_short() <> 1 +1 +select uuid_short() <> 1; +uuid_short() <> 1 +1 +start transaction; +insert into test.t1 values ("marker"); +commit; +select test.f(10,20); +test.f(10,20) +30 +connection default; +"================== Step 3 ==================" +call dump_thread(); +username event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 7 +wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 7 +wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 6 +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 4 +stage/sql/closing tables 11 +stage/sql/init 3 +stage/sql/Opening tables 7 +stage/sql/starting 6 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 4 +stage/sql/closing tables 11 +stage/sql/init 3 +stage/sql/Opening tables 7 +stage/sql/starting 6 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 0 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 1 +statement/sql/insert 1 +statement/sql/select 3 +execute dump_statements_history; +event_name count(event_name) +statement/sp/freturn 1 +statement/sql/insert 1 +statement/sql/select 3 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 2 +execute dump_transactions_history; +event_name count(event_name) +transaction 2 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connect con2, localhost, user2, ,test; +connection default; +"================== Step 4 ==================" +call dump_thread(); +username event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user2 wait/io/file/sql/query_log 1 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +user2 wait/io/file/sql/query_log 1 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 8 +wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 8 +wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 6 +user2 stage/sql/checking permissions 0 +user2 stage/sql/closing tables 0 +user2 stage/sql/init 0 +user2 stage/sql/Opening tables 0 +user2 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 4 +stage/sql/closing tables 11 +stage/sql/init 3 +stage/sql/Opening tables 7 +stage/sql/starting 6 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 4 +stage/sql/closing tables 11 +stage/sql/init 3 +stage/sql/Opening tables 7 +stage/sql/starting 6 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 0 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 0 +user2 statement/sp/freturn 0 +user2 statement/sql/insert 0 +user2 statement/sql/select 0 +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 1 +statement/sql/insert 1 +statement/sql/select 3 +execute dump_statements_history; +event_name count(event_name) +statement/sp/freturn 1 +statement/sql/insert 1 +statement/sql/select 3 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 0 +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 2 +execute dump_transactions_history; +event_name count(event_name) +transaction 2 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +user2 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connection con2; +select uuid_short() <> 1; +uuid_short() <> 1 +1 +select uuid_short() <> 1; +uuid_short() <> 1 +1 +start transaction; +insert into test.t1 values ("marker"); +commit; +select test.f(10,20); +test.f(10,20) +30 +connection default; +"================== Step 5 ==================" +call dump_thread(); +username event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 14 +wait/synch/rwlock/sql/LOCK_grant 2 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 14 +wait/synch/rwlock/sql/LOCK_grant 2 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 6 +user2 stage/sql/checking permissions 4 +user2 stage/sql/closing tables 10 +user2 stage/sql/init 3 +user2 stage/sql/Opening tables 6 +user2 stage/sql/starting 6 +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 8 +stage/sql/closing tables 21 +stage/sql/init 6 +stage/sql/Opening tables 13 +stage/sql/starting 12 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 8 +stage/sql/closing tables 21 +stage/sql/init 6 +stage/sql/Opening tables 13 +stage/sql/starting 12 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 0 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 0 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 2 +statement/sql/insert 2 +statement/sql/select 6 +execute dump_statements_history; +event_name count(event_name) +statement/sp/freturn 2 +statement/sql/insert 2 +statement/sql/select 6 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 4 +execute dump_transactions_history; +event_name count(event_name) +transaction 4 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +user2 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connect con3, localhost, user3, ,test; +connection default; +"================== Step 6 ==================" +call dump_thread(); +username event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user3 wait/io/file/sql/query_log 1 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +user3 wait/io/file/sql/query_log 1 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 15 +wait/synch/rwlock/sql/LOCK_grant 2 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 15 +wait/synch/rwlock/sql/LOCK_grant 2 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 6 +user2 stage/sql/checking permissions 4 +user2 stage/sql/closing tables 10 +user2 stage/sql/init 3 +user2 stage/sql/Opening tables 6 +user2 stage/sql/starting 6 +user3 stage/sql/checking permissions 0 +user3 stage/sql/closing tables 0 +user3 stage/sql/init 0 +user3 stage/sql/Opening tables 0 +user3 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 8 +stage/sql/closing tables 21 +stage/sql/init 6 +stage/sql/Opening tables 13 +stage/sql/starting 12 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 8 +stage/sql/closing tables 21 +stage/sql/init 6 +stage/sql/Opening tables 13 +stage/sql/starting 12 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 0 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 0 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 0 +user3 statement/sp/freturn 0 +user3 statement/sql/insert 0 +user3 statement/sql/select 0 +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 2 +statement/sql/insert 2 +statement/sql/select 6 +execute dump_statements_history; +event_name count(event_name) +statement/sp/freturn 2 +statement/sql/insert 2 +statement/sql/select 6 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 0 +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 4 +execute dump_transactions_history; +event_name count(event_name) +transaction 4 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +user2 1 1 +user3 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connection con3; +select uuid_short() <> 1; +uuid_short() <> 1 +1 +select uuid_short() <> 1; +uuid_short() <> 1 +1 +start transaction; +insert into test.t1 values ("marker"); +commit; +select test.f(10,20); +test.f(10,20) +30 +connection default; +"================== Step 7 ==================" +call dump_thread(); +username event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user3 wait/io/file/sql/query_log 7 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +user3 wait/io/file/sql/query_log 7 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 21 +wait/synch/rwlock/sql/LOCK_grant 3 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 21 +wait/synch/rwlock/sql/LOCK_grant 3 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 6 +user2 stage/sql/checking permissions 4 +user2 stage/sql/closing tables 10 +user2 stage/sql/init 3 +user2 stage/sql/Opening tables 6 +user2 stage/sql/starting 6 +user3 stage/sql/checking permissions 4 +user3 stage/sql/closing tables 10 +user3 stage/sql/init 3 +user3 stage/sql/Opening tables 6 +user3 stage/sql/starting 6 +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 12 +stage/sql/closing tables 31 +stage/sql/init 9 +stage/sql/Opening tables 19 +stage/sql/starting 18 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 12 +stage/sql/closing tables 31 +stage/sql/init 9 +stage/sql/Opening tables 19 +stage/sql/starting 18 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 0 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 0 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 0 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 3 +statement/sql/insert 3 +statement/sql/select 9 +execute dump_statements_history; +event_name count(event_name) +statement/sp/freturn 3 +statement/sql/insert 3 +statement/sql/select 9 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 6 +execute dump_transactions_history; +event_name count(event_name) +transaction 6 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +user2 1 1 +user3 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connect con4, localhost, user4, ,test; +connection default; +"================== Step 8 ==================" +call dump_thread(); +username event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user3 wait/io/file/sql/query_log 7 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user4 wait/io/file/sql/query_log 1 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +user3 wait/io/file/sql/query_log 7 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +user4 wait/io/file/sql/query_log 1 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 22 +wait/synch/rwlock/sql/LOCK_grant 3 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 22 +wait/synch/rwlock/sql/LOCK_grant 3 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 6 +user2 stage/sql/checking permissions 4 +user2 stage/sql/closing tables 10 +user2 stage/sql/init 3 +user2 stage/sql/Opening tables 6 +user2 stage/sql/starting 6 +user3 stage/sql/checking permissions 4 +user3 stage/sql/closing tables 10 +user3 stage/sql/init 3 +user3 stage/sql/Opening tables 6 +user3 stage/sql/starting 6 +user4 stage/sql/checking permissions 0 +user4 stage/sql/closing tables 0 +user4 stage/sql/init 0 +user4 stage/sql/Opening tables 0 +user4 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 12 +stage/sql/closing tables 31 +stage/sql/init 9 +stage/sql/Opening tables 19 +stage/sql/starting 18 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 12 +stage/sql/closing tables 31 +stage/sql/init 9 +stage/sql/Opening tables 19 +stage/sql/starting 18 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 0 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 0 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 0 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 0 +user4 statement/sp/freturn 0 +user4 statement/sql/insert 0 +user4 statement/sql/select 0 +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 3 +statement/sql/insert 3 +statement/sql/select 9 +execute dump_statements_history; +event_name count(event_name) +statement/sp/freturn 3 +statement/sql/insert 3 +statement/sql/select 9 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 0 +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 6 +execute dump_transactions_history; +event_name count(event_name) +transaction 6 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +user2 1 1 +user3 1 1 +user4 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connection con4; +select uuid_short() <> 1; +uuid_short() <> 1 +1 +select uuid_short() <> 1; +uuid_short() <> 1 +1 +start transaction; +insert into test.t1 values ("marker"); +commit; +select test.f(10,20); +test.f(10,20) +30 +connection default; +"================== Step 9 ==================" +call dump_thread(); +username event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user3 wait/io/file/sql/query_log 7 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user4 wait/io/file/sql/query_log 7 +user4 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +user3 wait/io/file/sql/query_log 7 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +user4 wait/io/file/sql/query_log 7 +user4 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 28 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 28 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 6 +user2 stage/sql/checking permissions 4 +user2 stage/sql/closing tables 10 +user2 stage/sql/init 3 +user2 stage/sql/Opening tables 6 +user2 stage/sql/starting 6 +user3 stage/sql/checking permissions 4 +user3 stage/sql/closing tables 10 +user3 stage/sql/init 3 +user3 stage/sql/Opening tables 6 +user3 stage/sql/starting 6 +user4 stage/sql/checking permissions 4 +user4 stage/sql/closing tables 10 +user4 stage/sql/init 3 +user4 stage/sql/Opening tables 6 +user4 stage/sql/starting 6 +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 24 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 24 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 0 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 0 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 0 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 0 +user4 statement/sp/freturn 1 +user4 statement/sql/insert 1 +user4 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +user2 1 1 +user3 1 1 +user4 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +disconnect con1; +connection default; +"================== Step 10 ==================" +call dump_thread(); +username status +user1 not found +username event_name count_star +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user3 wait/io/file/sql/query_log 7 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user4 wait/io/file/sql/query_log 7 +user4 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 8 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +user3 wait/io/file/sql/query_log 7 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +user4 wait/io/file/sql/query_log 7 +user4 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 29 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 29 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 7 +user2 stage/sql/checking permissions 4 +user2 stage/sql/closing tables 10 +user2 stage/sql/init 3 +user2 stage/sql/Opening tables 6 +user2 stage/sql/starting 6 +user3 stage/sql/checking permissions 4 +user3 stage/sql/closing tables 10 +user3 stage/sql/init 3 +user3 stage/sql/Opening tables 6 +user3 stage/sql/starting 6 +user4 stage/sql/checking permissions 4 +user4 stage/sql/closing tables 10 +user4 stage/sql/init 3 +user4 stage/sql/Opening tables 6 +user4 stage/sql/starting 6 +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 25 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 25 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 1 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 0 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 0 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 0 +user4 statement/sp/freturn 1 +user4 statement/sql/insert 1 +user4 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 1 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 1 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 1 1 +user3 1 1 +user4 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +disconnect con2; +connection default; +"================== Step 11 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username event_name count_star +user3 wait/io/file/sql/query_log 7 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user4 wait/io/file/sql/query_log 7 +user4 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 8 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +user2 wait/io/file/sql/query_log 8 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +user3 wait/io/file/sql/query_log 7 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +user4 wait/io/file/sql/query_log 7 +user4 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 30 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 30 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 7 +user2 stage/sql/checking permissions 4 +user2 stage/sql/closing tables 10 +user2 stage/sql/init 3 +user2 stage/sql/Opening tables 6 +user2 stage/sql/starting 7 +user3 stage/sql/checking permissions 4 +user3 stage/sql/closing tables 10 +user3 stage/sql/init 3 +user3 stage/sql/Opening tables 6 +user3 stage/sql/starting 6 +user4 stage/sql/checking permissions 4 +user4 stage/sql/closing tables 10 +user4 stage/sql/init 3 +user4 stage/sql/Opening tables 6 +user4 stage/sql/starting 6 +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 26 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 26 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 1 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 1 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 0 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 0 +user4 statement/sp/freturn 1 +user4 statement/sql/insert 1 +user4 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 2 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 2 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 1 1 +user4 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +disconnect con3; +connection default; +"================== Step 12 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username event_name count_star +user4 wait/io/file/sql/query_log 7 +user4 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 8 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +user2 wait/io/file/sql/query_log 8 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +user3 wait/io/file/sql/query_log 8 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +user4 wait/io/file/sql/query_log 7 +user4 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 31 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 31 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 7 +user2 stage/sql/checking permissions 4 +user2 stage/sql/closing tables 10 +user2 stage/sql/init 3 +user2 stage/sql/Opening tables 6 +user2 stage/sql/starting 7 +user3 stage/sql/checking permissions 4 +user3 stage/sql/closing tables 10 +user3 stage/sql/init 3 +user3 stage/sql/Opening tables 6 +user3 stage/sql/starting 7 +user4 stage/sql/checking permissions 4 +user4 stage/sql/closing tables 10 +user4 stage/sql/init 3 +user4 stage/sql/Opening tables 6 +user4 stage/sql/starting 6 +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 27 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 27 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 1 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 1 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 1 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 0 +user4 statement/sp/freturn 1 +user4 statement/sql/insert 1 +user4 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 3 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 3 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +disconnect con4; +connection default; +"================== Step 13 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 8 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +user2 wait/io/file/sql/query_log 8 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +user3 wait/io/file/sql/query_log 8 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +user4 wait/io/file/sql/query_log 8 +user4 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 7 +user2 stage/sql/checking permissions 4 +user2 stage/sql/closing tables 10 +user2 stage/sql/init 3 +user2 stage/sql/Opening tables 6 +user2 stage/sql/starting 7 +user3 stage/sql/checking permissions 4 +user3 stage/sql/closing tables 10 +user3 stage/sql/init 3 +user3 stage/sql/Opening tables 6 +user3 stage/sql/starting 7 +user4 stage/sql/checking permissions 4 +user4 stage/sql/closing tables 10 +user4 stage/sql/init 3 +user4 stage/sql/Opening tables 6 +user4 stage/sql/starting 7 +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 1 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 1 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 1 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 1 +user4 statement/sp/freturn 1 +user4 statement/sql/insert 1 +user4 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connection default; +truncate performance_schema.events_waits_summary_by_thread_by_event_name; +"================== WAITS_BY_THREAD truncated ==================" +"================== Step 14 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 8 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +user2 wait/io/file/sql/query_log 8 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +user3 wait/io/file/sql/query_log 8 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +user4 wait/io/file/sql/query_log 8 +user4 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 7 +user2 stage/sql/checking permissions 4 +user2 stage/sql/closing tables 10 +user2 stage/sql/init 3 +user2 stage/sql/Opening tables 6 +user2 stage/sql/starting 7 +user3 stage/sql/checking permissions 4 +user3 stage/sql/closing tables 10 +user3 stage/sql/init 3 +user3 stage/sql/Opening tables 6 +user3 stage/sql/starting 7 +user4 stage/sql/checking permissions 4 +user4 stage/sql/closing tables 10 +user4 stage/sql/init 3 +user4 stage/sql/Opening tables 6 +user4 stage/sql/starting 7 +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 1 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 1 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 1 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 1 +user4 statement/sp/freturn 1 +user4 statement/sql/insert 1 +user4 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_waits_summary_by_account_by_event_name; +"================== WAITS_BY_ACCOUNT truncated ==================" +"================== Step 15 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 8 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +user2 wait/io/file/sql/query_log 8 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +user3 wait/io/file/sql/query_log 8 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +user4 wait/io/file/sql/query_log 8 +user4 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 7 +user2 stage/sql/checking permissions 4 +user2 stage/sql/closing tables 10 +user2 stage/sql/init 3 +user2 stage/sql/Opening tables 6 +user2 stage/sql/starting 7 +user3 stage/sql/checking permissions 4 +user3 stage/sql/closing tables 10 +user3 stage/sql/init 3 +user3 stage/sql/Opening tables 6 +user3 stage/sql/starting 7 +user4 stage/sql/checking permissions 4 +user4 stage/sql/closing tables 10 +user4 stage/sql/init 3 +user4 stage/sql/Opening tables 6 +user4 stage/sql/starting 7 +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 1 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 1 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 1 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 1 +user4 statement/sp/freturn 1 +user4 statement/sql/insert 1 +user4 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_waits_summary_by_user_by_event_name; +"================== WAITS_BY_USER truncated ==================" +"================== Step 16 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 7 +user2 stage/sql/checking permissions 4 +user2 stage/sql/closing tables 10 +user2 stage/sql/init 3 +user2 stage/sql/Opening tables 6 +user2 stage/sql/starting 7 +user3 stage/sql/checking permissions 4 +user3 stage/sql/closing tables 10 +user3 stage/sql/init 3 +user3 stage/sql/Opening tables 6 +user3 stage/sql/starting 7 +user4 stage/sql/checking permissions 4 +user4 stage/sql/closing tables 10 +user4 stage/sql/init 3 +user4 stage/sql/Opening tables 6 +user4 stage/sql/starting 7 +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 1 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 1 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 1 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 1 +user4 statement/sp/freturn 1 +user4 statement/sql/insert 1 +user4 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_waits_summary_by_host_by_event_name; +"================== WAITS_BY_HOST truncated ==================" +"================== Step 17 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 7 +user2 stage/sql/checking permissions 4 +user2 stage/sql/closing tables 10 +user2 stage/sql/init 3 +user2 stage/sql/Opening tables 6 +user2 stage/sql/starting 7 +user3 stage/sql/checking permissions 4 +user3 stage/sql/closing tables 10 +user3 stage/sql/init 3 +user3 stage/sql/Opening tables 6 +user3 stage/sql/starting 7 +user4 stage/sql/checking permissions 4 +user4 stage/sql/closing tables 10 +user4 stage/sql/init 3 +user4 stage/sql/Opening tables 6 +user4 stage/sql/starting 7 +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 1 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 1 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 1 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 1 +user4 statement/sp/freturn 1 +user4 statement/sql/insert 1 +user4 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_waits_summary_global_by_event_name; +"================== WAITS_GLOBAL truncated ==================" +"================== Step 18 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 7 +user2 stage/sql/checking permissions 4 +user2 stage/sql/closing tables 10 +user2 stage/sql/init 3 +user2 stage/sql/Opening tables 6 +user2 stage/sql/starting 7 +user3 stage/sql/checking permissions 4 +user3 stage/sql/closing tables 10 +user3 stage/sql/init 3 +user3 stage/sql/Opening tables 6 +user3 stage/sql/starting 7 +user4 stage/sql/checking permissions 4 +user4 stage/sql/closing tables 10 +user4 stage/sql/init 3 +user4 stage/sql/Opening tables 6 +user4 stage/sql/starting 7 +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 1 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 1 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 1 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 1 +user4 statement/sp/freturn 1 +user4 statement/sql/insert 1 +user4 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_stages_summary_by_thread_by_event_name; +"================== STAGES_BY_THREAD truncated ==================" +"================== Step 19 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 7 +user2 stage/sql/checking permissions 4 +user2 stage/sql/closing tables 10 +user2 stage/sql/init 3 +user2 stage/sql/Opening tables 6 +user2 stage/sql/starting 7 +user3 stage/sql/checking permissions 4 +user3 stage/sql/closing tables 10 +user3 stage/sql/init 3 +user3 stage/sql/Opening tables 6 +user3 stage/sql/starting 7 +user4 stage/sql/checking permissions 4 +user4 stage/sql/closing tables 10 +user4 stage/sql/init 3 +user4 stage/sql/Opening tables 6 +user4 stage/sql/starting 7 +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 1 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 1 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 1 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 1 +user4 statement/sp/freturn 1 +user4 statement/sql/insert 1 +user4 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_stages_summary_by_account_by_event_name; +"================== STAGES_BY_ACCOUNT truncated ==================" +"================== Step 20 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 7 +user2 stage/sql/checking permissions 4 +user2 stage/sql/closing tables 10 +user2 stage/sql/init 3 +user2 stage/sql/Opening tables 6 +user2 stage/sql/starting 7 +user3 stage/sql/checking permissions 4 +user3 stage/sql/closing tables 10 +user3 stage/sql/init 3 +user3 stage/sql/Opening tables 6 +user3 stage/sql/starting 7 +user4 stage/sql/checking permissions 4 +user4 stage/sql/closing tables 10 +user4 stage/sql/init 3 +user4 stage/sql/Opening tables 6 +user4 stage/sql/starting 7 +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 1 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 1 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 1 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 1 +user4 statement/sp/freturn 1 +user4 statement/sql/insert 1 +user4 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_stages_summary_by_user_by_event_name; +"================== STAGES_BY_USER truncated ==================" +"================== Step 21 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 0 +user1 stage/sql/closing tables 0 +user1 stage/sql/init 0 +user1 stage/sql/Opening tables 0 +user1 stage/sql/starting 0 +user2 stage/sql/checking permissions 0 +user2 stage/sql/closing tables 0 +user2 stage/sql/init 0 +user2 stage/sql/Opening tables 0 +user2 stage/sql/starting 0 +user3 stage/sql/checking permissions 0 +user3 stage/sql/closing tables 0 +user3 stage/sql/init 0 +user3 stage/sql/Opening tables 0 +user3 stage/sql/starting 0 +user4 stage/sql/checking permissions 0 +user4 stage/sql/closing tables 0 +user4 stage/sql/init 0 +user4 stage/sql/Opening tables 0 +user4 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 1 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 1 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 1 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 1 +user4 statement/sp/freturn 1 +user4 statement/sql/insert 1 +user4 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_stages_summary_by_host_by_event_name; +"================== STAGES_BY_HOST truncated ==================" +"================== Step 22 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 0 +user1 stage/sql/closing tables 0 +user1 stage/sql/init 0 +user1 stage/sql/Opening tables 0 +user1 stage/sql/starting 0 +user2 stage/sql/checking permissions 0 +user2 stage/sql/closing tables 0 +user2 stage/sql/init 0 +user2 stage/sql/Opening tables 0 +user2 stage/sql/starting 0 +user3 stage/sql/checking permissions 0 +user3 stage/sql/closing tables 0 +user3 stage/sql/init 0 +user3 stage/sql/Opening tables 0 +user3 stage/sql/starting 0 +user4 stage/sql/checking permissions 0 +user4 stage/sql/closing tables 0 +user4 stage/sql/init 0 +user4 stage/sql/Opening tables 0 +user4 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 1 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 1 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 1 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 1 +user4 statement/sp/freturn 1 +user4 statement/sql/insert 1 +user4 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_stages_summary_global_by_event_name; +"================== STAGES_GLOBAL truncated ==================" +"================== Step 23 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 0 +user1 stage/sql/closing tables 0 +user1 stage/sql/init 0 +user1 stage/sql/Opening tables 0 +user1 stage/sql/starting 0 +user2 stage/sql/checking permissions 0 +user2 stage/sql/closing tables 0 +user2 stage/sql/init 0 +user2 stage/sql/Opening tables 0 +user2 stage/sql/starting 0 +user3 stage/sql/checking permissions 0 +user3 stage/sql/closing tables 0 +user3 stage/sql/init 0 +user3 stage/sql/Opening tables 0 +user3 stage/sql/starting 0 +user4 stage/sql/checking permissions 0 +user4 stage/sql/closing tables 0 +user4 stage/sql/init 0 +user4 stage/sql/Opening tables 0 +user4 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 1 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 1 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 1 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 1 +user4 statement/sp/freturn 1 +user4 statement/sql/insert 1 +user4 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_statements_summary_by_thread_by_event_name; +"================== STATEMENTS_BY_THREAD truncated ==================" +"================== Step 24 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 0 +user1 stage/sql/closing tables 0 +user1 stage/sql/init 0 +user1 stage/sql/Opening tables 0 +user1 stage/sql/starting 0 +user2 stage/sql/checking permissions 0 +user2 stage/sql/closing tables 0 +user2 stage/sql/init 0 +user2 stage/sql/Opening tables 0 +user2 stage/sql/starting 0 +user3 stage/sql/checking permissions 0 +user3 stage/sql/closing tables 0 +user3 stage/sql/init 0 +user3 stage/sql/Opening tables 0 +user3 stage/sql/starting 0 +user4 stage/sql/checking permissions 0 +user4 stage/sql/closing tables 0 +user4 stage/sql/init 0 +user4 stage/sql/Opening tables 0 +user4 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 1 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 1 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 1 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 1 +user4 statement/sp/freturn 1 +user4 statement/sql/insert 1 +user4 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_statements_summary_by_account_by_event_name; +"================== STATEMENTS_BY_ACCOUNT truncated ==================" +"================== Step 25 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 0 +user1 stage/sql/closing tables 0 +user1 stage/sql/init 0 +user1 stage/sql/Opening tables 0 +user1 stage/sql/starting 0 +user2 stage/sql/checking permissions 0 +user2 stage/sql/closing tables 0 +user2 stage/sql/init 0 +user2 stage/sql/Opening tables 0 +user2 stage/sql/starting 0 +user3 stage/sql/checking permissions 0 +user3 stage/sql/closing tables 0 +user3 stage/sql/init 0 +user3 stage/sql/Opening tables 0 +user3 stage/sql/starting 0 +user4 stage/sql/checking permissions 0 +user4 stage/sql/closing tables 0 +user4 stage/sql/init 0 +user4 stage/sql/Opening tables 0 +user4 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 1 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 1 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 1 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 1 +user4 statement/sp/freturn 1 +user4 statement/sql/insert 1 +user4 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_statements_summary_by_user_by_event_name; +"================== STATEMENTS_BY_USER truncated ==================" +"================== Step 26 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 0 +user1 stage/sql/closing tables 0 +user1 stage/sql/init 0 +user1 stage/sql/Opening tables 0 +user1 stage/sql/starting 0 +user2 stage/sql/checking permissions 0 +user2 stage/sql/closing tables 0 +user2 stage/sql/init 0 +user2 stage/sql/Opening tables 0 +user2 stage/sql/starting 0 +user3 stage/sql/checking permissions 0 +user3 stage/sql/closing tables 0 +user3 stage/sql/init 0 +user3 stage/sql/Opening tables 0 +user3 stage/sql/starting 0 +user4 stage/sql/checking permissions 0 +user4 stage/sql/closing tables 0 +user4 stage/sql/init 0 +user4 stage/sql/Opening tables 0 +user4 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 0 +user1 statement/sp/freturn 0 +user1 statement/sql/insert 0 +user1 statement/sql/select 0 +user2 statement/com/Error 0 +user2 statement/com/Quit 0 +user2 statement/sp/freturn 0 +user2 statement/sql/insert 0 +user2 statement/sql/select 0 +user3 statement/com/Error 0 +user3 statement/com/Quit 0 +user3 statement/sp/freturn 0 +user3 statement/sql/insert 0 +user3 statement/sql/select 0 +user4 statement/com/Error 0 +user4 statement/com/Quit 0 +user4 statement/sp/freturn 0 +user4 statement/sql/insert 0 +user4 statement/sql/select 0 +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_statements_summary_by_host_by_event_name; +"================== STATEMENTS_BY_HOST truncated ==================" +"================== Step 27 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 0 +user1 stage/sql/closing tables 0 +user1 stage/sql/init 0 +user1 stage/sql/Opening tables 0 +user1 stage/sql/starting 0 +user2 stage/sql/checking permissions 0 +user2 stage/sql/closing tables 0 +user2 stage/sql/init 0 +user2 stage/sql/Opening tables 0 +user2 stage/sql/starting 0 +user3 stage/sql/checking permissions 0 +user3 stage/sql/closing tables 0 +user3 stage/sql/init 0 +user3 stage/sql/Opening tables 0 +user3 stage/sql/starting 0 +user4 stage/sql/checking permissions 0 +user4 stage/sql/closing tables 0 +user4 stage/sql/init 0 +user4 stage/sql/Opening tables 0 +user4 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 0 +user1 statement/sp/freturn 0 +user1 statement/sql/insert 0 +user1 statement/sql/select 0 +user2 statement/com/Error 0 +user2 statement/com/Quit 0 +user2 statement/sp/freturn 0 +user2 statement/sql/insert 0 +user2 statement/sql/select 0 +user3 statement/com/Error 0 +user3 statement/com/Quit 0 +user3 statement/sp/freturn 0 +user3 statement/sql/insert 0 +user3 statement/sql/select 0 +user4 statement/com/Error 0 +user4 statement/com/Quit 0 +user4 statement/sp/freturn 0 +user4 statement/sql/insert 0 +user4 statement/sql/select 0 +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_statements_summary_global_by_event_name; +"================== STATEMENTS_GLOBAL truncated ==================" +"================== Step 28 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 0 +user1 stage/sql/closing tables 0 +user1 stage/sql/init 0 +user1 stage/sql/Opening tables 0 +user1 stage/sql/starting 0 +user2 stage/sql/checking permissions 0 +user2 stage/sql/closing tables 0 +user2 stage/sql/init 0 +user2 stage/sql/Opening tables 0 +user2 stage/sql/starting 0 +user3 stage/sql/checking permissions 0 +user3 stage/sql/closing tables 0 +user3 stage/sql/init 0 +user3 stage/sql/Opening tables 0 +user3 stage/sql/starting 0 +user4 stage/sql/checking permissions 0 +user4 stage/sql/closing tables 0 +user4 stage/sql/init 0 +user4 stage/sql/Opening tables 0 +user4 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 0 +user1 statement/sp/freturn 0 +user1 statement/sql/insert 0 +user1 statement/sql/select 0 +user2 statement/com/Error 0 +user2 statement/com/Quit 0 +user2 statement/sp/freturn 0 +user2 statement/sql/insert 0 +user2 statement/sql/select 0 +user3 statement/com/Error 0 +user3 statement/com/Quit 0 +user3 statement/sp/freturn 0 +user3 statement/sql/insert 0 +user3 statement/sql/select 0 +user4 statement/com/Error 0 +user4 statement/com/Quit 0 +user4 statement/sp/freturn 0 +user4 statement/sql/insert 0 +user4 statement/sql/select 0 +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_transactions_summary_by_thread_by_event_name; +"================== TRANSACTIONS_BY_THREAD truncated ==================" +"================== Step 29 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 0 +user1 stage/sql/closing tables 0 +user1 stage/sql/init 0 +user1 stage/sql/Opening tables 0 +user1 stage/sql/starting 0 +user2 stage/sql/checking permissions 0 +user2 stage/sql/closing tables 0 +user2 stage/sql/init 0 +user2 stage/sql/Opening tables 0 +user2 stage/sql/starting 0 +user3 stage/sql/checking permissions 0 +user3 stage/sql/closing tables 0 +user3 stage/sql/init 0 +user3 stage/sql/Opening tables 0 +user3 stage/sql/starting 0 +user4 stage/sql/checking permissions 0 +user4 stage/sql/closing tables 0 +user4 stage/sql/init 0 +user4 stage/sql/Opening tables 0 +user4 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 0 +user1 statement/sp/freturn 0 +user1 statement/sql/insert 0 +user1 statement/sql/select 0 +user2 statement/com/Error 0 +user2 statement/com/Quit 0 +user2 statement/sp/freturn 0 +user2 statement/sql/insert 0 +user2 statement/sql/select 0 +user3 statement/com/Error 0 +user3 statement/com/Quit 0 +user3 statement/sp/freturn 0 +user3 statement/sql/insert 0 +user3 statement/sql/select 0 +user4 statement/com/Error 0 +user4 statement/com/Quit 0 +user4 statement/sp/freturn 0 +user4 statement/sql/insert 0 +user4 statement/sql/select 0 +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_transactions_summary_by_account_by_event_name; +"================== TRANSACTIONS_BY_ACCOUNT truncated ==================" +"================== Step 30 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 0 +user1 stage/sql/closing tables 0 +user1 stage/sql/init 0 +user1 stage/sql/Opening tables 0 +user1 stage/sql/starting 0 +user2 stage/sql/checking permissions 0 +user2 stage/sql/closing tables 0 +user2 stage/sql/init 0 +user2 stage/sql/Opening tables 0 +user2 stage/sql/starting 0 +user3 stage/sql/checking permissions 0 +user3 stage/sql/closing tables 0 +user3 stage/sql/init 0 +user3 stage/sql/Opening tables 0 +user3 stage/sql/starting 0 +user4 stage/sql/checking permissions 0 +user4 stage/sql/closing tables 0 +user4 stage/sql/init 0 +user4 stage/sql/Opening tables 0 +user4 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 0 +user1 statement/sp/freturn 0 +user1 statement/sql/insert 0 +user1 statement/sql/select 0 +user2 statement/com/Error 0 +user2 statement/com/Quit 0 +user2 statement/sp/freturn 0 +user2 statement/sql/insert 0 +user2 statement/sql/select 0 +user3 statement/com/Error 0 +user3 statement/com/Quit 0 +user3 statement/sp/freturn 0 +user3 statement/sql/insert 0 +user3 statement/sql/select 0 +user4 statement/com/Error 0 +user4 statement/com/Quit 0 +user4 statement/sp/freturn 0 +user4 statement/sql/insert 0 +user4 statement/sql/select 0 +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_transactions_summary_by_user_by_event_name; +"================== TRANSACTIONS_BY_USER truncated ==================" +"================== Step 31 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 0 +user1 stage/sql/closing tables 0 +user1 stage/sql/init 0 +user1 stage/sql/Opening tables 0 +user1 stage/sql/starting 0 +user2 stage/sql/checking permissions 0 +user2 stage/sql/closing tables 0 +user2 stage/sql/init 0 +user2 stage/sql/Opening tables 0 +user2 stage/sql/starting 0 +user3 stage/sql/checking permissions 0 +user3 stage/sql/closing tables 0 +user3 stage/sql/init 0 +user3 stage/sql/Opening tables 0 +user3 stage/sql/starting 0 +user4 stage/sql/checking permissions 0 +user4 stage/sql/closing tables 0 +user4 stage/sql/init 0 +user4 stage/sql/Opening tables 0 +user4 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 0 +user1 statement/sp/freturn 0 +user1 statement/sql/insert 0 +user1 statement/sql/select 0 +user2 statement/com/Error 0 +user2 statement/com/Quit 0 +user2 statement/sp/freturn 0 +user2 statement/sql/insert 0 +user2 statement/sql/select 0 +user3 statement/com/Error 0 +user3 statement/com/Quit 0 +user3 statement/sp/freturn 0 +user3 statement/sql/insert 0 +user3 statement/sql/select 0 +user4 statement/com/Error 0 +user4 statement/com/Quit 0 +user4 statement/sp/freturn 0 +user4 statement/sql/insert 0 +user4 statement/sql/select 0 +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +user1 transaction 0 +user2 transaction 0 +user3 transaction 0 +user4 transaction 0 +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_transactions_summary_by_host_by_event_name; +"================== TRANSACTIONS_BY_HOST truncated ==================" +"================== Step 32 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 0 +user1 stage/sql/closing tables 0 +user1 stage/sql/init 0 +user1 stage/sql/Opening tables 0 +user1 stage/sql/starting 0 +user2 stage/sql/checking permissions 0 +user2 stage/sql/closing tables 0 +user2 stage/sql/init 0 +user2 stage/sql/Opening tables 0 +user2 stage/sql/starting 0 +user3 stage/sql/checking permissions 0 +user3 stage/sql/closing tables 0 +user3 stage/sql/init 0 +user3 stage/sql/Opening tables 0 +user3 stage/sql/starting 0 +user4 stage/sql/checking permissions 0 +user4 stage/sql/closing tables 0 +user4 stage/sql/init 0 +user4 stage/sql/Opening tables 0 +user4 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 0 +user1 statement/sp/freturn 0 +user1 statement/sql/insert 0 +user1 statement/sql/select 0 +user2 statement/com/Error 0 +user2 statement/com/Quit 0 +user2 statement/sp/freturn 0 +user2 statement/sql/insert 0 +user2 statement/sql/select 0 +user3 statement/com/Error 0 +user3 statement/com/Quit 0 +user3 statement/sp/freturn 0 +user3 statement/sql/insert 0 +user3 statement/sql/select 0 +user4 statement/com/Error 0 +user4 statement/com/Quit 0 +user4 statement/sp/freturn 0 +user4 statement/sql/insert 0 +user4 statement/sql/select 0 +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +user1 transaction 0 +user2 transaction 0 +user3 transaction 0 +user4 transaction 0 +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_transactions_summary_global_by_event_name; +"================== TRANSACTIONS_GLOBAL truncated ==================" +"================== Step 33 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 0 +user1 stage/sql/closing tables 0 +user1 stage/sql/init 0 +user1 stage/sql/Opening tables 0 +user1 stage/sql/starting 0 +user2 stage/sql/checking permissions 0 +user2 stage/sql/closing tables 0 +user2 stage/sql/init 0 +user2 stage/sql/Opening tables 0 +user2 stage/sql/starting 0 +user3 stage/sql/checking permissions 0 +user3 stage/sql/closing tables 0 +user3 stage/sql/init 0 +user3 stage/sql/Opening tables 0 +user3 stage/sql/starting 0 +user4 stage/sql/checking permissions 0 +user4 stage/sql/closing tables 0 +user4 stage/sql/init 0 +user4 stage/sql/Opening tables 0 +user4 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 0 +user1 statement/sp/freturn 0 +user1 statement/sql/insert 0 +user1 statement/sql/select 0 +user2 statement/com/Error 0 +user2 statement/com/Quit 0 +user2 statement/sp/freturn 0 +user2 statement/sql/insert 0 +user2 statement/sql/select 0 +user3 statement/com/Error 0 +user3 statement/com/Quit 0 +user3 statement/sp/freturn 0 +user3 statement/sql/insert 0 +user3 statement/sql/select 0 +user4 statement/com/Error 0 +user4 statement/com/Quit 0 +user4 statement/sp/freturn 0 +user4 statement/sql/insert 0 +user4 statement/sql/select 0 +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +user1 transaction 0 +user2 transaction 0 +user3 transaction 0 +user4 transaction 0 +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 0 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.accounts; +"================== ACCOUNTS truncated ==================" +"================== Step 34 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 0 +user1 stage/sql/closing tables 0 +user1 stage/sql/init 0 +user1 stage/sql/Opening tables 0 +user1 stage/sql/starting 0 +user2 stage/sql/checking permissions 0 +user2 stage/sql/closing tables 0 +user2 stage/sql/init 0 +user2 stage/sql/Opening tables 0 +user2 stage/sql/starting 0 +user3 stage/sql/checking permissions 0 +user3 stage/sql/closing tables 0 +user3 stage/sql/init 0 +user3 stage/sql/Opening tables 0 +user3 stage/sql/starting 0 +user4 stage/sql/checking permissions 0 +user4 stage/sql/closing tables 0 +user4 stage/sql/init 0 +user4 stage/sql/Opening tables 0 +user4 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 0 +user1 statement/sp/freturn 0 +user1 statement/sql/insert 0 +user1 statement/sql/select 0 +user2 statement/com/Error 0 +user2 statement/com/Quit 0 +user2 statement/sp/freturn 0 +user2 statement/sql/insert 0 +user2 statement/sql/select 0 +user3 statement/com/Error 0 +user3 statement/com/Quit 0 +user3 statement/sp/freturn 0 +user3 statement/sql/insert 0 +user3 statement/sql/select 0 +user4 statement/com/Error 0 +user4 statement/com/Quit 0 +user4 statement/sp/freturn 0 +user4 statement/sql/insert 0 +user4 statement/sql/select 0 +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +user1 transaction 0 +user2 transaction 0 +user3 transaction 0 +user4 transaction 0 +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 0 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.users; +"================== USERS truncated ==================" +"================== Step 35 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 0 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.hosts; +"================== HOSTS truncated ==================" +"================== Step 36 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 0 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS diff --git a/mysql-test/suite/perfschema/r/event_aggregate_no_a_no_u.result b/mysql-test/suite/perfschema/r/event_aggregate_no_a_no_u.result new file mode 100644 index 00000000..fbaa9a8d --- /dev/null +++ b/mysql-test/suite/perfschema/r/event_aggregate_no_a_no_u.result @@ -0,0 +1,3535 @@ +"================== Step 1 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 0 +localhost stage/sql/closing tables 0 +localhost stage/sql/init 0 +localhost stage/sql/Opening tables 0 +localhost stage/sql/starting 0 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 0 +localhost statement/sql/insert 0 +localhost statement/sql/select 0 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 0 +execute dump_transactions_global; +event_name count_star +transaction 0 +execute dump_transactions_history; +event_name count(event_name) +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 1 +connect con1, localhost, user1, ,test; +connection default; +"================== Step 2 ==================" +call dump_thread(); +username event_name count_star +user1 wait/io/file/sql/query_log 1 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 1 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 1 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 1 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 0 +localhost stage/sql/closing tables 0 +localhost stage/sql/init 0 +localhost stage/sql/Opening tables 0 +localhost stage/sql/starting 0 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 0 +localhost statement/sql/insert 0 +localhost statement/sql/select 0 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 0 +execute dump_transactions_global; +event_name count_star +transaction 0 +execute dump_transactions_history; +event_name count(event_name) +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 2 2 +connection con1; +select uuid_short() <> 1; +uuid_short() <> 1 +1 +select uuid_short() <> 1; +uuid_short() <> 1 +1 +start transaction; +insert into test.t1 values ("marker"); +commit; +select test.f(10,20); +test.f(10,20) +30 +connection default; +"================== Step 3 ==================" +call dump_thread(); +username event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 7 +localhost wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 7 +wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 7 +wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 4 +localhost stage/sql/closing tables 11 +localhost stage/sql/init 3 +localhost stage/sql/Opening tables 7 +localhost stage/sql/starting 6 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 4 +stage/sql/closing tables 11 +stage/sql/init 3 +stage/sql/Opening tables 7 +stage/sql/starting 6 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 4 +stage/sql/closing tables 11 +stage/sql/init 3 +stage/sql/Opening tables 7 +stage/sql/starting 6 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 1 +localhost statement/sql/insert 1 +localhost statement/sql/select 3 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 1 +statement/sql/insert 1 +statement/sql/select 3 +execute dump_statements_history; +event_name count(event_name) +statement/sp/freturn 1 +statement/sql/insert 1 +statement/sql/select 3 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 2 +execute dump_transactions_global; +event_name count_star +transaction 2 +execute dump_transactions_history; +event_name count(event_name) +transaction 2 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 2 2 +connect con2, localhost, user2, ,test; +connection default; +"================== Step 4 ==================" +call dump_thread(); +username event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user2 wait/io/file/sql/query_log 1 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 8 +localhost wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 8 +wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 8 +wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 4 +localhost stage/sql/closing tables 11 +localhost stage/sql/init 3 +localhost stage/sql/Opening tables 7 +localhost stage/sql/starting 6 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 4 +stage/sql/closing tables 11 +stage/sql/init 3 +stage/sql/Opening tables 7 +stage/sql/starting 6 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 4 +stage/sql/closing tables 11 +stage/sql/init 3 +stage/sql/Opening tables 7 +stage/sql/starting 6 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 1 +localhost statement/sql/insert 1 +localhost statement/sql/select 3 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 1 +statement/sql/insert 1 +statement/sql/select 3 +execute dump_statements_history; +event_name count(event_name) +statement/sp/freturn 1 +statement/sql/insert 1 +statement/sql/select 3 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 2 +execute dump_transactions_global; +event_name count_star +transaction 2 +execute dump_transactions_history; +event_name count(event_name) +transaction 2 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 3 3 +connection con2; +select uuid_short() <> 1; +uuid_short() <> 1 +1 +select uuid_short() <> 1; +uuid_short() <> 1 +1 +start transaction; +insert into test.t1 values ("marker"); +commit; +select test.f(10,20); +test.f(10,20) +30 +connection default; +"================== Step 5 ==================" +call dump_thread(); +username event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 14 +localhost wait/synch/rwlock/sql/LOCK_grant 2 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 14 +wait/synch/rwlock/sql/LOCK_grant 2 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 14 +wait/synch/rwlock/sql/LOCK_grant 2 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 8 +localhost stage/sql/closing tables 21 +localhost stage/sql/init 6 +localhost stage/sql/Opening tables 13 +localhost stage/sql/starting 12 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 8 +stage/sql/closing tables 21 +stage/sql/init 6 +stage/sql/Opening tables 13 +stage/sql/starting 12 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 8 +stage/sql/closing tables 21 +stage/sql/init 6 +stage/sql/Opening tables 13 +stage/sql/starting 12 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 2 +localhost statement/sql/insert 2 +localhost statement/sql/select 6 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 2 +statement/sql/insert 2 +statement/sql/select 6 +execute dump_statements_history; +event_name count(event_name) +statement/sp/freturn 2 +statement/sql/insert 2 +statement/sql/select 6 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 4 +execute dump_transactions_global; +event_name count_star +transaction 4 +execute dump_transactions_history; +event_name count(event_name) +transaction 4 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 3 3 +connect con3, localhost, user3, ,test; +connection default; +"================== Step 6 ==================" +call dump_thread(); +username event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user3 wait/io/file/sql/query_log 1 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 15 +localhost wait/synch/rwlock/sql/LOCK_grant 2 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 15 +wait/synch/rwlock/sql/LOCK_grant 2 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 15 +wait/synch/rwlock/sql/LOCK_grant 2 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 8 +localhost stage/sql/closing tables 21 +localhost stage/sql/init 6 +localhost stage/sql/Opening tables 13 +localhost stage/sql/starting 12 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 8 +stage/sql/closing tables 21 +stage/sql/init 6 +stage/sql/Opening tables 13 +stage/sql/starting 12 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 8 +stage/sql/closing tables 21 +stage/sql/init 6 +stage/sql/Opening tables 13 +stage/sql/starting 12 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 2 +localhost statement/sql/insert 2 +localhost statement/sql/select 6 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 2 +statement/sql/insert 2 +statement/sql/select 6 +execute dump_statements_history; +event_name count(event_name) +statement/sp/freturn 2 +statement/sql/insert 2 +statement/sql/select 6 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 4 +execute dump_transactions_global; +event_name count_star +transaction 4 +execute dump_transactions_history; +event_name count(event_name) +transaction 4 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 4 4 +connection con3; +select uuid_short() <> 1; +uuid_short() <> 1 +1 +select uuid_short() <> 1; +uuid_short() <> 1 +1 +start transaction; +insert into test.t1 values ("marker"); +commit; +select test.f(10,20); +test.f(10,20) +30 +connection default; +"================== Step 7 ==================" +call dump_thread(); +username event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user3 wait/io/file/sql/query_log 7 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 21 +localhost wait/synch/rwlock/sql/LOCK_grant 3 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 21 +wait/synch/rwlock/sql/LOCK_grant 3 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 21 +wait/synch/rwlock/sql/LOCK_grant 3 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 12 +localhost stage/sql/closing tables 31 +localhost stage/sql/init 9 +localhost stage/sql/Opening tables 19 +localhost stage/sql/starting 18 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 12 +stage/sql/closing tables 31 +stage/sql/init 9 +stage/sql/Opening tables 19 +stage/sql/starting 18 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 12 +stage/sql/closing tables 31 +stage/sql/init 9 +stage/sql/Opening tables 19 +stage/sql/starting 18 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 3 +localhost statement/sql/insert 3 +localhost statement/sql/select 9 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 3 +statement/sql/insert 3 +statement/sql/select 9 +execute dump_statements_history; +event_name count(event_name) +statement/sp/freturn 3 +statement/sql/insert 3 +statement/sql/select 9 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 6 +execute dump_transactions_global; +event_name count_star +transaction 6 +execute dump_transactions_history; +event_name count(event_name) +transaction 6 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 4 4 +connect con4, localhost, user4, ,test; +connection default; +"================== Step 8 ==================" +call dump_thread(); +username event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user3 wait/io/file/sql/query_log 7 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user4 wait/io/file/sql/query_log 1 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 22 +localhost wait/synch/rwlock/sql/LOCK_grant 3 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 22 +wait/synch/rwlock/sql/LOCK_grant 3 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 22 +wait/synch/rwlock/sql/LOCK_grant 3 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 12 +localhost stage/sql/closing tables 31 +localhost stage/sql/init 9 +localhost stage/sql/Opening tables 19 +localhost stage/sql/starting 18 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 12 +stage/sql/closing tables 31 +stage/sql/init 9 +stage/sql/Opening tables 19 +stage/sql/starting 18 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 12 +stage/sql/closing tables 31 +stage/sql/init 9 +stage/sql/Opening tables 19 +stage/sql/starting 18 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 3 +localhost statement/sql/insert 3 +localhost statement/sql/select 9 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 3 +statement/sql/insert 3 +statement/sql/select 9 +execute dump_statements_history; +event_name count(event_name) +statement/sp/freturn 3 +statement/sql/insert 3 +statement/sql/select 9 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 6 +execute dump_transactions_global; +event_name count_star +transaction 6 +execute dump_transactions_history; +event_name count(event_name) +transaction 6 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 5 5 +connection con4; +select uuid_short() <> 1; +uuid_short() <> 1 +1 +select uuid_short() <> 1; +uuid_short() <> 1 +1 +start transaction; +insert into test.t1 values ("marker"); +commit; +select test.f(10,20); +test.f(10,20) +30 +connection default; +"================== Step 9 ==================" +call dump_thread(); +username event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user3 wait/io/file/sql/query_log 7 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user4 wait/io/file/sql/query_log 7 +user4 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 28 +localhost wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 28 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 28 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 16 +localhost stage/sql/closing tables 41 +localhost stage/sql/init 12 +localhost stage/sql/Opening tables 25 +localhost stage/sql/starting 24 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 24 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 24 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 5 5 +disconnect con1; +connection default; +"================== Step 10 ==================" +call dump_thread(); +username status +user1 not found +username event_name count_star +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user3 wait/io/file/sql/query_log 7 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user4 wait/io/file/sql/query_log 7 +user4 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 29 +localhost wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 29 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 29 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 16 +localhost stage/sql/closing tables 41 +localhost stage/sql/init 12 +localhost stage/sql/Opening tables 25 +localhost stage/sql/starting 25 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 25 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 25 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 1 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 1 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 1 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 4 5 +disconnect con2; +connection default; +"================== Step 11 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username event_name count_star +user3 wait/io/file/sql/query_log 7 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user4 wait/io/file/sql/query_log 7 +user4 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 30 +localhost wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 30 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 30 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 16 +localhost stage/sql/closing tables 41 +localhost stage/sql/init 12 +localhost stage/sql/Opening tables 25 +localhost stage/sql/starting 26 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 26 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 26 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 2 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 2 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 2 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 3 5 +disconnect con3; +connection default; +"================== Step 12 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username event_name count_star +user4 wait/io/file/sql/query_log 7 +user4 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 31 +localhost wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 31 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 31 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 16 +localhost stage/sql/closing tables 41 +localhost stage/sql/init 12 +localhost stage/sql/Opening tables 25 +localhost stage/sql/starting 27 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 27 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 27 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 3 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 3 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 3 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 2 5 +disconnect con4; +connection default; +"================== Step 13 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 32 +localhost wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 16 +localhost stage/sql/closing tables 41 +localhost stage/sql/init 12 +localhost stage/sql/Opening tables 25 +localhost stage/sql/starting 28 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 4 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +connection default; +truncate performance_schema.events_waits_summary_by_thread_by_event_name; +"================== WAITS_BY_THREAD truncated ==================" +"================== Step 14 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 32 +localhost wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 16 +localhost stage/sql/closing tables 41 +localhost stage/sql/init 12 +localhost stage/sql/Opening tables 25 +localhost stage/sql/starting 28 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 4 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_waits_summary_by_account_by_event_name; +"================== WAITS_BY_ACCOUNT truncated ==================" +"================== Step 15 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 32 +localhost wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 16 +localhost stage/sql/closing tables 41 +localhost stage/sql/init 12 +localhost stage/sql/Opening tables 25 +localhost stage/sql/starting 28 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 4 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_waits_summary_by_user_by_event_name; +"================== WAITS_BY_USER truncated ==================" +"================== Step 16 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 32 +localhost wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 16 +localhost stage/sql/closing tables 41 +localhost stage/sql/init 12 +localhost stage/sql/Opening tables 25 +localhost stage/sql/starting 28 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 4 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_waits_summary_by_host_by_event_name; +"================== WAITS_BY_HOST truncated ==================" +"================== Step 17 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 16 +localhost stage/sql/closing tables 41 +localhost stage/sql/init 12 +localhost stage/sql/Opening tables 25 +localhost stage/sql/starting 28 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 4 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_waits_summary_global_by_event_name; +"================== WAITS_GLOBAL truncated ==================" +"================== Step 18 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 16 +localhost stage/sql/closing tables 41 +localhost stage/sql/init 12 +localhost stage/sql/Opening tables 25 +localhost stage/sql/starting 28 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 4 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_stages_summary_by_thread_by_event_name; +"================== STAGES_BY_THREAD truncated ==================" +"================== Step 19 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 16 +localhost stage/sql/closing tables 41 +localhost stage/sql/init 12 +localhost stage/sql/Opening tables 25 +localhost stage/sql/starting 28 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 4 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_stages_summary_by_account_by_event_name; +"================== STAGES_BY_ACCOUNT truncated ==================" +"================== Step 20 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 16 +localhost stage/sql/closing tables 41 +localhost stage/sql/init 12 +localhost stage/sql/Opening tables 25 +localhost stage/sql/starting 28 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 4 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_stages_summary_by_user_by_event_name; +"================== STAGES_BY_USER truncated ==================" +"================== Step 21 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 16 +localhost stage/sql/closing tables 41 +localhost stage/sql/init 12 +localhost stage/sql/Opening tables 25 +localhost stage/sql/starting 28 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 4 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_stages_summary_by_host_by_event_name; +"================== STAGES_BY_HOST truncated ==================" +"================== Step 22 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 0 +localhost stage/sql/closing tables 0 +localhost stage/sql/init 0 +localhost stage/sql/Opening tables 0 +localhost stage/sql/starting 0 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 4 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_stages_summary_global_by_event_name; +"================== STAGES_GLOBAL truncated ==================" +"================== Step 23 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 0 +localhost stage/sql/closing tables 0 +localhost stage/sql/init 0 +localhost stage/sql/Opening tables 0 +localhost stage/sql/starting 0 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 4 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_statements_summary_by_thread_by_event_name; +"================== STATEMENTS_BY_THREAD truncated ==================" +"================== Step 24 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 0 +localhost stage/sql/closing tables 0 +localhost stage/sql/init 0 +localhost stage/sql/Opening tables 0 +localhost stage/sql/starting 0 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 4 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_statements_summary_by_account_by_event_name; +"================== STATEMENTS_BY_ACCOUNT truncated ==================" +"================== Step 25 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 0 +localhost stage/sql/closing tables 0 +localhost stage/sql/init 0 +localhost stage/sql/Opening tables 0 +localhost stage/sql/starting 0 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 4 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_statements_summary_by_user_by_event_name; +"================== STATEMENTS_BY_USER truncated ==================" +"================== Step 26 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 0 +localhost stage/sql/closing tables 0 +localhost stage/sql/init 0 +localhost stage/sql/Opening tables 0 +localhost stage/sql/starting 0 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 4 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_statements_summary_by_host_by_event_name; +"================== STATEMENTS_BY_HOST truncated ==================" +"================== Step 27 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 0 +localhost stage/sql/closing tables 0 +localhost stage/sql/init 0 +localhost stage/sql/Opening tables 0 +localhost stage/sql/starting 0 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 0 +localhost statement/sql/insert 0 +localhost statement/sql/select 0 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_statements_summary_global_by_event_name; +"================== STATEMENTS_GLOBAL truncated ==================" +"================== Step 28 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 0 +localhost stage/sql/closing tables 0 +localhost stage/sql/init 0 +localhost stage/sql/Opening tables 0 +localhost stage/sql/starting 0 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 0 +localhost statement/sql/insert 0 +localhost statement/sql/select 0 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_transactions_summary_by_thread_by_event_name; +"================== TRANSACTIONS_BY_THREAD truncated ==================" +"================== Step 29 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 0 +localhost stage/sql/closing tables 0 +localhost stage/sql/init 0 +localhost stage/sql/Opening tables 0 +localhost stage/sql/starting 0 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 0 +localhost statement/sql/insert 0 +localhost statement/sql/select 0 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_transactions_summary_by_account_by_event_name; +"================== TRANSACTIONS_BY_ACCOUNT truncated ==================" +"================== Step 30 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 0 +localhost stage/sql/closing tables 0 +localhost stage/sql/init 0 +localhost stage/sql/Opening tables 0 +localhost stage/sql/starting 0 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 0 +localhost statement/sql/insert 0 +localhost statement/sql/select 0 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_transactions_summary_by_user_by_event_name; +"================== TRANSACTIONS_BY_USER truncated ==================" +"================== Step 31 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 0 +localhost stage/sql/closing tables 0 +localhost stage/sql/init 0 +localhost stage/sql/Opening tables 0 +localhost stage/sql/starting 0 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 0 +localhost statement/sql/insert 0 +localhost statement/sql/select 0 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_transactions_summary_by_host_by_event_name; +"================== TRANSACTIONS_BY_HOST truncated ==================" +"================== Step 32 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 0 +localhost stage/sql/closing tables 0 +localhost stage/sql/init 0 +localhost stage/sql/Opening tables 0 +localhost stage/sql/starting 0 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 0 +localhost statement/sql/insert 0 +localhost statement/sql/select 0 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 0 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_transactions_summary_global_by_event_name; +"================== TRANSACTIONS_GLOBAL truncated ==================" +"================== Step 33 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 0 +localhost stage/sql/closing tables 0 +localhost stage/sql/init 0 +localhost stage/sql/Opening tables 0 +localhost stage/sql/starting 0 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 0 +localhost statement/sql/insert 0 +localhost statement/sql/select 0 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 0 +execute dump_transactions_global; +event_name count_star +transaction 0 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.accounts; +"================== ACCOUNTS truncated ==================" +"================== Step 34 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 0 +localhost stage/sql/closing tables 0 +localhost stage/sql/init 0 +localhost stage/sql/Opening tables 0 +localhost stage/sql/starting 0 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 0 +localhost statement/sql/insert 0 +localhost statement/sql/select 0 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 0 +execute dump_transactions_global; +event_name count_star +transaction 0 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.users; +"================== USERS truncated ==================" +"================== Step 35 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 0 +localhost stage/sql/closing tables 0 +localhost stage/sql/init 0 +localhost stage/sql/Opening tables 0 +localhost stage/sql/starting 0 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 0 +localhost statement/sql/insert 0 +localhost statement/sql/select 0 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 0 +execute dump_transactions_global; +event_name count_star +transaction 0 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.hosts; +"================== HOSTS truncated ==================" +"================== Step 36 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 0 +localhost stage/sql/closing tables 0 +localhost stage/sql/init 0 +localhost stage/sql/Opening tables 0 +localhost stage/sql/starting 0 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 0 +localhost statement/sql/insert 0 +localhost statement/sql/select 0 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 0 +execute dump_transactions_global; +event_name count_star +transaction 0 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 1 diff --git a/mysql-test/suite/perfschema/r/event_aggregate_no_a_no_u_no_h.result b/mysql-test/suite/perfschema/r/event_aggregate_no_a_no_u_no_h.result new file mode 100644 index 00000000..af535623 --- /dev/null +++ b/mysql-test/suite/perfschema/r/event_aggregate_no_a_no_u_no_h.result @@ -0,0 +1,3031 @@ +"================== Step 1 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 0 +execute dump_transactions_history; +event_name count(event_name) +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connect con1, localhost, user1, ,test; +connection default; +"================== Step 2 ==================" +call dump_thread(); +username event_name count_star +user1 wait/io/file/sql/query_log 1 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 1 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 1 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 0 +execute dump_transactions_history; +event_name count(event_name) +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connection con1; +select uuid_short() <> 1; +uuid_short() <> 1 +1 +select uuid_short() <> 1; +uuid_short() <> 1 +1 +start transaction; +insert into test.t1 values ("marker"); +commit; +select test.f(10,20); +test.f(10,20) +30 +connection default; +"================== Step 3 ==================" +call dump_thread(); +username event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 7 +wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 7 +wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 4 +stage/sql/closing tables 11 +stage/sql/init 3 +stage/sql/Opening tables 7 +stage/sql/starting 6 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 4 +stage/sql/closing tables 11 +stage/sql/init 3 +stage/sql/Opening tables 7 +stage/sql/starting 6 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 1 +statement/sql/insert 1 +statement/sql/select 3 +execute dump_statements_history; +event_name count(event_name) +statement/sp/freturn 1 +statement/sql/insert 1 +statement/sql/select 3 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 2 +execute dump_transactions_history; +event_name count(event_name) +transaction 2 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connect con2, localhost, user2, ,test; +connection default; +"================== Step 4 ==================" +call dump_thread(); +username event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user2 wait/io/file/sql/query_log 1 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 8 +wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 8 +wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 4 +stage/sql/closing tables 11 +stage/sql/init 3 +stage/sql/Opening tables 7 +stage/sql/starting 6 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 4 +stage/sql/closing tables 11 +stage/sql/init 3 +stage/sql/Opening tables 7 +stage/sql/starting 6 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 1 +statement/sql/insert 1 +statement/sql/select 3 +execute dump_statements_history; +event_name count(event_name) +statement/sp/freturn 1 +statement/sql/insert 1 +statement/sql/select 3 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 2 +execute dump_transactions_history; +event_name count(event_name) +transaction 2 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connection con2; +select uuid_short() <> 1; +uuid_short() <> 1 +1 +select uuid_short() <> 1; +uuid_short() <> 1 +1 +start transaction; +insert into test.t1 values ("marker"); +commit; +select test.f(10,20); +test.f(10,20) +30 +connection default; +"================== Step 5 ==================" +call dump_thread(); +username event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 14 +wait/synch/rwlock/sql/LOCK_grant 2 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 14 +wait/synch/rwlock/sql/LOCK_grant 2 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 8 +stage/sql/closing tables 21 +stage/sql/init 6 +stage/sql/Opening tables 13 +stage/sql/starting 12 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 8 +stage/sql/closing tables 21 +stage/sql/init 6 +stage/sql/Opening tables 13 +stage/sql/starting 12 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 2 +statement/sql/insert 2 +statement/sql/select 6 +execute dump_statements_history; +event_name count(event_name) +statement/sp/freturn 2 +statement/sql/insert 2 +statement/sql/select 6 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 4 +execute dump_transactions_history; +event_name count(event_name) +transaction 4 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connect con3, localhost, user3, ,test; +connection default; +"================== Step 6 ==================" +call dump_thread(); +username event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user3 wait/io/file/sql/query_log 1 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 15 +wait/synch/rwlock/sql/LOCK_grant 2 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 15 +wait/synch/rwlock/sql/LOCK_grant 2 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 8 +stage/sql/closing tables 21 +stage/sql/init 6 +stage/sql/Opening tables 13 +stage/sql/starting 12 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 8 +stage/sql/closing tables 21 +stage/sql/init 6 +stage/sql/Opening tables 13 +stage/sql/starting 12 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 2 +statement/sql/insert 2 +statement/sql/select 6 +execute dump_statements_history; +event_name count(event_name) +statement/sp/freturn 2 +statement/sql/insert 2 +statement/sql/select 6 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 4 +execute dump_transactions_history; +event_name count(event_name) +transaction 4 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connection con3; +select uuid_short() <> 1; +uuid_short() <> 1 +1 +select uuid_short() <> 1; +uuid_short() <> 1 +1 +start transaction; +insert into test.t1 values ("marker"); +commit; +select test.f(10,20); +test.f(10,20) +30 +connection default; +"================== Step 7 ==================" +call dump_thread(); +username event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user3 wait/io/file/sql/query_log 7 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 21 +wait/synch/rwlock/sql/LOCK_grant 3 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 21 +wait/synch/rwlock/sql/LOCK_grant 3 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 12 +stage/sql/closing tables 31 +stage/sql/init 9 +stage/sql/Opening tables 19 +stage/sql/starting 18 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 12 +stage/sql/closing tables 31 +stage/sql/init 9 +stage/sql/Opening tables 19 +stage/sql/starting 18 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 3 +statement/sql/insert 3 +statement/sql/select 9 +execute dump_statements_history; +event_name count(event_name) +statement/sp/freturn 3 +statement/sql/insert 3 +statement/sql/select 9 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 6 +execute dump_transactions_history; +event_name count(event_name) +transaction 6 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connect con4, localhost, user4, ,test; +connection default; +"================== Step 8 ==================" +call dump_thread(); +username event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user3 wait/io/file/sql/query_log 7 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user4 wait/io/file/sql/query_log 1 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 22 +wait/synch/rwlock/sql/LOCK_grant 3 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 22 +wait/synch/rwlock/sql/LOCK_grant 3 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 12 +stage/sql/closing tables 31 +stage/sql/init 9 +stage/sql/Opening tables 19 +stage/sql/starting 18 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 12 +stage/sql/closing tables 31 +stage/sql/init 9 +stage/sql/Opening tables 19 +stage/sql/starting 18 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 3 +statement/sql/insert 3 +statement/sql/select 9 +execute dump_statements_history; +event_name count(event_name) +statement/sp/freturn 3 +statement/sql/insert 3 +statement/sql/select 9 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 6 +execute dump_transactions_history; +event_name count(event_name) +transaction 6 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connection con4; +select uuid_short() <> 1; +uuid_short() <> 1 +1 +select uuid_short() <> 1; +uuid_short() <> 1 +1 +start transaction; +insert into test.t1 values ("marker"); +commit; +select test.f(10,20); +test.f(10,20) +30 +connection default; +"================== Step 9 ==================" +call dump_thread(); +username event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user3 wait/io/file/sql/query_log 7 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user4 wait/io/file/sql/query_log 7 +user4 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 28 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 28 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 24 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 24 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +disconnect con1; +connection default; +"================== Step 10 ==================" +call dump_thread(); +username status +user1 not found +username event_name count_star +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user3 wait/io/file/sql/query_log 7 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user4 wait/io/file/sql/query_log 7 +user4 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 29 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 29 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 25 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 25 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 1 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 1 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +disconnect con2; +connection default; +"================== Step 11 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username event_name count_star +user3 wait/io/file/sql/query_log 7 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user4 wait/io/file/sql/query_log 7 +user4 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 30 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 30 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 26 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 26 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 2 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 2 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +disconnect con3; +connection default; +"================== Step 12 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username event_name count_star +user4 wait/io/file/sql/query_log 7 +user4 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 31 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 31 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 27 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 27 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 3 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 3 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +disconnect con4; +connection default; +"================== Step 13 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connection default; +truncate performance_schema.events_waits_summary_by_thread_by_event_name; +"================== WAITS_BY_THREAD truncated ==================" +"================== Step 14 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_waits_summary_by_account_by_event_name; +"================== WAITS_BY_ACCOUNT truncated ==================" +"================== Step 15 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_waits_summary_by_user_by_event_name; +"================== WAITS_BY_USER truncated ==================" +"================== Step 16 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_waits_summary_by_host_by_event_name; +"================== WAITS_BY_HOST truncated ==================" +"================== Step 17 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_waits_summary_global_by_event_name; +"================== WAITS_GLOBAL truncated ==================" +"================== Step 18 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_stages_summary_by_thread_by_event_name; +"================== STAGES_BY_THREAD truncated ==================" +"================== Step 19 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_stages_summary_by_account_by_event_name; +"================== STAGES_BY_ACCOUNT truncated ==================" +"================== Step 20 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_stages_summary_by_user_by_event_name; +"================== STAGES_BY_USER truncated ==================" +"================== Step 21 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_stages_summary_by_host_by_event_name; +"================== STAGES_BY_HOST truncated ==================" +"================== Step 22 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_stages_summary_global_by_event_name; +"================== STAGES_GLOBAL truncated ==================" +"================== Step 23 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_statements_summary_by_thread_by_event_name; +"================== STATEMENTS_BY_THREAD truncated ==================" +"================== Step 24 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_statements_summary_by_account_by_event_name; +"================== STATEMENTS_BY_ACCOUNT truncated ==================" +"================== Step 25 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_statements_summary_by_user_by_event_name; +"================== STATEMENTS_BY_USER truncated ==================" +"================== Step 26 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_statements_summary_by_host_by_event_name; +"================== STATEMENTS_BY_HOST truncated ==================" +"================== Step 27 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_statements_summary_global_by_event_name; +"================== STATEMENTS_GLOBAL truncated ==================" +"================== Step 28 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_transactions_summary_by_thread_by_event_name; +"================== TRANSACTIONS_BY_THREAD truncated ==================" +"================== Step 29 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_transactions_summary_by_account_by_event_name; +"================== TRANSACTIONS_BY_ACCOUNT truncated ==================" +"================== Step 30 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_transactions_summary_by_user_by_event_name; +"================== TRANSACTIONS_BY_USER truncated ==================" +"================== Step 31 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_transactions_summary_by_host_by_event_name; +"================== TRANSACTIONS_BY_HOST truncated ==================" +"================== Step 32 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_transactions_summary_global_by_event_name; +"================== TRANSACTIONS_GLOBAL truncated ==================" +"================== Step 33 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 0 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.accounts; +"================== ACCOUNTS truncated ==================" +"================== Step 34 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 0 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.users; +"================== USERS truncated ==================" +"================== Step 35 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 0 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.hosts; +"================== HOSTS truncated ==================" +"================== Step 36 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 0 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS diff --git a/mysql-test/suite/perfschema/r/event_aggregate_no_h.result b/mysql-test/suite/perfschema/r/event_aggregate_no_h.result new file mode 100644 index 00000000..1209d376 --- /dev/null +++ b/mysql-test/suite/perfschema/r/event_aggregate_no_h.result @@ -0,0 +1,6407 @@ +"================== Step 1 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 0 +execute dump_transactions_history; +event_name count(event_name) +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connect con1, localhost, user1, ,test; +connection default; +"================== Step 2 ==================" +call dump_thread(); +username event_name count_star +user1 wait/io/file/sql/query_log 1 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 1 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 1 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 1 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 1 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 0 +user1 localhost stage/sql/closing tables 0 +user1 localhost stage/sql/init 0 +user1 localhost stage/sql/Opening tables 0 +user1 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 0 +user1 stage/sql/closing tables 0 +user1 stage/sql/init 0 +user1 stage/sql/Opening tables 0 +user1 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 0 +user1 localhost statement/sp/freturn 0 +user1 localhost statement/sql/insert 0 +user1 localhost statement/sql/select 0 +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 0 +user1 statement/sp/freturn 0 +user1 statement/sql/insert 0 +user1 statement/sql/select 0 +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 0 +execute dump_transactions_user; +user event_name count_star +user1 transaction 0 +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 0 +execute dump_transactions_history; +event_name count(event_name) +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connection con1; +select uuid_short() <> 1; +uuid_short() <> 1 +1 +select uuid_short() <> 1; +uuid_short() <> 1 +1 +start transaction; +insert into test.t1 values ("marker"); +commit; +select test.f(10,20); +test.f(10,20) +30 +connection default; +"================== Step 3 ==================" +call dump_thread(); +username event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 7 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 7 +wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 7 +wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 4 +user1 localhost stage/sql/closing tables 11 +user1 localhost stage/sql/init 3 +user1 localhost stage/sql/Opening tables 7 +user1 localhost stage/sql/starting 6 +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 6 +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 4 +stage/sql/closing tables 11 +stage/sql/init 3 +stage/sql/Opening tables 7 +stage/sql/starting 6 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 4 +stage/sql/closing tables 11 +stage/sql/init 3 +stage/sql/Opening tables 7 +stage/sql/starting 6 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 0 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 0 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 1 +statement/sql/insert 1 +statement/sql/select 3 +execute dump_statements_history; +event_name count(event_name) +statement/sp/freturn 1 +statement/sql/insert 1 +statement/sql/select 3 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 2 +execute dump_transactions_history; +event_name count(event_name) +transaction 2 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connect con2, localhost, user2, ,test; +connection default; +"================== Step 4 ==================" +call dump_thread(); +username event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user2 wait/io/file/sql/query_log 1 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 7 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user2 localhost wait/io/file/sql/query_log 1 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +user2 wait/io/file/sql/query_log 1 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 8 +wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 8 +wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 4 +user1 localhost stage/sql/closing tables 11 +user1 localhost stage/sql/init 3 +user1 localhost stage/sql/Opening tables 7 +user1 localhost stage/sql/starting 6 +user2 localhost stage/sql/checking permissions 0 +user2 localhost stage/sql/closing tables 0 +user2 localhost stage/sql/init 0 +user2 localhost stage/sql/Opening tables 0 +user2 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 6 +user2 stage/sql/checking permissions 0 +user2 stage/sql/closing tables 0 +user2 stage/sql/init 0 +user2 stage/sql/Opening tables 0 +user2 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 4 +stage/sql/closing tables 11 +stage/sql/init 3 +stage/sql/Opening tables 7 +stage/sql/starting 6 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 4 +stage/sql/closing tables 11 +stage/sql/init 3 +stage/sql/Opening tables 7 +stage/sql/starting 6 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 0 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 0 +user2 localhost statement/sp/freturn 0 +user2 localhost statement/sql/insert 0 +user2 localhost statement/sql/select 0 +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 0 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 0 +user2 statement/sp/freturn 0 +user2 statement/sql/insert 0 +user2 statement/sql/select 0 +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 1 +statement/sql/insert 1 +statement/sql/select 3 +execute dump_statements_history; +event_name count(event_name) +statement/sp/freturn 1 +statement/sql/insert 1 +statement/sql/select 3 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 0 +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 0 +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 2 +execute dump_transactions_history; +event_name count(event_name) +transaction 2 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +user2 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +user2 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connection con2; +select uuid_short() <> 1; +uuid_short() <> 1 +1 +select uuid_short() <> 1; +uuid_short() <> 1 +1 +start transaction; +insert into test.t1 values ("marker"); +commit; +select test.f(10,20); +test.f(10,20) +30 +connection default; +"================== Step 5 ==================" +call dump_thread(); +username event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 7 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user2 localhost wait/io/file/sql/query_log 7 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 14 +wait/synch/rwlock/sql/LOCK_grant 2 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 14 +wait/synch/rwlock/sql/LOCK_grant 2 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 4 +user1 localhost stage/sql/closing tables 11 +user1 localhost stage/sql/init 3 +user1 localhost stage/sql/Opening tables 7 +user1 localhost stage/sql/starting 6 +user2 localhost stage/sql/checking permissions 4 +user2 localhost stage/sql/closing tables 10 +user2 localhost stage/sql/init 3 +user2 localhost stage/sql/Opening tables 6 +user2 localhost stage/sql/starting 6 +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 6 +user2 stage/sql/checking permissions 4 +user2 stage/sql/closing tables 10 +user2 stage/sql/init 3 +user2 stage/sql/Opening tables 6 +user2 stage/sql/starting 6 +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 8 +stage/sql/closing tables 21 +stage/sql/init 6 +stage/sql/Opening tables 13 +stage/sql/starting 12 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 8 +stage/sql/closing tables 21 +stage/sql/init 6 +stage/sql/Opening tables 13 +stage/sql/starting 12 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 0 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 0 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 0 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 0 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 2 +statement/sql/insert 2 +statement/sql/select 6 +execute dump_statements_history; +event_name count(event_name) +statement/sp/freturn 2 +statement/sql/insert 2 +statement/sql/select 6 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 4 +execute dump_transactions_history; +event_name count(event_name) +transaction 4 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +user2 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +user2 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connect con3, localhost, user3, ,test; +connection default; +"================== Step 6 ==================" +call dump_thread(); +username event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user3 wait/io/file/sql/query_log 1 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 7 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user2 localhost wait/io/file/sql/query_log 7 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user3 localhost wait/io/file/sql/query_log 1 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +user3 wait/io/file/sql/query_log 1 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 15 +wait/synch/rwlock/sql/LOCK_grant 2 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 15 +wait/synch/rwlock/sql/LOCK_grant 2 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 4 +user1 localhost stage/sql/closing tables 11 +user1 localhost stage/sql/init 3 +user1 localhost stage/sql/Opening tables 7 +user1 localhost stage/sql/starting 6 +user2 localhost stage/sql/checking permissions 4 +user2 localhost stage/sql/closing tables 10 +user2 localhost stage/sql/init 3 +user2 localhost stage/sql/Opening tables 6 +user2 localhost stage/sql/starting 6 +user3 localhost stage/sql/checking permissions 0 +user3 localhost stage/sql/closing tables 0 +user3 localhost stage/sql/init 0 +user3 localhost stage/sql/Opening tables 0 +user3 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 6 +user2 stage/sql/checking permissions 4 +user2 stage/sql/closing tables 10 +user2 stage/sql/init 3 +user2 stage/sql/Opening tables 6 +user2 stage/sql/starting 6 +user3 stage/sql/checking permissions 0 +user3 stage/sql/closing tables 0 +user3 stage/sql/init 0 +user3 stage/sql/Opening tables 0 +user3 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 8 +stage/sql/closing tables 21 +stage/sql/init 6 +stage/sql/Opening tables 13 +stage/sql/starting 12 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 8 +stage/sql/closing tables 21 +stage/sql/init 6 +stage/sql/Opening tables 13 +stage/sql/starting 12 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 0 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 0 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 0 +user3 localhost statement/sp/freturn 0 +user3 localhost statement/sql/insert 0 +user3 localhost statement/sql/select 0 +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 0 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 0 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 0 +user3 statement/sp/freturn 0 +user3 statement/sql/insert 0 +user3 statement/sql/select 0 +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 2 +statement/sql/insert 2 +statement/sql/select 6 +execute dump_statements_history; +event_name count(event_name) +statement/sp/freturn 2 +statement/sql/insert 2 +statement/sql/select 6 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 0 +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 0 +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 4 +execute dump_transactions_history; +event_name count(event_name) +transaction 4 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +user2 localhost 1 1 +user3 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +user2 1 1 +user3 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connection con3; +select uuid_short() <> 1; +uuid_short() <> 1 +1 +select uuid_short() <> 1; +uuid_short() <> 1 +1 +start transaction; +insert into test.t1 values ("marker"); +commit; +select test.f(10,20); +test.f(10,20) +30 +connection default; +"================== Step 7 ==================" +call dump_thread(); +username event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user3 wait/io/file/sql/query_log 7 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 7 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user2 localhost wait/io/file/sql/query_log 7 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user3 localhost wait/io/file/sql/query_log 7 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +user3 wait/io/file/sql/query_log 7 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 21 +wait/synch/rwlock/sql/LOCK_grant 3 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 21 +wait/synch/rwlock/sql/LOCK_grant 3 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 4 +user1 localhost stage/sql/closing tables 11 +user1 localhost stage/sql/init 3 +user1 localhost stage/sql/Opening tables 7 +user1 localhost stage/sql/starting 6 +user2 localhost stage/sql/checking permissions 4 +user2 localhost stage/sql/closing tables 10 +user2 localhost stage/sql/init 3 +user2 localhost stage/sql/Opening tables 6 +user2 localhost stage/sql/starting 6 +user3 localhost stage/sql/checking permissions 4 +user3 localhost stage/sql/closing tables 10 +user3 localhost stage/sql/init 3 +user3 localhost stage/sql/Opening tables 6 +user3 localhost stage/sql/starting 6 +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 6 +user2 stage/sql/checking permissions 4 +user2 stage/sql/closing tables 10 +user2 stage/sql/init 3 +user2 stage/sql/Opening tables 6 +user2 stage/sql/starting 6 +user3 stage/sql/checking permissions 4 +user3 stage/sql/closing tables 10 +user3 stage/sql/init 3 +user3 stage/sql/Opening tables 6 +user3 stage/sql/starting 6 +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 12 +stage/sql/closing tables 31 +stage/sql/init 9 +stage/sql/Opening tables 19 +stage/sql/starting 18 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 12 +stage/sql/closing tables 31 +stage/sql/init 9 +stage/sql/Opening tables 19 +stage/sql/starting 18 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 0 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 0 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 0 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 0 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 0 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 0 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 3 +statement/sql/insert 3 +statement/sql/select 9 +execute dump_statements_history; +event_name count(event_name) +statement/sp/freturn 3 +statement/sql/insert 3 +statement/sql/select 9 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 6 +execute dump_transactions_history; +event_name count(event_name) +transaction 6 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +user2 localhost 1 1 +user3 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +user2 1 1 +user3 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connect con4, localhost, user4, ,test; +connection default; +"================== Step 8 ==================" +call dump_thread(); +username event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user3 wait/io/file/sql/query_log 7 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user4 wait/io/file/sql/query_log 1 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 7 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user2 localhost wait/io/file/sql/query_log 7 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user3 localhost wait/io/file/sql/query_log 7 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user4 localhost wait/io/file/sql/query_log 1 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +user3 wait/io/file/sql/query_log 7 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +user4 wait/io/file/sql/query_log 1 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 22 +wait/synch/rwlock/sql/LOCK_grant 3 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 22 +wait/synch/rwlock/sql/LOCK_grant 3 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 4 +user1 localhost stage/sql/closing tables 11 +user1 localhost stage/sql/init 3 +user1 localhost stage/sql/Opening tables 7 +user1 localhost stage/sql/starting 6 +user2 localhost stage/sql/checking permissions 4 +user2 localhost stage/sql/closing tables 10 +user2 localhost stage/sql/init 3 +user2 localhost stage/sql/Opening tables 6 +user2 localhost stage/sql/starting 6 +user3 localhost stage/sql/checking permissions 4 +user3 localhost stage/sql/closing tables 10 +user3 localhost stage/sql/init 3 +user3 localhost stage/sql/Opening tables 6 +user3 localhost stage/sql/starting 6 +user4 localhost stage/sql/checking permissions 0 +user4 localhost stage/sql/closing tables 0 +user4 localhost stage/sql/init 0 +user4 localhost stage/sql/Opening tables 0 +user4 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 6 +user2 stage/sql/checking permissions 4 +user2 stage/sql/closing tables 10 +user2 stage/sql/init 3 +user2 stage/sql/Opening tables 6 +user2 stage/sql/starting 6 +user3 stage/sql/checking permissions 4 +user3 stage/sql/closing tables 10 +user3 stage/sql/init 3 +user3 stage/sql/Opening tables 6 +user3 stage/sql/starting 6 +user4 stage/sql/checking permissions 0 +user4 stage/sql/closing tables 0 +user4 stage/sql/init 0 +user4 stage/sql/Opening tables 0 +user4 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 12 +stage/sql/closing tables 31 +stage/sql/init 9 +stage/sql/Opening tables 19 +stage/sql/starting 18 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 12 +stage/sql/closing tables 31 +stage/sql/init 9 +stage/sql/Opening tables 19 +stage/sql/starting 18 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 0 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 0 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 0 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 0 +user4 localhost statement/sp/freturn 0 +user4 localhost statement/sql/insert 0 +user4 localhost statement/sql/select 0 +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 0 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 0 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 0 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 0 +user4 statement/sp/freturn 0 +user4 statement/sql/insert 0 +user4 statement/sql/select 0 +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 3 +statement/sql/insert 3 +statement/sql/select 9 +execute dump_statements_history; +event_name count(event_name) +statement/sp/freturn 3 +statement/sql/insert 3 +statement/sql/select 9 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 0 +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 0 +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 6 +execute dump_transactions_history; +event_name count(event_name) +transaction 6 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +user2 localhost 1 1 +user3 localhost 1 1 +user4 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +user2 1 1 +user3 1 1 +user4 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connection con4; +select uuid_short() <> 1; +uuid_short() <> 1 +1 +select uuid_short() <> 1; +uuid_short() <> 1 +1 +start transaction; +insert into test.t1 values ("marker"); +commit; +select test.f(10,20); +test.f(10,20) +30 +connection default; +"================== Step 9 ==================" +call dump_thread(); +username event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user3 wait/io/file/sql/query_log 7 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user4 wait/io/file/sql/query_log 7 +user4 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 7 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user2 localhost wait/io/file/sql/query_log 7 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user3 localhost wait/io/file/sql/query_log 7 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user4 localhost wait/io/file/sql/query_log 7 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +user3 wait/io/file/sql/query_log 7 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +user4 wait/io/file/sql/query_log 7 +user4 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 28 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 28 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 4 +user1 localhost stage/sql/closing tables 11 +user1 localhost stage/sql/init 3 +user1 localhost stage/sql/Opening tables 7 +user1 localhost stage/sql/starting 6 +user2 localhost stage/sql/checking permissions 4 +user2 localhost stage/sql/closing tables 10 +user2 localhost stage/sql/init 3 +user2 localhost stage/sql/Opening tables 6 +user2 localhost stage/sql/starting 6 +user3 localhost stage/sql/checking permissions 4 +user3 localhost stage/sql/closing tables 10 +user3 localhost stage/sql/init 3 +user3 localhost stage/sql/Opening tables 6 +user3 localhost stage/sql/starting 6 +user4 localhost stage/sql/checking permissions 4 +user4 localhost stage/sql/closing tables 10 +user4 localhost stage/sql/init 3 +user4 localhost stage/sql/Opening tables 6 +user4 localhost stage/sql/starting 6 +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 6 +user2 stage/sql/checking permissions 4 +user2 stage/sql/closing tables 10 +user2 stage/sql/init 3 +user2 stage/sql/Opening tables 6 +user2 stage/sql/starting 6 +user3 stage/sql/checking permissions 4 +user3 stage/sql/closing tables 10 +user3 stage/sql/init 3 +user3 stage/sql/Opening tables 6 +user3 stage/sql/starting 6 +user4 stage/sql/checking permissions 4 +user4 stage/sql/closing tables 10 +user4 stage/sql/init 3 +user4 stage/sql/Opening tables 6 +user4 stage/sql/starting 6 +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 24 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 24 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 0 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 0 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 0 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 0 +user4 localhost statement/sp/freturn 1 +user4 localhost statement/sql/insert 1 +user4 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 0 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 0 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 0 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 0 +user4 statement/sp/freturn 1 +user4 statement/sql/insert 1 +user4 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +user2 localhost 1 1 +user3 localhost 1 1 +user4 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +user2 1 1 +user3 1 1 +user4 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +disconnect con1; +connection default; +"================== Step 10 ==================" +call dump_thread(); +username status +user1 not found +username event_name count_star +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user3 wait/io/file/sql/query_log 7 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user4 wait/io/file/sql/query_log 7 +user4 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 8 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user2 localhost wait/io/file/sql/query_log 7 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user3 localhost wait/io/file/sql/query_log 7 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user4 localhost wait/io/file/sql/query_log 7 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 8 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +user3 wait/io/file/sql/query_log 7 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +user4 wait/io/file/sql/query_log 7 +user4 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 29 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 29 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 4 +user1 localhost stage/sql/closing tables 11 +user1 localhost stage/sql/init 3 +user1 localhost stage/sql/Opening tables 7 +user1 localhost stage/sql/starting 7 +user2 localhost stage/sql/checking permissions 4 +user2 localhost stage/sql/closing tables 10 +user2 localhost stage/sql/init 3 +user2 localhost stage/sql/Opening tables 6 +user2 localhost stage/sql/starting 6 +user3 localhost stage/sql/checking permissions 4 +user3 localhost stage/sql/closing tables 10 +user3 localhost stage/sql/init 3 +user3 localhost stage/sql/Opening tables 6 +user3 localhost stage/sql/starting 6 +user4 localhost stage/sql/checking permissions 4 +user4 localhost stage/sql/closing tables 10 +user4 localhost stage/sql/init 3 +user4 localhost stage/sql/Opening tables 6 +user4 localhost stage/sql/starting 6 +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 7 +user2 stage/sql/checking permissions 4 +user2 stage/sql/closing tables 10 +user2 stage/sql/init 3 +user2 stage/sql/Opening tables 6 +user2 stage/sql/starting 6 +user3 stage/sql/checking permissions 4 +user3 stage/sql/closing tables 10 +user3 stage/sql/init 3 +user3 stage/sql/Opening tables 6 +user3 stage/sql/starting 6 +user4 stage/sql/checking permissions 4 +user4 stage/sql/closing tables 10 +user4 stage/sql/init 3 +user4 stage/sql/Opening tables 6 +user4 stage/sql/starting 6 +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 25 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 25 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 1 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 0 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 0 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 0 +user4 localhost statement/sp/freturn 1 +user4 localhost statement/sql/insert 1 +user4 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 1 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 0 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 0 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 0 +user4 statement/sp/freturn 1 +user4 statement/sql/insert 1 +user4 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 1 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 1 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 1 1 +user3 localhost 1 1 +user4 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 1 1 +user3 1 1 +user4 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +disconnect con2; +connection default; +"================== Step 11 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username event_name count_star +user3 wait/io/file/sql/query_log 7 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user4 wait/io/file/sql/query_log 7 +user4 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 8 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user2 localhost wait/io/file/sql/query_log 8 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user3 localhost wait/io/file/sql/query_log 7 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user4 localhost wait/io/file/sql/query_log 7 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 8 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +user2 wait/io/file/sql/query_log 8 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +user3 wait/io/file/sql/query_log 7 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +user4 wait/io/file/sql/query_log 7 +user4 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 30 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 30 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 4 +user1 localhost stage/sql/closing tables 11 +user1 localhost stage/sql/init 3 +user1 localhost stage/sql/Opening tables 7 +user1 localhost stage/sql/starting 7 +user2 localhost stage/sql/checking permissions 4 +user2 localhost stage/sql/closing tables 10 +user2 localhost stage/sql/init 3 +user2 localhost stage/sql/Opening tables 6 +user2 localhost stage/sql/starting 7 +user3 localhost stage/sql/checking permissions 4 +user3 localhost stage/sql/closing tables 10 +user3 localhost stage/sql/init 3 +user3 localhost stage/sql/Opening tables 6 +user3 localhost stage/sql/starting 6 +user4 localhost stage/sql/checking permissions 4 +user4 localhost stage/sql/closing tables 10 +user4 localhost stage/sql/init 3 +user4 localhost stage/sql/Opening tables 6 +user4 localhost stage/sql/starting 6 +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 7 +user2 stage/sql/checking permissions 4 +user2 stage/sql/closing tables 10 +user2 stage/sql/init 3 +user2 stage/sql/Opening tables 6 +user2 stage/sql/starting 7 +user3 stage/sql/checking permissions 4 +user3 stage/sql/closing tables 10 +user3 stage/sql/init 3 +user3 stage/sql/Opening tables 6 +user3 stage/sql/starting 6 +user4 stage/sql/checking permissions 4 +user4 stage/sql/closing tables 10 +user4 stage/sql/init 3 +user4 stage/sql/Opening tables 6 +user4 stage/sql/starting 6 +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 26 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 26 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 1 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 1 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 0 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 0 +user4 localhost statement/sp/freturn 1 +user4 localhost statement/sql/insert 1 +user4 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 1 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 1 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 0 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 0 +user4 statement/sp/freturn 1 +user4 statement/sql/insert 1 +user4 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 2 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 2 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 1 1 +user4 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 1 1 +user4 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +disconnect con3; +connection default; +"================== Step 12 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username event_name count_star +user4 wait/io/file/sql/query_log 7 +user4 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 8 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user2 localhost wait/io/file/sql/query_log 8 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user3 localhost wait/io/file/sql/query_log 8 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user4 localhost wait/io/file/sql/query_log 7 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 8 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +user2 wait/io/file/sql/query_log 8 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +user3 wait/io/file/sql/query_log 8 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +user4 wait/io/file/sql/query_log 7 +user4 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 31 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 31 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 4 +user1 localhost stage/sql/closing tables 11 +user1 localhost stage/sql/init 3 +user1 localhost stage/sql/Opening tables 7 +user1 localhost stage/sql/starting 7 +user2 localhost stage/sql/checking permissions 4 +user2 localhost stage/sql/closing tables 10 +user2 localhost stage/sql/init 3 +user2 localhost stage/sql/Opening tables 6 +user2 localhost stage/sql/starting 7 +user3 localhost stage/sql/checking permissions 4 +user3 localhost stage/sql/closing tables 10 +user3 localhost stage/sql/init 3 +user3 localhost stage/sql/Opening tables 6 +user3 localhost stage/sql/starting 7 +user4 localhost stage/sql/checking permissions 4 +user4 localhost stage/sql/closing tables 10 +user4 localhost stage/sql/init 3 +user4 localhost stage/sql/Opening tables 6 +user4 localhost stage/sql/starting 6 +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 7 +user2 stage/sql/checking permissions 4 +user2 stage/sql/closing tables 10 +user2 stage/sql/init 3 +user2 stage/sql/Opening tables 6 +user2 stage/sql/starting 7 +user3 stage/sql/checking permissions 4 +user3 stage/sql/closing tables 10 +user3 stage/sql/init 3 +user3 stage/sql/Opening tables 6 +user3 stage/sql/starting 7 +user4 stage/sql/checking permissions 4 +user4 stage/sql/closing tables 10 +user4 stage/sql/init 3 +user4 stage/sql/Opening tables 6 +user4 stage/sql/starting 6 +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 27 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 27 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 1 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 1 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 1 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 0 +user4 localhost statement/sp/freturn 1 +user4 localhost statement/sql/insert 1 +user4 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 1 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 1 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 1 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 0 +user4 statement/sp/freturn 1 +user4 statement/sql/insert 1 +user4 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 3 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 3 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +disconnect con4; +connection default; +"================== Step 13 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 8 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user2 localhost wait/io/file/sql/query_log 8 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user3 localhost wait/io/file/sql/query_log 8 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user4 localhost wait/io/file/sql/query_log 8 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 8 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +user2 wait/io/file/sql/query_log 8 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +user3 wait/io/file/sql/query_log 8 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +user4 wait/io/file/sql/query_log 8 +user4 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 4 +user1 localhost stage/sql/closing tables 11 +user1 localhost stage/sql/init 3 +user1 localhost stage/sql/Opening tables 7 +user1 localhost stage/sql/starting 7 +user2 localhost stage/sql/checking permissions 4 +user2 localhost stage/sql/closing tables 10 +user2 localhost stage/sql/init 3 +user2 localhost stage/sql/Opening tables 6 +user2 localhost stage/sql/starting 7 +user3 localhost stage/sql/checking permissions 4 +user3 localhost stage/sql/closing tables 10 +user3 localhost stage/sql/init 3 +user3 localhost stage/sql/Opening tables 6 +user3 localhost stage/sql/starting 7 +user4 localhost stage/sql/checking permissions 4 +user4 localhost stage/sql/closing tables 10 +user4 localhost stage/sql/init 3 +user4 localhost stage/sql/Opening tables 6 +user4 localhost stage/sql/starting 7 +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 7 +user2 stage/sql/checking permissions 4 +user2 stage/sql/closing tables 10 +user2 stage/sql/init 3 +user2 stage/sql/Opening tables 6 +user2 stage/sql/starting 7 +user3 stage/sql/checking permissions 4 +user3 stage/sql/closing tables 10 +user3 stage/sql/init 3 +user3 stage/sql/Opening tables 6 +user3 stage/sql/starting 7 +user4 stage/sql/checking permissions 4 +user4 stage/sql/closing tables 10 +user4 stage/sql/init 3 +user4 stage/sql/Opening tables 6 +user4 stage/sql/starting 7 +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 1 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 1 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 1 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 1 +user4 localhost statement/sp/freturn 1 +user4 localhost statement/sql/insert 1 +user4 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 1 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 1 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 1 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 1 +user4 statement/sp/freturn 1 +user4 statement/sql/insert 1 +user4 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connection default; +truncate performance_schema.events_waits_summary_by_thread_by_event_name; +"================== WAITS_BY_THREAD truncated ==================" +"================== Step 14 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 8 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user2 localhost wait/io/file/sql/query_log 8 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user3 localhost wait/io/file/sql/query_log 8 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user4 localhost wait/io/file/sql/query_log 8 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 8 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +user2 wait/io/file/sql/query_log 8 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +user3 wait/io/file/sql/query_log 8 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +user4 wait/io/file/sql/query_log 8 +user4 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 4 +user1 localhost stage/sql/closing tables 11 +user1 localhost stage/sql/init 3 +user1 localhost stage/sql/Opening tables 7 +user1 localhost stage/sql/starting 7 +user2 localhost stage/sql/checking permissions 4 +user2 localhost stage/sql/closing tables 10 +user2 localhost stage/sql/init 3 +user2 localhost stage/sql/Opening tables 6 +user2 localhost stage/sql/starting 7 +user3 localhost stage/sql/checking permissions 4 +user3 localhost stage/sql/closing tables 10 +user3 localhost stage/sql/init 3 +user3 localhost stage/sql/Opening tables 6 +user3 localhost stage/sql/starting 7 +user4 localhost stage/sql/checking permissions 4 +user4 localhost stage/sql/closing tables 10 +user4 localhost stage/sql/init 3 +user4 localhost stage/sql/Opening tables 6 +user4 localhost stage/sql/starting 7 +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 7 +user2 stage/sql/checking permissions 4 +user2 stage/sql/closing tables 10 +user2 stage/sql/init 3 +user2 stage/sql/Opening tables 6 +user2 stage/sql/starting 7 +user3 stage/sql/checking permissions 4 +user3 stage/sql/closing tables 10 +user3 stage/sql/init 3 +user3 stage/sql/Opening tables 6 +user3 stage/sql/starting 7 +user4 stage/sql/checking permissions 4 +user4 stage/sql/closing tables 10 +user4 stage/sql/init 3 +user4 stage/sql/Opening tables 6 +user4 stage/sql/starting 7 +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 1 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 1 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 1 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 1 +user4 localhost statement/sp/freturn 1 +user4 localhost statement/sql/insert 1 +user4 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 1 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 1 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 1 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 1 +user4 statement/sp/freturn 1 +user4 statement/sql/insert 1 +user4 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_waits_summary_by_account_by_event_name; +"================== WAITS_BY_ACCOUNT truncated ==================" +"================== Step 15 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 8 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +user2 wait/io/file/sql/query_log 8 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +user3 wait/io/file/sql/query_log 8 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +user4 wait/io/file/sql/query_log 8 +user4 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 4 +user1 localhost stage/sql/closing tables 11 +user1 localhost stage/sql/init 3 +user1 localhost stage/sql/Opening tables 7 +user1 localhost stage/sql/starting 7 +user2 localhost stage/sql/checking permissions 4 +user2 localhost stage/sql/closing tables 10 +user2 localhost stage/sql/init 3 +user2 localhost stage/sql/Opening tables 6 +user2 localhost stage/sql/starting 7 +user3 localhost stage/sql/checking permissions 4 +user3 localhost stage/sql/closing tables 10 +user3 localhost stage/sql/init 3 +user3 localhost stage/sql/Opening tables 6 +user3 localhost stage/sql/starting 7 +user4 localhost stage/sql/checking permissions 4 +user4 localhost stage/sql/closing tables 10 +user4 localhost stage/sql/init 3 +user4 localhost stage/sql/Opening tables 6 +user4 localhost stage/sql/starting 7 +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 7 +user2 stage/sql/checking permissions 4 +user2 stage/sql/closing tables 10 +user2 stage/sql/init 3 +user2 stage/sql/Opening tables 6 +user2 stage/sql/starting 7 +user3 stage/sql/checking permissions 4 +user3 stage/sql/closing tables 10 +user3 stage/sql/init 3 +user3 stage/sql/Opening tables 6 +user3 stage/sql/starting 7 +user4 stage/sql/checking permissions 4 +user4 stage/sql/closing tables 10 +user4 stage/sql/init 3 +user4 stage/sql/Opening tables 6 +user4 stage/sql/starting 7 +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 1 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 1 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 1 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 1 +user4 localhost statement/sp/freturn 1 +user4 localhost statement/sql/insert 1 +user4 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 1 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 1 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 1 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 1 +user4 statement/sp/freturn 1 +user4 statement/sql/insert 1 +user4 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_waits_summary_by_user_by_event_name; +"================== WAITS_BY_USER truncated ==================" +"================== Step 16 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 4 +user1 localhost stage/sql/closing tables 11 +user1 localhost stage/sql/init 3 +user1 localhost stage/sql/Opening tables 7 +user1 localhost stage/sql/starting 7 +user2 localhost stage/sql/checking permissions 4 +user2 localhost stage/sql/closing tables 10 +user2 localhost stage/sql/init 3 +user2 localhost stage/sql/Opening tables 6 +user2 localhost stage/sql/starting 7 +user3 localhost stage/sql/checking permissions 4 +user3 localhost stage/sql/closing tables 10 +user3 localhost stage/sql/init 3 +user3 localhost stage/sql/Opening tables 6 +user3 localhost stage/sql/starting 7 +user4 localhost stage/sql/checking permissions 4 +user4 localhost stage/sql/closing tables 10 +user4 localhost stage/sql/init 3 +user4 localhost stage/sql/Opening tables 6 +user4 localhost stage/sql/starting 7 +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 7 +user2 stage/sql/checking permissions 4 +user2 stage/sql/closing tables 10 +user2 stage/sql/init 3 +user2 stage/sql/Opening tables 6 +user2 stage/sql/starting 7 +user3 stage/sql/checking permissions 4 +user3 stage/sql/closing tables 10 +user3 stage/sql/init 3 +user3 stage/sql/Opening tables 6 +user3 stage/sql/starting 7 +user4 stage/sql/checking permissions 4 +user4 stage/sql/closing tables 10 +user4 stage/sql/init 3 +user4 stage/sql/Opening tables 6 +user4 stage/sql/starting 7 +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 1 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 1 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 1 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 1 +user4 localhost statement/sp/freturn 1 +user4 localhost statement/sql/insert 1 +user4 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 1 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 1 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 1 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 1 +user4 statement/sp/freturn 1 +user4 statement/sql/insert 1 +user4 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_waits_summary_by_host_by_event_name; +"================== WAITS_BY_HOST truncated ==================" +"================== Step 17 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 4 +user1 localhost stage/sql/closing tables 11 +user1 localhost stage/sql/init 3 +user1 localhost stage/sql/Opening tables 7 +user1 localhost stage/sql/starting 7 +user2 localhost stage/sql/checking permissions 4 +user2 localhost stage/sql/closing tables 10 +user2 localhost stage/sql/init 3 +user2 localhost stage/sql/Opening tables 6 +user2 localhost stage/sql/starting 7 +user3 localhost stage/sql/checking permissions 4 +user3 localhost stage/sql/closing tables 10 +user3 localhost stage/sql/init 3 +user3 localhost stage/sql/Opening tables 6 +user3 localhost stage/sql/starting 7 +user4 localhost stage/sql/checking permissions 4 +user4 localhost stage/sql/closing tables 10 +user4 localhost stage/sql/init 3 +user4 localhost stage/sql/Opening tables 6 +user4 localhost stage/sql/starting 7 +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 7 +user2 stage/sql/checking permissions 4 +user2 stage/sql/closing tables 10 +user2 stage/sql/init 3 +user2 stage/sql/Opening tables 6 +user2 stage/sql/starting 7 +user3 stage/sql/checking permissions 4 +user3 stage/sql/closing tables 10 +user3 stage/sql/init 3 +user3 stage/sql/Opening tables 6 +user3 stage/sql/starting 7 +user4 stage/sql/checking permissions 4 +user4 stage/sql/closing tables 10 +user4 stage/sql/init 3 +user4 stage/sql/Opening tables 6 +user4 stage/sql/starting 7 +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 1 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 1 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 1 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 1 +user4 localhost statement/sp/freturn 1 +user4 localhost statement/sql/insert 1 +user4 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 1 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 1 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 1 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 1 +user4 statement/sp/freturn 1 +user4 statement/sql/insert 1 +user4 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_waits_summary_global_by_event_name; +"================== WAITS_GLOBAL truncated ==================" +"================== Step 18 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 4 +user1 localhost stage/sql/closing tables 11 +user1 localhost stage/sql/init 3 +user1 localhost stage/sql/Opening tables 7 +user1 localhost stage/sql/starting 7 +user2 localhost stage/sql/checking permissions 4 +user2 localhost stage/sql/closing tables 10 +user2 localhost stage/sql/init 3 +user2 localhost stage/sql/Opening tables 6 +user2 localhost stage/sql/starting 7 +user3 localhost stage/sql/checking permissions 4 +user3 localhost stage/sql/closing tables 10 +user3 localhost stage/sql/init 3 +user3 localhost stage/sql/Opening tables 6 +user3 localhost stage/sql/starting 7 +user4 localhost stage/sql/checking permissions 4 +user4 localhost stage/sql/closing tables 10 +user4 localhost stage/sql/init 3 +user4 localhost stage/sql/Opening tables 6 +user4 localhost stage/sql/starting 7 +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 7 +user2 stage/sql/checking permissions 4 +user2 stage/sql/closing tables 10 +user2 stage/sql/init 3 +user2 stage/sql/Opening tables 6 +user2 stage/sql/starting 7 +user3 stage/sql/checking permissions 4 +user3 stage/sql/closing tables 10 +user3 stage/sql/init 3 +user3 stage/sql/Opening tables 6 +user3 stage/sql/starting 7 +user4 stage/sql/checking permissions 4 +user4 stage/sql/closing tables 10 +user4 stage/sql/init 3 +user4 stage/sql/Opening tables 6 +user4 stage/sql/starting 7 +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 1 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 1 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 1 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 1 +user4 localhost statement/sp/freturn 1 +user4 localhost statement/sql/insert 1 +user4 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 1 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 1 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 1 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 1 +user4 statement/sp/freturn 1 +user4 statement/sql/insert 1 +user4 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_stages_summary_by_thread_by_event_name; +"================== STAGES_BY_THREAD truncated ==================" +"================== Step 19 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 4 +user1 localhost stage/sql/closing tables 11 +user1 localhost stage/sql/init 3 +user1 localhost stage/sql/Opening tables 7 +user1 localhost stage/sql/starting 7 +user2 localhost stage/sql/checking permissions 4 +user2 localhost stage/sql/closing tables 10 +user2 localhost stage/sql/init 3 +user2 localhost stage/sql/Opening tables 6 +user2 localhost stage/sql/starting 7 +user3 localhost stage/sql/checking permissions 4 +user3 localhost stage/sql/closing tables 10 +user3 localhost stage/sql/init 3 +user3 localhost stage/sql/Opening tables 6 +user3 localhost stage/sql/starting 7 +user4 localhost stage/sql/checking permissions 4 +user4 localhost stage/sql/closing tables 10 +user4 localhost stage/sql/init 3 +user4 localhost stage/sql/Opening tables 6 +user4 localhost stage/sql/starting 7 +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 7 +user2 stage/sql/checking permissions 4 +user2 stage/sql/closing tables 10 +user2 stage/sql/init 3 +user2 stage/sql/Opening tables 6 +user2 stage/sql/starting 7 +user3 stage/sql/checking permissions 4 +user3 stage/sql/closing tables 10 +user3 stage/sql/init 3 +user3 stage/sql/Opening tables 6 +user3 stage/sql/starting 7 +user4 stage/sql/checking permissions 4 +user4 stage/sql/closing tables 10 +user4 stage/sql/init 3 +user4 stage/sql/Opening tables 6 +user4 stage/sql/starting 7 +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 1 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 1 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 1 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 1 +user4 localhost statement/sp/freturn 1 +user4 localhost statement/sql/insert 1 +user4 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 1 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 1 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 1 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 1 +user4 statement/sp/freturn 1 +user4 statement/sql/insert 1 +user4 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_stages_summary_by_account_by_event_name; +"================== STAGES_BY_ACCOUNT truncated ==================" +"================== Step 20 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 0 +user1 localhost stage/sql/closing tables 0 +user1 localhost stage/sql/init 0 +user1 localhost stage/sql/Opening tables 0 +user1 localhost stage/sql/starting 0 +user2 localhost stage/sql/checking permissions 0 +user2 localhost stage/sql/closing tables 0 +user2 localhost stage/sql/init 0 +user2 localhost stage/sql/Opening tables 0 +user2 localhost stage/sql/starting 0 +user3 localhost stage/sql/checking permissions 0 +user3 localhost stage/sql/closing tables 0 +user3 localhost stage/sql/init 0 +user3 localhost stage/sql/Opening tables 0 +user3 localhost stage/sql/starting 0 +user4 localhost stage/sql/checking permissions 0 +user4 localhost stage/sql/closing tables 0 +user4 localhost stage/sql/init 0 +user4 localhost stage/sql/Opening tables 0 +user4 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 4 +user1 stage/sql/closing tables 11 +user1 stage/sql/init 3 +user1 stage/sql/Opening tables 7 +user1 stage/sql/starting 7 +user2 stage/sql/checking permissions 4 +user2 stage/sql/closing tables 10 +user2 stage/sql/init 3 +user2 stage/sql/Opening tables 6 +user2 stage/sql/starting 7 +user3 stage/sql/checking permissions 4 +user3 stage/sql/closing tables 10 +user3 stage/sql/init 3 +user3 stage/sql/Opening tables 6 +user3 stage/sql/starting 7 +user4 stage/sql/checking permissions 4 +user4 stage/sql/closing tables 10 +user4 stage/sql/init 3 +user4 stage/sql/Opening tables 6 +user4 stage/sql/starting 7 +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 1 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 1 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 1 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 1 +user4 localhost statement/sp/freturn 1 +user4 localhost statement/sql/insert 1 +user4 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 1 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 1 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 1 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 1 +user4 statement/sp/freturn 1 +user4 statement/sql/insert 1 +user4 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_stages_summary_by_user_by_event_name; +"================== STAGES_BY_USER truncated ==================" +"================== Step 21 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 0 +user1 localhost stage/sql/closing tables 0 +user1 localhost stage/sql/init 0 +user1 localhost stage/sql/Opening tables 0 +user1 localhost stage/sql/starting 0 +user2 localhost stage/sql/checking permissions 0 +user2 localhost stage/sql/closing tables 0 +user2 localhost stage/sql/init 0 +user2 localhost stage/sql/Opening tables 0 +user2 localhost stage/sql/starting 0 +user3 localhost stage/sql/checking permissions 0 +user3 localhost stage/sql/closing tables 0 +user3 localhost stage/sql/init 0 +user3 localhost stage/sql/Opening tables 0 +user3 localhost stage/sql/starting 0 +user4 localhost stage/sql/checking permissions 0 +user4 localhost stage/sql/closing tables 0 +user4 localhost stage/sql/init 0 +user4 localhost stage/sql/Opening tables 0 +user4 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 0 +user1 stage/sql/closing tables 0 +user1 stage/sql/init 0 +user1 stage/sql/Opening tables 0 +user1 stage/sql/starting 0 +user2 stage/sql/checking permissions 0 +user2 stage/sql/closing tables 0 +user2 stage/sql/init 0 +user2 stage/sql/Opening tables 0 +user2 stage/sql/starting 0 +user3 stage/sql/checking permissions 0 +user3 stage/sql/closing tables 0 +user3 stage/sql/init 0 +user3 stage/sql/Opening tables 0 +user3 stage/sql/starting 0 +user4 stage/sql/checking permissions 0 +user4 stage/sql/closing tables 0 +user4 stage/sql/init 0 +user4 stage/sql/Opening tables 0 +user4 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 1 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 1 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 1 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 1 +user4 localhost statement/sp/freturn 1 +user4 localhost statement/sql/insert 1 +user4 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 1 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 1 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 1 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 1 +user4 statement/sp/freturn 1 +user4 statement/sql/insert 1 +user4 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_stages_summary_by_host_by_event_name; +"================== STAGES_BY_HOST truncated ==================" +"================== Step 22 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 0 +user1 localhost stage/sql/closing tables 0 +user1 localhost stage/sql/init 0 +user1 localhost stage/sql/Opening tables 0 +user1 localhost stage/sql/starting 0 +user2 localhost stage/sql/checking permissions 0 +user2 localhost stage/sql/closing tables 0 +user2 localhost stage/sql/init 0 +user2 localhost stage/sql/Opening tables 0 +user2 localhost stage/sql/starting 0 +user3 localhost stage/sql/checking permissions 0 +user3 localhost stage/sql/closing tables 0 +user3 localhost stage/sql/init 0 +user3 localhost stage/sql/Opening tables 0 +user3 localhost stage/sql/starting 0 +user4 localhost stage/sql/checking permissions 0 +user4 localhost stage/sql/closing tables 0 +user4 localhost stage/sql/init 0 +user4 localhost stage/sql/Opening tables 0 +user4 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 0 +user1 stage/sql/closing tables 0 +user1 stage/sql/init 0 +user1 stage/sql/Opening tables 0 +user1 stage/sql/starting 0 +user2 stage/sql/checking permissions 0 +user2 stage/sql/closing tables 0 +user2 stage/sql/init 0 +user2 stage/sql/Opening tables 0 +user2 stage/sql/starting 0 +user3 stage/sql/checking permissions 0 +user3 stage/sql/closing tables 0 +user3 stage/sql/init 0 +user3 stage/sql/Opening tables 0 +user3 stage/sql/starting 0 +user4 stage/sql/checking permissions 0 +user4 stage/sql/closing tables 0 +user4 stage/sql/init 0 +user4 stage/sql/Opening tables 0 +user4 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 1 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 1 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 1 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 1 +user4 localhost statement/sp/freturn 1 +user4 localhost statement/sql/insert 1 +user4 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 1 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 1 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 1 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 1 +user4 statement/sp/freturn 1 +user4 statement/sql/insert 1 +user4 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_stages_summary_global_by_event_name; +"================== STAGES_GLOBAL truncated ==================" +"================== Step 23 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 0 +user1 localhost stage/sql/closing tables 0 +user1 localhost stage/sql/init 0 +user1 localhost stage/sql/Opening tables 0 +user1 localhost stage/sql/starting 0 +user2 localhost stage/sql/checking permissions 0 +user2 localhost stage/sql/closing tables 0 +user2 localhost stage/sql/init 0 +user2 localhost stage/sql/Opening tables 0 +user2 localhost stage/sql/starting 0 +user3 localhost stage/sql/checking permissions 0 +user3 localhost stage/sql/closing tables 0 +user3 localhost stage/sql/init 0 +user3 localhost stage/sql/Opening tables 0 +user3 localhost stage/sql/starting 0 +user4 localhost stage/sql/checking permissions 0 +user4 localhost stage/sql/closing tables 0 +user4 localhost stage/sql/init 0 +user4 localhost stage/sql/Opening tables 0 +user4 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 0 +user1 stage/sql/closing tables 0 +user1 stage/sql/init 0 +user1 stage/sql/Opening tables 0 +user1 stage/sql/starting 0 +user2 stage/sql/checking permissions 0 +user2 stage/sql/closing tables 0 +user2 stage/sql/init 0 +user2 stage/sql/Opening tables 0 +user2 stage/sql/starting 0 +user3 stage/sql/checking permissions 0 +user3 stage/sql/closing tables 0 +user3 stage/sql/init 0 +user3 stage/sql/Opening tables 0 +user3 stage/sql/starting 0 +user4 stage/sql/checking permissions 0 +user4 stage/sql/closing tables 0 +user4 stage/sql/init 0 +user4 stage/sql/Opening tables 0 +user4 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 1 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 1 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 1 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 1 +user4 localhost statement/sp/freturn 1 +user4 localhost statement/sql/insert 1 +user4 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 1 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 1 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 1 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 1 +user4 statement/sp/freturn 1 +user4 statement/sql/insert 1 +user4 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_statements_summary_by_thread_by_event_name; +"================== STATEMENTS_BY_THREAD truncated ==================" +"================== Step 24 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 0 +user1 localhost stage/sql/closing tables 0 +user1 localhost stage/sql/init 0 +user1 localhost stage/sql/Opening tables 0 +user1 localhost stage/sql/starting 0 +user2 localhost stage/sql/checking permissions 0 +user2 localhost stage/sql/closing tables 0 +user2 localhost stage/sql/init 0 +user2 localhost stage/sql/Opening tables 0 +user2 localhost stage/sql/starting 0 +user3 localhost stage/sql/checking permissions 0 +user3 localhost stage/sql/closing tables 0 +user3 localhost stage/sql/init 0 +user3 localhost stage/sql/Opening tables 0 +user3 localhost stage/sql/starting 0 +user4 localhost stage/sql/checking permissions 0 +user4 localhost stage/sql/closing tables 0 +user4 localhost stage/sql/init 0 +user4 localhost stage/sql/Opening tables 0 +user4 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 0 +user1 stage/sql/closing tables 0 +user1 stage/sql/init 0 +user1 stage/sql/Opening tables 0 +user1 stage/sql/starting 0 +user2 stage/sql/checking permissions 0 +user2 stage/sql/closing tables 0 +user2 stage/sql/init 0 +user2 stage/sql/Opening tables 0 +user2 stage/sql/starting 0 +user3 stage/sql/checking permissions 0 +user3 stage/sql/closing tables 0 +user3 stage/sql/init 0 +user3 stage/sql/Opening tables 0 +user3 stage/sql/starting 0 +user4 stage/sql/checking permissions 0 +user4 stage/sql/closing tables 0 +user4 stage/sql/init 0 +user4 stage/sql/Opening tables 0 +user4 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 1 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 1 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 1 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 1 +user4 localhost statement/sp/freturn 1 +user4 localhost statement/sql/insert 1 +user4 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 1 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 1 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 1 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 1 +user4 statement/sp/freturn 1 +user4 statement/sql/insert 1 +user4 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_statements_summary_by_account_by_event_name; +"================== STATEMENTS_BY_ACCOUNT truncated ==================" +"================== Step 25 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 0 +user1 localhost stage/sql/closing tables 0 +user1 localhost stage/sql/init 0 +user1 localhost stage/sql/Opening tables 0 +user1 localhost stage/sql/starting 0 +user2 localhost stage/sql/checking permissions 0 +user2 localhost stage/sql/closing tables 0 +user2 localhost stage/sql/init 0 +user2 localhost stage/sql/Opening tables 0 +user2 localhost stage/sql/starting 0 +user3 localhost stage/sql/checking permissions 0 +user3 localhost stage/sql/closing tables 0 +user3 localhost stage/sql/init 0 +user3 localhost stage/sql/Opening tables 0 +user3 localhost stage/sql/starting 0 +user4 localhost stage/sql/checking permissions 0 +user4 localhost stage/sql/closing tables 0 +user4 localhost stage/sql/init 0 +user4 localhost stage/sql/Opening tables 0 +user4 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 0 +user1 stage/sql/closing tables 0 +user1 stage/sql/init 0 +user1 stage/sql/Opening tables 0 +user1 stage/sql/starting 0 +user2 stage/sql/checking permissions 0 +user2 stage/sql/closing tables 0 +user2 stage/sql/init 0 +user2 stage/sql/Opening tables 0 +user2 stage/sql/starting 0 +user3 stage/sql/checking permissions 0 +user3 stage/sql/closing tables 0 +user3 stage/sql/init 0 +user3 stage/sql/Opening tables 0 +user3 stage/sql/starting 0 +user4 stage/sql/checking permissions 0 +user4 stage/sql/closing tables 0 +user4 stage/sql/init 0 +user4 stage/sql/Opening tables 0 +user4 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 0 +user1 localhost statement/sp/freturn 0 +user1 localhost statement/sql/insert 0 +user1 localhost statement/sql/select 0 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 0 +user2 localhost statement/sp/freturn 0 +user2 localhost statement/sql/insert 0 +user2 localhost statement/sql/select 0 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 0 +user3 localhost statement/sp/freturn 0 +user3 localhost statement/sql/insert 0 +user3 localhost statement/sql/select 0 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 0 +user4 localhost statement/sp/freturn 0 +user4 localhost statement/sql/insert 0 +user4 localhost statement/sql/select 0 +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 1 +user1 statement/sp/freturn 1 +user1 statement/sql/insert 1 +user1 statement/sql/select 3 +user2 statement/com/Error 0 +user2 statement/com/Quit 1 +user2 statement/sp/freturn 1 +user2 statement/sql/insert 1 +user2 statement/sql/select 3 +user3 statement/com/Error 0 +user3 statement/com/Quit 1 +user3 statement/sp/freturn 1 +user3 statement/sql/insert 1 +user3 statement/sql/select 3 +user4 statement/com/Error 0 +user4 statement/com/Quit 1 +user4 statement/sp/freturn 1 +user4 statement/sql/insert 1 +user4 statement/sql/select 3 +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_statements_summary_by_user_by_event_name; +"================== STATEMENTS_BY_USER truncated ==================" +"================== Step 26 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 0 +user1 localhost stage/sql/closing tables 0 +user1 localhost stage/sql/init 0 +user1 localhost stage/sql/Opening tables 0 +user1 localhost stage/sql/starting 0 +user2 localhost stage/sql/checking permissions 0 +user2 localhost stage/sql/closing tables 0 +user2 localhost stage/sql/init 0 +user2 localhost stage/sql/Opening tables 0 +user2 localhost stage/sql/starting 0 +user3 localhost stage/sql/checking permissions 0 +user3 localhost stage/sql/closing tables 0 +user3 localhost stage/sql/init 0 +user3 localhost stage/sql/Opening tables 0 +user3 localhost stage/sql/starting 0 +user4 localhost stage/sql/checking permissions 0 +user4 localhost stage/sql/closing tables 0 +user4 localhost stage/sql/init 0 +user4 localhost stage/sql/Opening tables 0 +user4 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 0 +user1 stage/sql/closing tables 0 +user1 stage/sql/init 0 +user1 stage/sql/Opening tables 0 +user1 stage/sql/starting 0 +user2 stage/sql/checking permissions 0 +user2 stage/sql/closing tables 0 +user2 stage/sql/init 0 +user2 stage/sql/Opening tables 0 +user2 stage/sql/starting 0 +user3 stage/sql/checking permissions 0 +user3 stage/sql/closing tables 0 +user3 stage/sql/init 0 +user3 stage/sql/Opening tables 0 +user3 stage/sql/starting 0 +user4 stage/sql/checking permissions 0 +user4 stage/sql/closing tables 0 +user4 stage/sql/init 0 +user4 stage/sql/Opening tables 0 +user4 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 0 +user1 localhost statement/sp/freturn 0 +user1 localhost statement/sql/insert 0 +user1 localhost statement/sql/select 0 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 0 +user2 localhost statement/sp/freturn 0 +user2 localhost statement/sql/insert 0 +user2 localhost statement/sql/select 0 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 0 +user3 localhost statement/sp/freturn 0 +user3 localhost statement/sql/insert 0 +user3 localhost statement/sql/select 0 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 0 +user4 localhost statement/sp/freturn 0 +user4 localhost statement/sql/insert 0 +user4 localhost statement/sql/select 0 +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 0 +user1 statement/sp/freturn 0 +user1 statement/sql/insert 0 +user1 statement/sql/select 0 +user2 statement/com/Error 0 +user2 statement/com/Quit 0 +user2 statement/sp/freturn 0 +user2 statement/sql/insert 0 +user2 statement/sql/select 0 +user3 statement/com/Error 0 +user3 statement/com/Quit 0 +user3 statement/sp/freturn 0 +user3 statement/sql/insert 0 +user3 statement/sql/select 0 +user4 statement/com/Error 0 +user4 statement/com/Quit 0 +user4 statement/sp/freturn 0 +user4 statement/sql/insert 0 +user4 statement/sql/select 0 +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_statements_summary_by_host_by_event_name; +"================== STATEMENTS_BY_HOST truncated ==================" +"================== Step 27 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 0 +user1 localhost stage/sql/closing tables 0 +user1 localhost stage/sql/init 0 +user1 localhost stage/sql/Opening tables 0 +user1 localhost stage/sql/starting 0 +user2 localhost stage/sql/checking permissions 0 +user2 localhost stage/sql/closing tables 0 +user2 localhost stage/sql/init 0 +user2 localhost stage/sql/Opening tables 0 +user2 localhost stage/sql/starting 0 +user3 localhost stage/sql/checking permissions 0 +user3 localhost stage/sql/closing tables 0 +user3 localhost stage/sql/init 0 +user3 localhost stage/sql/Opening tables 0 +user3 localhost stage/sql/starting 0 +user4 localhost stage/sql/checking permissions 0 +user4 localhost stage/sql/closing tables 0 +user4 localhost stage/sql/init 0 +user4 localhost stage/sql/Opening tables 0 +user4 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 0 +user1 stage/sql/closing tables 0 +user1 stage/sql/init 0 +user1 stage/sql/Opening tables 0 +user1 stage/sql/starting 0 +user2 stage/sql/checking permissions 0 +user2 stage/sql/closing tables 0 +user2 stage/sql/init 0 +user2 stage/sql/Opening tables 0 +user2 stage/sql/starting 0 +user3 stage/sql/checking permissions 0 +user3 stage/sql/closing tables 0 +user3 stage/sql/init 0 +user3 stage/sql/Opening tables 0 +user3 stage/sql/starting 0 +user4 stage/sql/checking permissions 0 +user4 stage/sql/closing tables 0 +user4 stage/sql/init 0 +user4 stage/sql/Opening tables 0 +user4 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 0 +user1 localhost statement/sp/freturn 0 +user1 localhost statement/sql/insert 0 +user1 localhost statement/sql/select 0 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 0 +user2 localhost statement/sp/freturn 0 +user2 localhost statement/sql/insert 0 +user2 localhost statement/sql/select 0 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 0 +user3 localhost statement/sp/freturn 0 +user3 localhost statement/sql/insert 0 +user3 localhost statement/sql/select 0 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 0 +user4 localhost statement/sp/freturn 0 +user4 localhost statement/sql/insert 0 +user4 localhost statement/sql/select 0 +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 0 +user1 statement/sp/freturn 0 +user1 statement/sql/insert 0 +user1 statement/sql/select 0 +user2 statement/com/Error 0 +user2 statement/com/Quit 0 +user2 statement/sp/freturn 0 +user2 statement/sql/insert 0 +user2 statement/sql/select 0 +user3 statement/com/Error 0 +user3 statement/com/Quit 0 +user3 statement/sp/freturn 0 +user3 statement/sql/insert 0 +user3 statement/sql/select 0 +user4 statement/com/Error 0 +user4 statement/com/Quit 0 +user4 statement/sp/freturn 0 +user4 statement/sql/insert 0 +user4 statement/sql/select 0 +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_statements_summary_global_by_event_name; +"================== STATEMENTS_GLOBAL truncated ==================" +"================== Step 28 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 0 +user1 localhost stage/sql/closing tables 0 +user1 localhost stage/sql/init 0 +user1 localhost stage/sql/Opening tables 0 +user1 localhost stage/sql/starting 0 +user2 localhost stage/sql/checking permissions 0 +user2 localhost stage/sql/closing tables 0 +user2 localhost stage/sql/init 0 +user2 localhost stage/sql/Opening tables 0 +user2 localhost stage/sql/starting 0 +user3 localhost stage/sql/checking permissions 0 +user3 localhost stage/sql/closing tables 0 +user3 localhost stage/sql/init 0 +user3 localhost stage/sql/Opening tables 0 +user3 localhost stage/sql/starting 0 +user4 localhost stage/sql/checking permissions 0 +user4 localhost stage/sql/closing tables 0 +user4 localhost stage/sql/init 0 +user4 localhost stage/sql/Opening tables 0 +user4 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 0 +user1 stage/sql/closing tables 0 +user1 stage/sql/init 0 +user1 stage/sql/Opening tables 0 +user1 stage/sql/starting 0 +user2 stage/sql/checking permissions 0 +user2 stage/sql/closing tables 0 +user2 stage/sql/init 0 +user2 stage/sql/Opening tables 0 +user2 stage/sql/starting 0 +user3 stage/sql/checking permissions 0 +user3 stage/sql/closing tables 0 +user3 stage/sql/init 0 +user3 stage/sql/Opening tables 0 +user3 stage/sql/starting 0 +user4 stage/sql/checking permissions 0 +user4 stage/sql/closing tables 0 +user4 stage/sql/init 0 +user4 stage/sql/Opening tables 0 +user4 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 0 +user1 localhost statement/sp/freturn 0 +user1 localhost statement/sql/insert 0 +user1 localhost statement/sql/select 0 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 0 +user2 localhost statement/sp/freturn 0 +user2 localhost statement/sql/insert 0 +user2 localhost statement/sql/select 0 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 0 +user3 localhost statement/sp/freturn 0 +user3 localhost statement/sql/insert 0 +user3 localhost statement/sql/select 0 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 0 +user4 localhost statement/sp/freturn 0 +user4 localhost statement/sql/insert 0 +user4 localhost statement/sql/select 0 +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 0 +user1 statement/sp/freturn 0 +user1 statement/sql/insert 0 +user1 statement/sql/select 0 +user2 statement/com/Error 0 +user2 statement/com/Quit 0 +user2 statement/sp/freturn 0 +user2 statement/sql/insert 0 +user2 statement/sql/select 0 +user3 statement/com/Error 0 +user3 statement/com/Quit 0 +user3 statement/sp/freturn 0 +user3 statement/sql/insert 0 +user3 statement/sql/select 0 +user4 statement/com/Error 0 +user4 statement/com/Quit 0 +user4 statement/sp/freturn 0 +user4 statement/sql/insert 0 +user4 statement/sql/select 0 +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_transactions_summary_by_thread_by_event_name; +"================== TRANSACTIONS_BY_THREAD truncated ==================" +"================== Step 29 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 0 +user1 localhost stage/sql/closing tables 0 +user1 localhost stage/sql/init 0 +user1 localhost stage/sql/Opening tables 0 +user1 localhost stage/sql/starting 0 +user2 localhost stage/sql/checking permissions 0 +user2 localhost stage/sql/closing tables 0 +user2 localhost stage/sql/init 0 +user2 localhost stage/sql/Opening tables 0 +user2 localhost stage/sql/starting 0 +user3 localhost stage/sql/checking permissions 0 +user3 localhost stage/sql/closing tables 0 +user3 localhost stage/sql/init 0 +user3 localhost stage/sql/Opening tables 0 +user3 localhost stage/sql/starting 0 +user4 localhost stage/sql/checking permissions 0 +user4 localhost stage/sql/closing tables 0 +user4 localhost stage/sql/init 0 +user4 localhost stage/sql/Opening tables 0 +user4 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 0 +user1 stage/sql/closing tables 0 +user1 stage/sql/init 0 +user1 stage/sql/Opening tables 0 +user1 stage/sql/starting 0 +user2 stage/sql/checking permissions 0 +user2 stage/sql/closing tables 0 +user2 stage/sql/init 0 +user2 stage/sql/Opening tables 0 +user2 stage/sql/starting 0 +user3 stage/sql/checking permissions 0 +user3 stage/sql/closing tables 0 +user3 stage/sql/init 0 +user3 stage/sql/Opening tables 0 +user3 stage/sql/starting 0 +user4 stage/sql/checking permissions 0 +user4 stage/sql/closing tables 0 +user4 stage/sql/init 0 +user4 stage/sql/Opening tables 0 +user4 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 0 +user1 localhost statement/sp/freturn 0 +user1 localhost statement/sql/insert 0 +user1 localhost statement/sql/select 0 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 0 +user2 localhost statement/sp/freturn 0 +user2 localhost statement/sql/insert 0 +user2 localhost statement/sql/select 0 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 0 +user3 localhost statement/sp/freturn 0 +user3 localhost statement/sql/insert 0 +user3 localhost statement/sql/select 0 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 0 +user4 localhost statement/sp/freturn 0 +user4 localhost statement/sql/insert 0 +user4 localhost statement/sql/select 0 +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 0 +user1 statement/sp/freturn 0 +user1 statement/sql/insert 0 +user1 statement/sql/select 0 +user2 statement/com/Error 0 +user2 statement/com/Quit 0 +user2 statement/sp/freturn 0 +user2 statement/sql/insert 0 +user2 statement/sql/select 0 +user3 statement/com/Error 0 +user3 statement/com/Quit 0 +user3 statement/sp/freturn 0 +user3 statement/sql/insert 0 +user3 statement/sql/select 0 +user4 statement/com/Error 0 +user4 statement/com/Quit 0 +user4 statement/sp/freturn 0 +user4 statement/sql/insert 0 +user4 statement/sql/select 0 +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_transactions_summary_by_account_by_event_name; +"================== TRANSACTIONS_BY_ACCOUNT truncated ==================" +"================== Step 30 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 0 +user1 localhost stage/sql/closing tables 0 +user1 localhost stage/sql/init 0 +user1 localhost stage/sql/Opening tables 0 +user1 localhost stage/sql/starting 0 +user2 localhost stage/sql/checking permissions 0 +user2 localhost stage/sql/closing tables 0 +user2 localhost stage/sql/init 0 +user2 localhost stage/sql/Opening tables 0 +user2 localhost stage/sql/starting 0 +user3 localhost stage/sql/checking permissions 0 +user3 localhost stage/sql/closing tables 0 +user3 localhost stage/sql/init 0 +user3 localhost stage/sql/Opening tables 0 +user3 localhost stage/sql/starting 0 +user4 localhost stage/sql/checking permissions 0 +user4 localhost stage/sql/closing tables 0 +user4 localhost stage/sql/init 0 +user4 localhost stage/sql/Opening tables 0 +user4 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 0 +user1 stage/sql/closing tables 0 +user1 stage/sql/init 0 +user1 stage/sql/Opening tables 0 +user1 stage/sql/starting 0 +user2 stage/sql/checking permissions 0 +user2 stage/sql/closing tables 0 +user2 stage/sql/init 0 +user2 stage/sql/Opening tables 0 +user2 stage/sql/starting 0 +user3 stage/sql/checking permissions 0 +user3 stage/sql/closing tables 0 +user3 stage/sql/init 0 +user3 stage/sql/Opening tables 0 +user3 stage/sql/starting 0 +user4 stage/sql/checking permissions 0 +user4 stage/sql/closing tables 0 +user4 stage/sql/init 0 +user4 stage/sql/Opening tables 0 +user4 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 0 +user1 localhost statement/sp/freturn 0 +user1 localhost statement/sql/insert 0 +user1 localhost statement/sql/select 0 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 0 +user2 localhost statement/sp/freturn 0 +user2 localhost statement/sql/insert 0 +user2 localhost statement/sql/select 0 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 0 +user3 localhost statement/sp/freturn 0 +user3 localhost statement/sql/insert 0 +user3 localhost statement/sql/select 0 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 0 +user4 localhost statement/sp/freturn 0 +user4 localhost statement/sql/insert 0 +user4 localhost statement/sql/select 0 +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 0 +user1 statement/sp/freturn 0 +user1 statement/sql/insert 0 +user1 statement/sql/select 0 +user2 statement/com/Error 0 +user2 statement/com/Quit 0 +user2 statement/sp/freturn 0 +user2 statement/sql/insert 0 +user2 statement/sql/select 0 +user3 statement/com/Error 0 +user3 statement/com/Quit 0 +user3 statement/sp/freturn 0 +user3 statement/sql/insert 0 +user3 statement/sql/select 0 +user4 statement/com/Error 0 +user4 statement/com/Quit 0 +user4 statement/sp/freturn 0 +user4 statement/sql/insert 0 +user4 statement/sql/select 0 +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 0 +user2 localhost transaction 0 +user3 localhost transaction 0 +user4 localhost transaction 0 +execute dump_transactions_user; +user event_name count_star +user1 transaction 2 +user2 transaction 2 +user3 transaction 2 +user4 transaction 2 +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_transactions_summary_by_user_by_event_name; +"================== TRANSACTIONS_BY_USER truncated ==================" +"================== Step 31 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 0 +user1 localhost stage/sql/closing tables 0 +user1 localhost stage/sql/init 0 +user1 localhost stage/sql/Opening tables 0 +user1 localhost stage/sql/starting 0 +user2 localhost stage/sql/checking permissions 0 +user2 localhost stage/sql/closing tables 0 +user2 localhost stage/sql/init 0 +user2 localhost stage/sql/Opening tables 0 +user2 localhost stage/sql/starting 0 +user3 localhost stage/sql/checking permissions 0 +user3 localhost stage/sql/closing tables 0 +user3 localhost stage/sql/init 0 +user3 localhost stage/sql/Opening tables 0 +user3 localhost stage/sql/starting 0 +user4 localhost stage/sql/checking permissions 0 +user4 localhost stage/sql/closing tables 0 +user4 localhost stage/sql/init 0 +user4 localhost stage/sql/Opening tables 0 +user4 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 0 +user1 stage/sql/closing tables 0 +user1 stage/sql/init 0 +user1 stage/sql/Opening tables 0 +user1 stage/sql/starting 0 +user2 stage/sql/checking permissions 0 +user2 stage/sql/closing tables 0 +user2 stage/sql/init 0 +user2 stage/sql/Opening tables 0 +user2 stage/sql/starting 0 +user3 stage/sql/checking permissions 0 +user3 stage/sql/closing tables 0 +user3 stage/sql/init 0 +user3 stage/sql/Opening tables 0 +user3 stage/sql/starting 0 +user4 stage/sql/checking permissions 0 +user4 stage/sql/closing tables 0 +user4 stage/sql/init 0 +user4 stage/sql/Opening tables 0 +user4 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 0 +user1 localhost statement/sp/freturn 0 +user1 localhost statement/sql/insert 0 +user1 localhost statement/sql/select 0 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 0 +user2 localhost statement/sp/freturn 0 +user2 localhost statement/sql/insert 0 +user2 localhost statement/sql/select 0 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 0 +user3 localhost statement/sp/freturn 0 +user3 localhost statement/sql/insert 0 +user3 localhost statement/sql/select 0 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 0 +user4 localhost statement/sp/freturn 0 +user4 localhost statement/sql/insert 0 +user4 localhost statement/sql/select 0 +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 0 +user1 statement/sp/freturn 0 +user1 statement/sql/insert 0 +user1 statement/sql/select 0 +user2 statement/com/Error 0 +user2 statement/com/Quit 0 +user2 statement/sp/freturn 0 +user2 statement/sql/insert 0 +user2 statement/sql/select 0 +user3 statement/com/Error 0 +user3 statement/com/Quit 0 +user3 statement/sp/freturn 0 +user3 statement/sql/insert 0 +user3 statement/sql/select 0 +user4 statement/com/Error 0 +user4 statement/com/Quit 0 +user4 statement/sp/freturn 0 +user4 statement/sql/insert 0 +user4 statement/sql/select 0 +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 0 +user2 localhost transaction 0 +user3 localhost transaction 0 +user4 localhost transaction 0 +execute dump_transactions_user; +user event_name count_star +user1 transaction 0 +user2 transaction 0 +user3 transaction 0 +user4 transaction 0 +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_transactions_summary_by_host_by_event_name; +"================== TRANSACTIONS_BY_HOST truncated ==================" +"================== Step 32 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 0 +user1 localhost stage/sql/closing tables 0 +user1 localhost stage/sql/init 0 +user1 localhost stage/sql/Opening tables 0 +user1 localhost stage/sql/starting 0 +user2 localhost stage/sql/checking permissions 0 +user2 localhost stage/sql/closing tables 0 +user2 localhost stage/sql/init 0 +user2 localhost stage/sql/Opening tables 0 +user2 localhost stage/sql/starting 0 +user3 localhost stage/sql/checking permissions 0 +user3 localhost stage/sql/closing tables 0 +user3 localhost stage/sql/init 0 +user3 localhost stage/sql/Opening tables 0 +user3 localhost stage/sql/starting 0 +user4 localhost stage/sql/checking permissions 0 +user4 localhost stage/sql/closing tables 0 +user4 localhost stage/sql/init 0 +user4 localhost stage/sql/Opening tables 0 +user4 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 0 +user1 stage/sql/closing tables 0 +user1 stage/sql/init 0 +user1 stage/sql/Opening tables 0 +user1 stage/sql/starting 0 +user2 stage/sql/checking permissions 0 +user2 stage/sql/closing tables 0 +user2 stage/sql/init 0 +user2 stage/sql/Opening tables 0 +user2 stage/sql/starting 0 +user3 stage/sql/checking permissions 0 +user3 stage/sql/closing tables 0 +user3 stage/sql/init 0 +user3 stage/sql/Opening tables 0 +user3 stage/sql/starting 0 +user4 stage/sql/checking permissions 0 +user4 stage/sql/closing tables 0 +user4 stage/sql/init 0 +user4 stage/sql/Opening tables 0 +user4 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 0 +user1 localhost statement/sp/freturn 0 +user1 localhost statement/sql/insert 0 +user1 localhost statement/sql/select 0 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 0 +user2 localhost statement/sp/freturn 0 +user2 localhost statement/sql/insert 0 +user2 localhost statement/sql/select 0 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 0 +user3 localhost statement/sp/freturn 0 +user3 localhost statement/sql/insert 0 +user3 localhost statement/sql/select 0 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 0 +user4 localhost statement/sp/freturn 0 +user4 localhost statement/sql/insert 0 +user4 localhost statement/sql/select 0 +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 0 +user1 statement/sp/freturn 0 +user1 statement/sql/insert 0 +user1 statement/sql/select 0 +user2 statement/com/Error 0 +user2 statement/com/Quit 0 +user2 statement/sp/freturn 0 +user2 statement/sql/insert 0 +user2 statement/sql/select 0 +user3 statement/com/Error 0 +user3 statement/com/Quit 0 +user3 statement/sp/freturn 0 +user3 statement/sql/insert 0 +user3 statement/sql/select 0 +user4 statement/com/Error 0 +user4 statement/com/Quit 0 +user4 statement/sp/freturn 0 +user4 statement/sql/insert 0 +user4 statement/sql/select 0 +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 0 +user2 localhost transaction 0 +user3 localhost transaction 0 +user4 localhost transaction 0 +execute dump_transactions_user; +user event_name count_star +user1 transaction 0 +user2 transaction 0 +user3 transaction 0 +user4 transaction 0 +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_transactions_summary_global_by_event_name; +"================== TRANSACTIONS_GLOBAL truncated ==================" +"================== Step 33 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 0 +user1 localhost stage/sql/closing tables 0 +user1 localhost stage/sql/init 0 +user1 localhost stage/sql/Opening tables 0 +user1 localhost stage/sql/starting 0 +user2 localhost stage/sql/checking permissions 0 +user2 localhost stage/sql/closing tables 0 +user2 localhost stage/sql/init 0 +user2 localhost stage/sql/Opening tables 0 +user2 localhost stage/sql/starting 0 +user3 localhost stage/sql/checking permissions 0 +user3 localhost stage/sql/closing tables 0 +user3 localhost stage/sql/init 0 +user3 localhost stage/sql/Opening tables 0 +user3 localhost stage/sql/starting 0 +user4 localhost stage/sql/checking permissions 0 +user4 localhost stage/sql/closing tables 0 +user4 localhost stage/sql/init 0 +user4 localhost stage/sql/Opening tables 0 +user4 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 0 +user1 stage/sql/closing tables 0 +user1 stage/sql/init 0 +user1 stage/sql/Opening tables 0 +user1 stage/sql/starting 0 +user2 stage/sql/checking permissions 0 +user2 stage/sql/closing tables 0 +user2 stage/sql/init 0 +user2 stage/sql/Opening tables 0 +user2 stage/sql/starting 0 +user3 stage/sql/checking permissions 0 +user3 stage/sql/closing tables 0 +user3 stage/sql/init 0 +user3 stage/sql/Opening tables 0 +user3 stage/sql/starting 0 +user4 stage/sql/checking permissions 0 +user4 stage/sql/closing tables 0 +user4 stage/sql/init 0 +user4 stage/sql/Opening tables 0 +user4 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 0 +user1 localhost statement/sp/freturn 0 +user1 localhost statement/sql/insert 0 +user1 localhost statement/sql/select 0 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 0 +user2 localhost statement/sp/freturn 0 +user2 localhost statement/sql/insert 0 +user2 localhost statement/sql/select 0 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 0 +user3 localhost statement/sp/freturn 0 +user3 localhost statement/sql/insert 0 +user3 localhost statement/sql/select 0 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 0 +user4 localhost statement/sp/freturn 0 +user4 localhost statement/sql/insert 0 +user4 localhost statement/sql/select 0 +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 0 +user1 statement/sp/freturn 0 +user1 statement/sql/insert 0 +user1 statement/sql/select 0 +user2 statement/com/Error 0 +user2 statement/com/Quit 0 +user2 statement/sp/freturn 0 +user2 statement/sql/insert 0 +user2 statement/sql/select 0 +user3 statement/com/Error 0 +user3 statement/com/Quit 0 +user3 statement/sp/freturn 0 +user3 statement/sql/insert 0 +user3 statement/sql/select 0 +user4 statement/com/Error 0 +user4 statement/com/Quit 0 +user4 statement/sp/freturn 0 +user4 statement/sql/insert 0 +user4 statement/sql/select 0 +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 0 +user2 localhost transaction 0 +user3 localhost transaction 0 +user4 localhost transaction 0 +execute dump_transactions_user; +user event_name count_star +user1 transaction 0 +user2 transaction 0 +user3 transaction 0 +user4 transaction 0 +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 0 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.accounts; +"================== ACCOUNTS truncated ==================" +"================== Step 34 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +user1 wait/io/file/sql/query_log 0 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +user2 wait/io/file/sql/query_log 0 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +user3 wait/io/file/sql/query_log 0 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +user4 wait/io/file/sql/query_log 0 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +user1 stage/sql/checking permissions 0 +user1 stage/sql/closing tables 0 +user1 stage/sql/init 0 +user1 stage/sql/Opening tables 0 +user1 stage/sql/starting 0 +user2 stage/sql/checking permissions 0 +user2 stage/sql/closing tables 0 +user2 stage/sql/init 0 +user2 stage/sql/Opening tables 0 +user2 stage/sql/starting 0 +user3 stage/sql/checking permissions 0 +user3 stage/sql/closing tables 0 +user3 stage/sql/init 0 +user3 stage/sql/Opening tables 0 +user3 stage/sql/starting 0 +user4 stage/sql/checking permissions 0 +user4 stage/sql/closing tables 0 +user4 stage/sql/init 0 +user4 stage/sql/Opening tables 0 +user4 stage/sql/starting 0 +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +user1 statement/com/Error 0 +user1 statement/com/Quit 0 +user1 statement/sp/freturn 0 +user1 statement/sql/insert 0 +user1 statement/sql/select 0 +user2 statement/com/Error 0 +user2 statement/com/Quit 0 +user2 statement/sp/freturn 0 +user2 statement/sql/insert 0 +user2 statement/sql/select 0 +user3 statement/com/Error 0 +user3 statement/com/Quit 0 +user3 statement/sp/freturn 0 +user3 statement/sql/insert 0 +user3 statement/sql/select 0 +user4 statement/com/Error 0 +user4 statement/com/Quit 0 +user4 statement/sp/freturn 0 +user4 statement/sql/insert 0 +user4 statement/sql/select 0 +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +user1 transaction 0 +user2 transaction 0 +user3 transaction 0 +user4 transaction 0 +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 0 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.users; +"================== USERS truncated ==================" +"================== Step 35 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 0 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.hosts; +"================== HOSTS truncated ==================" +"================== Step 36 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 0 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS diff --git a/mysql-test/suite/perfschema/r/event_aggregate_no_u.result b/mysql-test/suite/perfschema/r/event_aggregate_no_u.result new file mode 100644 index 00000000..39da9783 --- /dev/null +++ b/mysql-test/suite/perfschema/r/event_aggregate_no_u.result @@ -0,0 +1,5195 @@ +"================== Step 1 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 0 +localhost stage/sql/closing tables 0 +localhost stage/sql/init 0 +localhost stage/sql/Opening tables 0 +localhost stage/sql/starting 0 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 0 +localhost statement/sql/insert 0 +localhost statement/sql/select 0 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 0 +execute dump_transactions_global; +event_name count_star +transaction 0 +execute dump_transactions_history; +event_name count(event_name) +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 1 +connect con1, localhost, user1, ,test; +connection default; +"================== Step 2 ==================" +call dump_thread(); +username event_name count_star +user1 wait/io/file/sql/query_log 1 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 1 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 1 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 1 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 1 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 0 +user1 localhost stage/sql/closing tables 0 +user1 localhost stage/sql/init 0 +user1 localhost stage/sql/Opening tables 0 +user1 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 0 +localhost stage/sql/closing tables 0 +localhost stage/sql/init 0 +localhost stage/sql/Opening tables 0 +localhost stage/sql/starting 0 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 0 +user1 localhost statement/sp/freturn 0 +user1 localhost statement/sql/insert 0 +user1 localhost statement/sql/select 0 +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 0 +localhost statement/sql/insert 0 +localhost statement/sql/select 0 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 0 +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 0 +execute dump_transactions_global; +event_name count_star +transaction 0 +execute dump_transactions_history; +event_name count(event_name) +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 2 2 +connection con1; +select uuid_short() <> 1; +uuid_short() <> 1 +1 +select uuid_short() <> 1; +uuid_short() <> 1 +1 +start transaction; +insert into test.t1 values ("marker"); +commit; +select test.f(10,20); +test.f(10,20) +30 +connection default; +"================== Step 3 ==================" +call dump_thread(); +username event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 7 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 7 +localhost wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 7 +wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 7 +wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 4 +user1 localhost stage/sql/closing tables 11 +user1 localhost stage/sql/init 3 +user1 localhost stage/sql/Opening tables 7 +user1 localhost stage/sql/starting 6 +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 4 +localhost stage/sql/closing tables 11 +localhost stage/sql/init 3 +localhost stage/sql/Opening tables 7 +localhost stage/sql/starting 6 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 4 +stage/sql/closing tables 11 +stage/sql/init 3 +stage/sql/Opening tables 7 +stage/sql/starting 6 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 4 +stage/sql/closing tables 11 +stage/sql/init 3 +stage/sql/Opening tables 7 +stage/sql/starting 6 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 0 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 1 +localhost statement/sql/insert 1 +localhost statement/sql/select 3 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 1 +statement/sql/insert 1 +statement/sql/select 3 +execute dump_statements_history; +event_name count(event_name) +statement/sp/freturn 1 +statement/sql/insert 1 +statement/sql/select 3 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 2 +execute dump_transactions_global; +event_name count_star +transaction 2 +execute dump_transactions_history; +event_name count(event_name) +transaction 2 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 2 2 +connect con2, localhost, user2, ,test; +connection default; +"================== Step 4 ==================" +call dump_thread(); +username event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user2 wait/io/file/sql/query_log 1 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 7 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user2 localhost wait/io/file/sql/query_log 1 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 8 +localhost wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 8 +wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 8 +wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 4 +user1 localhost stage/sql/closing tables 11 +user1 localhost stage/sql/init 3 +user1 localhost stage/sql/Opening tables 7 +user1 localhost stage/sql/starting 6 +user2 localhost stage/sql/checking permissions 0 +user2 localhost stage/sql/closing tables 0 +user2 localhost stage/sql/init 0 +user2 localhost stage/sql/Opening tables 0 +user2 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 4 +localhost stage/sql/closing tables 11 +localhost stage/sql/init 3 +localhost stage/sql/Opening tables 7 +localhost stage/sql/starting 6 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 4 +stage/sql/closing tables 11 +stage/sql/init 3 +stage/sql/Opening tables 7 +stage/sql/starting 6 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 4 +stage/sql/closing tables 11 +stage/sql/init 3 +stage/sql/Opening tables 7 +stage/sql/starting 6 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 0 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 0 +user2 localhost statement/sp/freturn 0 +user2 localhost statement/sql/insert 0 +user2 localhost statement/sql/select 0 +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 1 +localhost statement/sql/insert 1 +localhost statement/sql/select 3 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 1 +statement/sql/insert 1 +statement/sql/select 3 +execute dump_statements_history; +event_name count(event_name) +statement/sp/freturn 1 +statement/sql/insert 1 +statement/sql/select 3 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 0 +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 2 +execute dump_transactions_global; +event_name count_star +transaction 2 +execute dump_transactions_history; +event_name count(event_name) +transaction 2 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +user2 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 3 3 +connection con2; +select uuid_short() <> 1; +uuid_short() <> 1 +1 +select uuid_short() <> 1; +uuid_short() <> 1 +1 +start transaction; +insert into test.t1 values ("marker"); +commit; +select test.f(10,20); +test.f(10,20) +30 +connection default; +"================== Step 5 ==================" +call dump_thread(); +username event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 7 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user2 localhost wait/io/file/sql/query_log 7 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 14 +localhost wait/synch/rwlock/sql/LOCK_grant 2 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 14 +wait/synch/rwlock/sql/LOCK_grant 2 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 14 +wait/synch/rwlock/sql/LOCK_grant 2 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 4 +user1 localhost stage/sql/closing tables 11 +user1 localhost stage/sql/init 3 +user1 localhost stage/sql/Opening tables 7 +user1 localhost stage/sql/starting 6 +user2 localhost stage/sql/checking permissions 4 +user2 localhost stage/sql/closing tables 10 +user2 localhost stage/sql/init 3 +user2 localhost stage/sql/Opening tables 6 +user2 localhost stage/sql/starting 6 +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 8 +localhost stage/sql/closing tables 21 +localhost stage/sql/init 6 +localhost stage/sql/Opening tables 13 +localhost stage/sql/starting 12 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 8 +stage/sql/closing tables 21 +stage/sql/init 6 +stage/sql/Opening tables 13 +stage/sql/starting 12 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 8 +stage/sql/closing tables 21 +stage/sql/init 6 +stage/sql/Opening tables 13 +stage/sql/starting 12 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 0 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 0 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 2 +localhost statement/sql/insert 2 +localhost statement/sql/select 6 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 2 +statement/sql/insert 2 +statement/sql/select 6 +execute dump_statements_history; +event_name count(event_name) +statement/sp/freturn 2 +statement/sql/insert 2 +statement/sql/select 6 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 4 +execute dump_transactions_global; +event_name count_star +transaction 4 +execute dump_transactions_history; +event_name count(event_name) +transaction 4 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +user2 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 3 3 +connect con3, localhost, user3, ,test; +connection default; +"================== Step 6 ==================" +call dump_thread(); +username event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user3 wait/io/file/sql/query_log 1 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 7 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user2 localhost wait/io/file/sql/query_log 7 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user3 localhost wait/io/file/sql/query_log 1 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 15 +localhost wait/synch/rwlock/sql/LOCK_grant 2 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 15 +wait/synch/rwlock/sql/LOCK_grant 2 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 15 +wait/synch/rwlock/sql/LOCK_grant 2 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 4 +user1 localhost stage/sql/closing tables 11 +user1 localhost stage/sql/init 3 +user1 localhost stage/sql/Opening tables 7 +user1 localhost stage/sql/starting 6 +user2 localhost stage/sql/checking permissions 4 +user2 localhost stage/sql/closing tables 10 +user2 localhost stage/sql/init 3 +user2 localhost stage/sql/Opening tables 6 +user2 localhost stage/sql/starting 6 +user3 localhost stage/sql/checking permissions 0 +user3 localhost stage/sql/closing tables 0 +user3 localhost stage/sql/init 0 +user3 localhost stage/sql/Opening tables 0 +user3 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 8 +localhost stage/sql/closing tables 21 +localhost stage/sql/init 6 +localhost stage/sql/Opening tables 13 +localhost stage/sql/starting 12 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 8 +stage/sql/closing tables 21 +stage/sql/init 6 +stage/sql/Opening tables 13 +stage/sql/starting 12 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 8 +stage/sql/closing tables 21 +stage/sql/init 6 +stage/sql/Opening tables 13 +stage/sql/starting 12 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 0 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 0 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 0 +user3 localhost statement/sp/freturn 0 +user3 localhost statement/sql/insert 0 +user3 localhost statement/sql/select 0 +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 2 +localhost statement/sql/insert 2 +localhost statement/sql/select 6 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 2 +statement/sql/insert 2 +statement/sql/select 6 +execute dump_statements_history; +event_name count(event_name) +statement/sp/freturn 2 +statement/sql/insert 2 +statement/sql/select 6 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 0 +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 4 +execute dump_transactions_global; +event_name count_star +transaction 4 +execute dump_transactions_history; +event_name count(event_name) +transaction 4 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +user2 localhost 1 1 +user3 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 4 4 +connection con3; +select uuid_short() <> 1; +uuid_short() <> 1 +1 +select uuid_short() <> 1; +uuid_short() <> 1 +1 +start transaction; +insert into test.t1 values ("marker"); +commit; +select test.f(10,20); +test.f(10,20) +30 +connection default; +"================== Step 7 ==================" +call dump_thread(); +username event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user3 wait/io/file/sql/query_log 7 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 7 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user2 localhost wait/io/file/sql/query_log 7 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user3 localhost wait/io/file/sql/query_log 7 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 21 +localhost wait/synch/rwlock/sql/LOCK_grant 3 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 21 +wait/synch/rwlock/sql/LOCK_grant 3 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 21 +wait/synch/rwlock/sql/LOCK_grant 3 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 4 +user1 localhost stage/sql/closing tables 11 +user1 localhost stage/sql/init 3 +user1 localhost stage/sql/Opening tables 7 +user1 localhost stage/sql/starting 6 +user2 localhost stage/sql/checking permissions 4 +user2 localhost stage/sql/closing tables 10 +user2 localhost stage/sql/init 3 +user2 localhost stage/sql/Opening tables 6 +user2 localhost stage/sql/starting 6 +user3 localhost stage/sql/checking permissions 4 +user3 localhost stage/sql/closing tables 10 +user3 localhost stage/sql/init 3 +user3 localhost stage/sql/Opening tables 6 +user3 localhost stage/sql/starting 6 +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 12 +localhost stage/sql/closing tables 31 +localhost stage/sql/init 9 +localhost stage/sql/Opening tables 19 +localhost stage/sql/starting 18 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 12 +stage/sql/closing tables 31 +stage/sql/init 9 +stage/sql/Opening tables 19 +stage/sql/starting 18 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 12 +stage/sql/closing tables 31 +stage/sql/init 9 +stage/sql/Opening tables 19 +stage/sql/starting 18 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 0 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 0 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 0 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 3 +localhost statement/sql/insert 3 +localhost statement/sql/select 9 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 3 +statement/sql/insert 3 +statement/sql/select 9 +execute dump_statements_history; +event_name count(event_name) +statement/sp/freturn 3 +statement/sql/insert 3 +statement/sql/select 9 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 6 +execute dump_transactions_global; +event_name count_star +transaction 6 +execute dump_transactions_history; +event_name count(event_name) +transaction 6 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +user2 localhost 1 1 +user3 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 4 4 +connect con4, localhost, user4, ,test; +connection default; +"================== Step 8 ==================" +call dump_thread(); +username event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user3 wait/io/file/sql/query_log 7 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user4 wait/io/file/sql/query_log 1 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 7 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user2 localhost wait/io/file/sql/query_log 7 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user3 localhost wait/io/file/sql/query_log 7 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user4 localhost wait/io/file/sql/query_log 1 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 22 +localhost wait/synch/rwlock/sql/LOCK_grant 3 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 22 +wait/synch/rwlock/sql/LOCK_grant 3 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 22 +wait/synch/rwlock/sql/LOCK_grant 3 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 4 +user1 localhost stage/sql/closing tables 11 +user1 localhost stage/sql/init 3 +user1 localhost stage/sql/Opening tables 7 +user1 localhost stage/sql/starting 6 +user2 localhost stage/sql/checking permissions 4 +user2 localhost stage/sql/closing tables 10 +user2 localhost stage/sql/init 3 +user2 localhost stage/sql/Opening tables 6 +user2 localhost stage/sql/starting 6 +user3 localhost stage/sql/checking permissions 4 +user3 localhost stage/sql/closing tables 10 +user3 localhost stage/sql/init 3 +user3 localhost stage/sql/Opening tables 6 +user3 localhost stage/sql/starting 6 +user4 localhost stage/sql/checking permissions 0 +user4 localhost stage/sql/closing tables 0 +user4 localhost stage/sql/init 0 +user4 localhost stage/sql/Opening tables 0 +user4 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 12 +localhost stage/sql/closing tables 31 +localhost stage/sql/init 9 +localhost stage/sql/Opening tables 19 +localhost stage/sql/starting 18 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 12 +stage/sql/closing tables 31 +stage/sql/init 9 +stage/sql/Opening tables 19 +stage/sql/starting 18 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 12 +stage/sql/closing tables 31 +stage/sql/init 9 +stage/sql/Opening tables 19 +stage/sql/starting 18 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 0 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 0 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 0 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 0 +user4 localhost statement/sp/freturn 0 +user4 localhost statement/sql/insert 0 +user4 localhost statement/sql/select 0 +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 3 +localhost statement/sql/insert 3 +localhost statement/sql/select 9 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 3 +statement/sql/insert 3 +statement/sql/select 9 +execute dump_statements_history; +event_name count(event_name) +statement/sp/freturn 3 +statement/sql/insert 3 +statement/sql/select 9 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 0 +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 6 +execute dump_transactions_global; +event_name count_star +transaction 6 +execute dump_transactions_history; +event_name count(event_name) +transaction 6 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +user2 localhost 1 1 +user3 localhost 1 1 +user4 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 5 5 +connection con4; +select uuid_short() <> 1; +uuid_short() <> 1 +1 +select uuid_short() <> 1; +uuid_short() <> 1 +1 +start transaction; +insert into test.t1 values ("marker"); +commit; +select test.f(10,20); +test.f(10,20) +30 +connection default; +"================== Step 9 ==================" +call dump_thread(); +username event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user3 wait/io/file/sql/query_log 7 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user4 wait/io/file/sql/query_log 7 +user4 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 7 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user2 localhost wait/io/file/sql/query_log 7 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user3 localhost wait/io/file/sql/query_log 7 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user4 localhost wait/io/file/sql/query_log 7 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 28 +localhost wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 28 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 28 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 4 +user1 localhost stage/sql/closing tables 11 +user1 localhost stage/sql/init 3 +user1 localhost stage/sql/Opening tables 7 +user1 localhost stage/sql/starting 6 +user2 localhost stage/sql/checking permissions 4 +user2 localhost stage/sql/closing tables 10 +user2 localhost stage/sql/init 3 +user2 localhost stage/sql/Opening tables 6 +user2 localhost stage/sql/starting 6 +user3 localhost stage/sql/checking permissions 4 +user3 localhost stage/sql/closing tables 10 +user3 localhost stage/sql/init 3 +user3 localhost stage/sql/Opening tables 6 +user3 localhost stage/sql/starting 6 +user4 localhost stage/sql/checking permissions 4 +user4 localhost stage/sql/closing tables 10 +user4 localhost stage/sql/init 3 +user4 localhost stage/sql/Opening tables 6 +user4 localhost stage/sql/starting 6 +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 16 +localhost stage/sql/closing tables 41 +localhost stage/sql/init 12 +localhost stage/sql/Opening tables 25 +localhost stage/sql/starting 24 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 24 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 24 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 0 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 0 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 0 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 0 +user4 localhost statement/sp/freturn 1 +user4 localhost statement/sql/insert 1 +user4 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +user2 localhost 1 1 +user3 localhost 1 1 +user4 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 5 5 +disconnect con1; +connection default; +"================== Step 10 ==================" +call dump_thread(); +username status +user1 not found +username event_name count_star +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user3 wait/io/file/sql/query_log 7 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user4 wait/io/file/sql/query_log 7 +user4 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 8 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user2 localhost wait/io/file/sql/query_log 7 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user3 localhost wait/io/file/sql/query_log 7 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user4 localhost wait/io/file/sql/query_log 7 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 29 +localhost wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 29 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 29 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 4 +user1 localhost stage/sql/closing tables 11 +user1 localhost stage/sql/init 3 +user1 localhost stage/sql/Opening tables 7 +user1 localhost stage/sql/starting 7 +user2 localhost stage/sql/checking permissions 4 +user2 localhost stage/sql/closing tables 10 +user2 localhost stage/sql/init 3 +user2 localhost stage/sql/Opening tables 6 +user2 localhost stage/sql/starting 6 +user3 localhost stage/sql/checking permissions 4 +user3 localhost stage/sql/closing tables 10 +user3 localhost stage/sql/init 3 +user3 localhost stage/sql/Opening tables 6 +user3 localhost stage/sql/starting 6 +user4 localhost stage/sql/checking permissions 4 +user4 localhost stage/sql/closing tables 10 +user4 localhost stage/sql/init 3 +user4 localhost stage/sql/Opening tables 6 +user4 localhost stage/sql/starting 6 +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 16 +localhost stage/sql/closing tables 41 +localhost stage/sql/init 12 +localhost stage/sql/Opening tables 25 +localhost stage/sql/starting 25 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 25 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 25 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 1 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 0 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 0 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 0 +user4 localhost statement/sp/freturn 1 +user4 localhost statement/sql/insert 1 +user4 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 1 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 1 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 1 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 1 1 +user3 localhost 1 1 +user4 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 4 5 +disconnect con2; +connection default; +"================== Step 11 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username event_name count_star +user3 wait/io/file/sql/query_log 7 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user4 wait/io/file/sql/query_log 7 +user4 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 8 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user2 localhost wait/io/file/sql/query_log 8 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user3 localhost wait/io/file/sql/query_log 7 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user4 localhost wait/io/file/sql/query_log 7 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 30 +localhost wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 30 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 30 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 4 +user1 localhost stage/sql/closing tables 11 +user1 localhost stage/sql/init 3 +user1 localhost stage/sql/Opening tables 7 +user1 localhost stage/sql/starting 7 +user2 localhost stage/sql/checking permissions 4 +user2 localhost stage/sql/closing tables 10 +user2 localhost stage/sql/init 3 +user2 localhost stage/sql/Opening tables 6 +user2 localhost stage/sql/starting 7 +user3 localhost stage/sql/checking permissions 4 +user3 localhost stage/sql/closing tables 10 +user3 localhost stage/sql/init 3 +user3 localhost stage/sql/Opening tables 6 +user3 localhost stage/sql/starting 6 +user4 localhost stage/sql/checking permissions 4 +user4 localhost stage/sql/closing tables 10 +user4 localhost stage/sql/init 3 +user4 localhost stage/sql/Opening tables 6 +user4 localhost stage/sql/starting 6 +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 16 +localhost stage/sql/closing tables 41 +localhost stage/sql/init 12 +localhost stage/sql/Opening tables 25 +localhost stage/sql/starting 26 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 26 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 26 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 1 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 1 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 0 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 0 +user4 localhost statement/sp/freturn 1 +user4 localhost statement/sql/insert 1 +user4 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 2 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 2 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 2 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 1 1 +user4 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 3 5 +disconnect con3; +connection default; +"================== Step 12 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username event_name count_star +user4 wait/io/file/sql/query_log 7 +user4 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 8 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user2 localhost wait/io/file/sql/query_log 8 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user3 localhost wait/io/file/sql/query_log 8 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user4 localhost wait/io/file/sql/query_log 7 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 31 +localhost wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 31 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 31 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 4 +user1 localhost stage/sql/closing tables 11 +user1 localhost stage/sql/init 3 +user1 localhost stage/sql/Opening tables 7 +user1 localhost stage/sql/starting 7 +user2 localhost stage/sql/checking permissions 4 +user2 localhost stage/sql/closing tables 10 +user2 localhost stage/sql/init 3 +user2 localhost stage/sql/Opening tables 6 +user2 localhost stage/sql/starting 7 +user3 localhost stage/sql/checking permissions 4 +user3 localhost stage/sql/closing tables 10 +user3 localhost stage/sql/init 3 +user3 localhost stage/sql/Opening tables 6 +user3 localhost stage/sql/starting 7 +user4 localhost stage/sql/checking permissions 4 +user4 localhost stage/sql/closing tables 10 +user4 localhost stage/sql/init 3 +user4 localhost stage/sql/Opening tables 6 +user4 localhost stage/sql/starting 6 +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 16 +localhost stage/sql/closing tables 41 +localhost stage/sql/init 12 +localhost stage/sql/Opening tables 25 +localhost stage/sql/starting 27 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 27 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 27 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 1 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 1 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 1 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 0 +user4 localhost statement/sp/freturn 1 +user4 localhost statement/sql/insert 1 +user4 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 3 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 3 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 3 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 2 5 +disconnect con4; +connection default; +"================== Step 13 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 8 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user2 localhost wait/io/file/sql/query_log 8 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user3 localhost wait/io/file/sql/query_log 8 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user4 localhost wait/io/file/sql/query_log 8 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 32 +localhost wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 4 +user1 localhost stage/sql/closing tables 11 +user1 localhost stage/sql/init 3 +user1 localhost stage/sql/Opening tables 7 +user1 localhost stage/sql/starting 7 +user2 localhost stage/sql/checking permissions 4 +user2 localhost stage/sql/closing tables 10 +user2 localhost stage/sql/init 3 +user2 localhost stage/sql/Opening tables 6 +user2 localhost stage/sql/starting 7 +user3 localhost stage/sql/checking permissions 4 +user3 localhost stage/sql/closing tables 10 +user3 localhost stage/sql/init 3 +user3 localhost stage/sql/Opening tables 6 +user3 localhost stage/sql/starting 7 +user4 localhost stage/sql/checking permissions 4 +user4 localhost stage/sql/closing tables 10 +user4 localhost stage/sql/init 3 +user4 localhost stage/sql/Opening tables 6 +user4 localhost stage/sql/starting 7 +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 16 +localhost stage/sql/closing tables 41 +localhost stage/sql/init 12 +localhost stage/sql/Opening tables 25 +localhost stage/sql/starting 28 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 1 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 1 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 1 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 1 +user4 localhost statement/sp/freturn 1 +user4 localhost statement/sql/insert 1 +user4 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 4 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +connection default; +truncate performance_schema.events_waits_summary_by_thread_by_event_name; +"================== WAITS_BY_THREAD truncated ==================" +"================== Step 14 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 8 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user2 localhost wait/io/file/sql/query_log 8 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user3 localhost wait/io/file/sql/query_log 8 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user4 localhost wait/io/file/sql/query_log 8 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 32 +localhost wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 4 +user1 localhost stage/sql/closing tables 11 +user1 localhost stage/sql/init 3 +user1 localhost stage/sql/Opening tables 7 +user1 localhost stage/sql/starting 7 +user2 localhost stage/sql/checking permissions 4 +user2 localhost stage/sql/closing tables 10 +user2 localhost stage/sql/init 3 +user2 localhost stage/sql/Opening tables 6 +user2 localhost stage/sql/starting 7 +user3 localhost stage/sql/checking permissions 4 +user3 localhost stage/sql/closing tables 10 +user3 localhost stage/sql/init 3 +user3 localhost stage/sql/Opening tables 6 +user3 localhost stage/sql/starting 7 +user4 localhost stage/sql/checking permissions 4 +user4 localhost stage/sql/closing tables 10 +user4 localhost stage/sql/init 3 +user4 localhost stage/sql/Opening tables 6 +user4 localhost stage/sql/starting 7 +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 16 +localhost stage/sql/closing tables 41 +localhost stage/sql/init 12 +localhost stage/sql/Opening tables 25 +localhost stage/sql/starting 28 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 1 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 1 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 1 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 1 +user4 localhost statement/sp/freturn 1 +user4 localhost statement/sql/insert 1 +user4 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 4 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_waits_summary_by_account_by_event_name; +"================== WAITS_BY_ACCOUNT truncated ==================" +"================== Step 15 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 32 +localhost wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 4 +user1 localhost stage/sql/closing tables 11 +user1 localhost stage/sql/init 3 +user1 localhost stage/sql/Opening tables 7 +user1 localhost stage/sql/starting 7 +user2 localhost stage/sql/checking permissions 4 +user2 localhost stage/sql/closing tables 10 +user2 localhost stage/sql/init 3 +user2 localhost stage/sql/Opening tables 6 +user2 localhost stage/sql/starting 7 +user3 localhost stage/sql/checking permissions 4 +user3 localhost stage/sql/closing tables 10 +user3 localhost stage/sql/init 3 +user3 localhost stage/sql/Opening tables 6 +user3 localhost stage/sql/starting 7 +user4 localhost stage/sql/checking permissions 4 +user4 localhost stage/sql/closing tables 10 +user4 localhost stage/sql/init 3 +user4 localhost stage/sql/Opening tables 6 +user4 localhost stage/sql/starting 7 +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 16 +localhost stage/sql/closing tables 41 +localhost stage/sql/init 12 +localhost stage/sql/Opening tables 25 +localhost stage/sql/starting 28 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 1 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 1 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 1 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 1 +user4 localhost statement/sp/freturn 1 +user4 localhost statement/sql/insert 1 +user4 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 4 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_waits_summary_by_user_by_event_name; +"================== WAITS_BY_USER truncated ==================" +"================== Step 16 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 32 +localhost wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 4 +user1 localhost stage/sql/closing tables 11 +user1 localhost stage/sql/init 3 +user1 localhost stage/sql/Opening tables 7 +user1 localhost stage/sql/starting 7 +user2 localhost stage/sql/checking permissions 4 +user2 localhost stage/sql/closing tables 10 +user2 localhost stage/sql/init 3 +user2 localhost stage/sql/Opening tables 6 +user2 localhost stage/sql/starting 7 +user3 localhost stage/sql/checking permissions 4 +user3 localhost stage/sql/closing tables 10 +user3 localhost stage/sql/init 3 +user3 localhost stage/sql/Opening tables 6 +user3 localhost stage/sql/starting 7 +user4 localhost stage/sql/checking permissions 4 +user4 localhost stage/sql/closing tables 10 +user4 localhost stage/sql/init 3 +user4 localhost stage/sql/Opening tables 6 +user4 localhost stage/sql/starting 7 +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 16 +localhost stage/sql/closing tables 41 +localhost stage/sql/init 12 +localhost stage/sql/Opening tables 25 +localhost stage/sql/starting 28 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 1 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 1 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 1 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 1 +user4 localhost statement/sp/freturn 1 +user4 localhost statement/sql/insert 1 +user4 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 4 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_waits_summary_by_host_by_event_name; +"================== WAITS_BY_HOST truncated ==================" +"================== Step 17 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 4 +user1 localhost stage/sql/closing tables 11 +user1 localhost stage/sql/init 3 +user1 localhost stage/sql/Opening tables 7 +user1 localhost stage/sql/starting 7 +user2 localhost stage/sql/checking permissions 4 +user2 localhost stage/sql/closing tables 10 +user2 localhost stage/sql/init 3 +user2 localhost stage/sql/Opening tables 6 +user2 localhost stage/sql/starting 7 +user3 localhost stage/sql/checking permissions 4 +user3 localhost stage/sql/closing tables 10 +user3 localhost stage/sql/init 3 +user3 localhost stage/sql/Opening tables 6 +user3 localhost stage/sql/starting 7 +user4 localhost stage/sql/checking permissions 4 +user4 localhost stage/sql/closing tables 10 +user4 localhost stage/sql/init 3 +user4 localhost stage/sql/Opening tables 6 +user4 localhost stage/sql/starting 7 +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 16 +localhost stage/sql/closing tables 41 +localhost stage/sql/init 12 +localhost stage/sql/Opening tables 25 +localhost stage/sql/starting 28 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 1 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 1 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 1 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 1 +user4 localhost statement/sp/freturn 1 +user4 localhost statement/sql/insert 1 +user4 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 4 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_waits_summary_global_by_event_name; +"================== WAITS_GLOBAL truncated ==================" +"================== Step 18 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 4 +user1 localhost stage/sql/closing tables 11 +user1 localhost stage/sql/init 3 +user1 localhost stage/sql/Opening tables 7 +user1 localhost stage/sql/starting 7 +user2 localhost stage/sql/checking permissions 4 +user2 localhost stage/sql/closing tables 10 +user2 localhost stage/sql/init 3 +user2 localhost stage/sql/Opening tables 6 +user2 localhost stage/sql/starting 7 +user3 localhost stage/sql/checking permissions 4 +user3 localhost stage/sql/closing tables 10 +user3 localhost stage/sql/init 3 +user3 localhost stage/sql/Opening tables 6 +user3 localhost stage/sql/starting 7 +user4 localhost stage/sql/checking permissions 4 +user4 localhost stage/sql/closing tables 10 +user4 localhost stage/sql/init 3 +user4 localhost stage/sql/Opening tables 6 +user4 localhost stage/sql/starting 7 +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 16 +localhost stage/sql/closing tables 41 +localhost stage/sql/init 12 +localhost stage/sql/Opening tables 25 +localhost stage/sql/starting 28 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 1 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 1 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 1 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 1 +user4 localhost statement/sp/freturn 1 +user4 localhost statement/sql/insert 1 +user4 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 4 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_stages_summary_by_thread_by_event_name; +"================== STAGES_BY_THREAD truncated ==================" +"================== Step 19 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 4 +user1 localhost stage/sql/closing tables 11 +user1 localhost stage/sql/init 3 +user1 localhost stage/sql/Opening tables 7 +user1 localhost stage/sql/starting 7 +user2 localhost stage/sql/checking permissions 4 +user2 localhost stage/sql/closing tables 10 +user2 localhost stage/sql/init 3 +user2 localhost stage/sql/Opening tables 6 +user2 localhost stage/sql/starting 7 +user3 localhost stage/sql/checking permissions 4 +user3 localhost stage/sql/closing tables 10 +user3 localhost stage/sql/init 3 +user3 localhost stage/sql/Opening tables 6 +user3 localhost stage/sql/starting 7 +user4 localhost stage/sql/checking permissions 4 +user4 localhost stage/sql/closing tables 10 +user4 localhost stage/sql/init 3 +user4 localhost stage/sql/Opening tables 6 +user4 localhost stage/sql/starting 7 +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 16 +localhost stage/sql/closing tables 41 +localhost stage/sql/init 12 +localhost stage/sql/Opening tables 25 +localhost stage/sql/starting 28 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 1 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 1 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 1 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 1 +user4 localhost statement/sp/freturn 1 +user4 localhost statement/sql/insert 1 +user4 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 4 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_stages_summary_by_account_by_event_name; +"================== STAGES_BY_ACCOUNT truncated ==================" +"================== Step 20 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 0 +user1 localhost stage/sql/closing tables 0 +user1 localhost stage/sql/init 0 +user1 localhost stage/sql/Opening tables 0 +user1 localhost stage/sql/starting 0 +user2 localhost stage/sql/checking permissions 0 +user2 localhost stage/sql/closing tables 0 +user2 localhost stage/sql/init 0 +user2 localhost stage/sql/Opening tables 0 +user2 localhost stage/sql/starting 0 +user3 localhost stage/sql/checking permissions 0 +user3 localhost stage/sql/closing tables 0 +user3 localhost stage/sql/init 0 +user3 localhost stage/sql/Opening tables 0 +user3 localhost stage/sql/starting 0 +user4 localhost stage/sql/checking permissions 0 +user4 localhost stage/sql/closing tables 0 +user4 localhost stage/sql/init 0 +user4 localhost stage/sql/Opening tables 0 +user4 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 16 +localhost stage/sql/closing tables 41 +localhost stage/sql/init 12 +localhost stage/sql/Opening tables 25 +localhost stage/sql/starting 28 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 1 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 1 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 1 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 1 +user4 localhost statement/sp/freturn 1 +user4 localhost statement/sql/insert 1 +user4 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 4 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_stages_summary_by_user_by_event_name; +"================== STAGES_BY_USER truncated ==================" +"================== Step 21 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 0 +user1 localhost stage/sql/closing tables 0 +user1 localhost stage/sql/init 0 +user1 localhost stage/sql/Opening tables 0 +user1 localhost stage/sql/starting 0 +user2 localhost stage/sql/checking permissions 0 +user2 localhost stage/sql/closing tables 0 +user2 localhost stage/sql/init 0 +user2 localhost stage/sql/Opening tables 0 +user2 localhost stage/sql/starting 0 +user3 localhost stage/sql/checking permissions 0 +user3 localhost stage/sql/closing tables 0 +user3 localhost stage/sql/init 0 +user3 localhost stage/sql/Opening tables 0 +user3 localhost stage/sql/starting 0 +user4 localhost stage/sql/checking permissions 0 +user4 localhost stage/sql/closing tables 0 +user4 localhost stage/sql/init 0 +user4 localhost stage/sql/Opening tables 0 +user4 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 16 +localhost stage/sql/closing tables 41 +localhost stage/sql/init 12 +localhost stage/sql/Opening tables 25 +localhost stage/sql/starting 28 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 1 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 1 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 1 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 1 +user4 localhost statement/sp/freturn 1 +user4 localhost statement/sql/insert 1 +user4 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 4 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_stages_summary_by_host_by_event_name; +"================== STAGES_BY_HOST truncated ==================" +"================== Step 22 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 0 +user1 localhost stage/sql/closing tables 0 +user1 localhost stage/sql/init 0 +user1 localhost stage/sql/Opening tables 0 +user1 localhost stage/sql/starting 0 +user2 localhost stage/sql/checking permissions 0 +user2 localhost stage/sql/closing tables 0 +user2 localhost stage/sql/init 0 +user2 localhost stage/sql/Opening tables 0 +user2 localhost stage/sql/starting 0 +user3 localhost stage/sql/checking permissions 0 +user3 localhost stage/sql/closing tables 0 +user3 localhost stage/sql/init 0 +user3 localhost stage/sql/Opening tables 0 +user3 localhost stage/sql/starting 0 +user4 localhost stage/sql/checking permissions 0 +user4 localhost stage/sql/closing tables 0 +user4 localhost stage/sql/init 0 +user4 localhost stage/sql/Opening tables 0 +user4 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 0 +localhost stage/sql/closing tables 0 +localhost stage/sql/init 0 +localhost stage/sql/Opening tables 0 +localhost stage/sql/starting 0 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 1 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 1 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 1 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 1 +user4 localhost statement/sp/freturn 1 +user4 localhost statement/sql/insert 1 +user4 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 4 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_stages_summary_global_by_event_name; +"================== STAGES_GLOBAL truncated ==================" +"================== Step 23 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 0 +user1 localhost stage/sql/closing tables 0 +user1 localhost stage/sql/init 0 +user1 localhost stage/sql/Opening tables 0 +user1 localhost stage/sql/starting 0 +user2 localhost stage/sql/checking permissions 0 +user2 localhost stage/sql/closing tables 0 +user2 localhost stage/sql/init 0 +user2 localhost stage/sql/Opening tables 0 +user2 localhost stage/sql/starting 0 +user3 localhost stage/sql/checking permissions 0 +user3 localhost stage/sql/closing tables 0 +user3 localhost stage/sql/init 0 +user3 localhost stage/sql/Opening tables 0 +user3 localhost stage/sql/starting 0 +user4 localhost stage/sql/checking permissions 0 +user4 localhost stage/sql/closing tables 0 +user4 localhost stage/sql/init 0 +user4 localhost stage/sql/Opening tables 0 +user4 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 0 +localhost stage/sql/closing tables 0 +localhost stage/sql/init 0 +localhost stage/sql/Opening tables 0 +localhost stage/sql/starting 0 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 1 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 1 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 1 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 1 +user4 localhost statement/sp/freturn 1 +user4 localhost statement/sql/insert 1 +user4 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 4 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_statements_summary_by_thread_by_event_name; +"================== STATEMENTS_BY_THREAD truncated ==================" +"================== Step 24 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 0 +user1 localhost stage/sql/closing tables 0 +user1 localhost stage/sql/init 0 +user1 localhost stage/sql/Opening tables 0 +user1 localhost stage/sql/starting 0 +user2 localhost stage/sql/checking permissions 0 +user2 localhost stage/sql/closing tables 0 +user2 localhost stage/sql/init 0 +user2 localhost stage/sql/Opening tables 0 +user2 localhost stage/sql/starting 0 +user3 localhost stage/sql/checking permissions 0 +user3 localhost stage/sql/closing tables 0 +user3 localhost stage/sql/init 0 +user3 localhost stage/sql/Opening tables 0 +user3 localhost stage/sql/starting 0 +user4 localhost stage/sql/checking permissions 0 +user4 localhost stage/sql/closing tables 0 +user4 localhost stage/sql/init 0 +user4 localhost stage/sql/Opening tables 0 +user4 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 0 +localhost stage/sql/closing tables 0 +localhost stage/sql/init 0 +localhost stage/sql/Opening tables 0 +localhost stage/sql/starting 0 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 1 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 1 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 1 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 1 +user4 localhost statement/sp/freturn 1 +user4 localhost statement/sql/insert 1 +user4 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 4 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_statements_summary_by_account_by_event_name; +"================== STATEMENTS_BY_ACCOUNT truncated ==================" +"================== Step 25 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 0 +user1 localhost stage/sql/closing tables 0 +user1 localhost stage/sql/init 0 +user1 localhost stage/sql/Opening tables 0 +user1 localhost stage/sql/starting 0 +user2 localhost stage/sql/checking permissions 0 +user2 localhost stage/sql/closing tables 0 +user2 localhost stage/sql/init 0 +user2 localhost stage/sql/Opening tables 0 +user2 localhost stage/sql/starting 0 +user3 localhost stage/sql/checking permissions 0 +user3 localhost stage/sql/closing tables 0 +user3 localhost stage/sql/init 0 +user3 localhost stage/sql/Opening tables 0 +user3 localhost stage/sql/starting 0 +user4 localhost stage/sql/checking permissions 0 +user4 localhost stage/sql/closing tables 0 +user4 localhost stage/sql/init 0 +user4 localhost stage/sql/Opening tables 0 +user4 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 0 +localhost stage/sql/closing tables 0 +localhost stage/sql/init 0 +localhost stage/sql/Opening tables 0 +localhost stage/sql/starting 0 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 0 +user1 localhost statement/sp/freturn 0 +user1 localhost statement/sql/insert 0 +user1 localhost statement/sql/select 0 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 0 +user2 localhost statement/sp/freturn 0 +user2 localhost statement/sql/insert 0 +user2 localhost statement/sql/select 0 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 0 +user3 localhost statement/sp/freturn 0 +user3 localhost statement/sql/insert 0 +user3 localhost statement/sql/select 0 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 0 +user4 localhost statement/sp/freturn 0 +user4 localhost statement/sql/insert 0 +user4 localhost statement/sql/select 0 +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 4 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_statements_summary_by_user_by_event_name; +"================== STATEMENTS_BY_USER truncated ==================" +"================== Step 26 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 0 +user1 localhost stage/sql/closing tables 0 +user1 localhost stage/sql/init 0 +user1 localhost stage/sql/Opening tables 0 +user1 localhost stage/sql/starting 0 +user2 localhost stage/sql/checking permissions 0 +user2 localhost stage/sql/closing tables 0 +user2 localhost stage/sql/init 0 +user2 localhost stage/sql/Opening tables 0 +user2 localhost stage/sql/starting 0 +user3 localhost stage/sql/checking permissions 0 +user3 localhost stage/sql/closing tables 0 +user3 localhost stage/sql/init 0 +user3 localhost stage/sql/Opening tables 0 +user3 localhost stage/sql/starting 0 +user4 localhost stage/sql/checking permissions 0 +user4 localhost stage/sql/closing tables 0 +user4 localhost stage/sql/init 0 +user4 localhost stage/sql/Opening tables 0 +user4 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 0 +localhost stage/sql/closing tables 0 +localhost stage/sql/init 0 +localhost stage/sql/Opening tables 0 +localhost stage/sql/starting 0 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 0 +user1 localhost statement/sp/freturn 0 +user1 localhost statement/sql/insert 0 +user1 localhost statement/sql/select 0 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 0 +user2 localhost statement/sp/freturn 0 +user2 localhost statement/sql/insert 0 +user2 localhost statement/sql/select 0 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 0 +user3 localhost statement/sp/freturn 0 +user3 localhost statement/sql/insert 0 +user3 localhost statement/sql/select 0 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 0 +user4 localhost statement/sp/freturn 0 +user4 localhost statement/sql/insert 0 +user4 localhost statement/sql/select 0 +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 4 +localhost statement/sp/freturn 4 +localhost statement/sql/insert 4 +localhost statement/sql/select 12 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_statements_summary_by_host_by_event_name; +"================== STATEMENTS_BY_HOST truncated ==================" +"================== Step 27 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 0 +user1 localhost stage/sql/closing tables 0 +user1 localhost stage/sql/init 0 +user1 localhost stage/sql/Opening tables 0 +user1 localhost stage/sql/starting 0 +user2 localhost stage/sql/checking permissions 0 +user2 localhost stage/sql/closing tables 0 +user2 localhost stage/sql/init 0 +user2 localhost stage/sql/Opening tables 0 +user2 localhost stage/sql/starting 0 +user3 localhost stage/sql/checking permissions 0 +user3 localhost stage/sql/closing tables 0 +user3 localhost stage/sql/init 0 +user3 localhost stage/sql/Opening tables 0 +user3 localhost stage/sql/starting 0 +user4 localhost stage/sql/checking permissions 0 +user4 localhost stage/sql/closing tables 0 +user4 localhost stage/sql/init 0 +user4 localhost stage/sql/Opening tables 0 +user4 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 0 +localhost stage/sql/closing tables 0 +localhost stage/sql/init 0 +localhost stage/sql/Opening tables 0 +localhost stage/sql/starting 0 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 0 +user1 localhost statement/sp/freturn 0 +user1 localhost statement/sql/insert 0 +user1 localhost statement/sql/select 0 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 0 +user2 localhost statement/sp/freturn 0 +user2 localhost statement/sql/insert 0 +user2 localhost statement/sql/select 0 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 0 +user3 localhost statement/sp/freturn 0 +user3 localhost statement/sql/insert 0 +user3 localhost statement/sql/select 0 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 0 +user4 localhost statement/sp/freturn 0 +user4 localhost statement/sql/insert 0 +user4 localhost statement/sql/select 0 +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 0 +localhost statement/sql/insert 0 +localhost statement/sql/select 0 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_statements_summary_global_by_event_name; +"================== STATEMENTS_GLOBAL truncated ==================" +"================== Step 28 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 0 +user1 localhost stage/sql/closing tables 0 +user1 localhost stage/sql/init 0 +user1 localhost stage/sql/Opening tables 0 +user1 localhost stage/sql/starting 0 +user2 localhost stage/sql/checking permissions 0 +user2 localhost stage/sql/closing tables 0 +user2 localhost stage/sql/init 0 +user2 localhost stage/sql/Opening tables 0 +user2 localhost stage/sql/starting 0 +user3 localhost stage/sql/checking permissions 0 +user3 localhost stage/sql/closing tables 0 +user3 localhost stage/sql/init 0 +user3 localhost stage/sql/Opening tables 0 +user3 localhost stage/sql/starting 0 +user4 localhost stage/sql/checking permissions 0 +user4 localhost stage/sql/closing tables 0 +user4 localhost stage/sql/init 0 +user4 localhost stage/sql/Opening tables 0 +user4 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 0 +localhost stage/sql/closing tables 0 +localhost stage/sql/init 0 +localhost stage/sql/Opening tables 0 +localhost stage/sql/starting 0 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 0 +user1 localhost statement/sp/freturn 0 +user1 localhost statement/sql/insert 0 +user1 localhost statement/sql/select 0 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 0 +user2 localhost statement/sp/freturn 0 +user2 localhost statement/sql/insert 0 +user2 localhost statement/sql/select 0 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 0 +user3 localhost statement/sp/freturn 0 +user3 localhost statement/sql/insert 0 +user3 localhost statement/sql/select 0 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 0 +user4 localhost statement/sp/freturn 0 +user4 localhost statement/sql/insert 0 +user4 localhost statement/sql/select 0 +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 0 +localhost statement/sql/insert 0 +localhost statement/sql/select 0 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_transactions_summary_by_thread_by_event_name; +"================== TRANSACTIONS_BY_THREAD truncated ==================" +"================== Step 29 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 0 +user1 localhost stage/sql/closing tables 0 +user1 localhost stage/sql/init 0 +user1 localhost stage/sql/Opening tables 0 +user1 localhost stage/sql/starting 0 +user2 localhost stage/sql/checking permissions 0 +user2 localhost stage/sql/closing tables 0 +user2 localhost stage/sql/init 0 +user2 localhost stage/sql/Opening tables 0 +user2 localhost stage/sql/starting 0 +user3 localhost stage/sql/checking permissions 0 +user3 localhost stage/sql/closing tables 0 +user3 localhost stage/sql/init 0 +user3 localhost stage/sql/Opening tables 0 +user3 localhost stage/sql/starting 0 +user4 localhost stage/sql/checking permissions 0 +user4 localhost stage/sql/closing tables 0 +user4 localhost stage/sql/init 0 +user4 localhost stage/sql/Opening tables 0 +user4 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 0 +localhost stage/sql/closing tables 0 +localhost stage/sql/init 0 +localhost stage/sql/Opening tables 0 +localhost stage/sql/starting 0 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 0 +user1 localhost statement/sp/freturn 0 +user1 localhost statement/sql/insert 0 +user1 localhost statement/sql/select 0 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 0 +user2 localhost statement/sp/freturn 0 +user2 localhost statement/sql/insert 0 +user2 localhost statement/sql/select 0 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 0 +user3 localhost statement/sp/freturn 0 +user3 localhost statement/sql/insert 0 +user3 localhost statement/sql/select 0 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 0 +user4 localhost statement/sp/freturn 0 +user4 localhost statement/sql/insert 0 +user4 localhost statement/sql/select 0 +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 0 +localhost statement/sql/insert 0 +localhost statement/sql/select 0 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_transactions_summary_by_account_by_event_name; +"================== TRANSACTIONS_BY_ACCOUNT truncated ==================" +"================== Step 30 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 0 +user1 localhost stage/sql/closing tables 0 +user1 localhost stage/sql/init 0 +user1 localhost stage/sql/Opening tables 0 +user1 localhost stage/sql/starting 0 +user2 localhost stage/sql/checking permissions 0 +user2 localhost stage/sql/closing tables 0 +user2 localhost stage/sql/init 0 +user2 localhost stage/sql/Opening tables 0 +user2 localhost stage/sql/starting 0 +user3 localhost stage/sql/checking permissions 0 +user3 localhost stage/sql/closing tables 0 +user3 localhost stage/sql/init 0 +user3 localhost stage/sql/Opening tables 0 +user3 localhost stage/sql/starting 0 +user4 localhost stage/sql/checking permissions 0 +user4 localhost stage/sql/closing tables 0 +user4 localhost stage/sql/init 0 +user4 localhost stage/sql/Opening tables 0 +user4 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 0 +localhost stage/sql/closing tables 0 +localhost stage/sql/init 0 +localhost stage/sql/Opening tables 0 +localhost stage/sql/starting 0 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 0 +user1 localhost statement/sp/freturn 0 +user1 localhost statement/sql/insert 0 +user1 localhost statement/sql/select 0 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 0 +user2 localhost statement/sp/freturn 0 +user2 localhost statement/sql/insert 0 +user2 localhost statement/sql/select 0 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 0 +user3 localhost statement/sp/freturn 0 +user3 localhost statement/sql/insert 0 +user3 localhost statement/sql/select 0 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 0 +user4 localhost statement/sp/freturn 0 +user4 localhost statement/sql/insert 0 +user4 localhost statement/sql/select 0 +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 0 +localhost statement/sql/insert 0 +localhost statement/sql/select 0 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 0 +user2 localhost transaction 0 +user3 localhost transaction 0 +user4 localhost transaction 0 +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_transactions_summary_by_user_by_event_name; +"================== TRANSACTIONS_BY_USER truncated ==================" +"================== Step 31 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 0 +user1 localhost stage/sql/closing tables 0 +user1 localhost stage/sql/init 0 +user1 localhost stage/sql/Opening tables 0 +user1 localhost stage/sql/starting 0 +user2 localhost stage/sql/checking permissions 0 +user2 localhost stage/sql/closing tables 0 +user2 localhost stage/sql/init 0 +user2 localhost stage/sql/Opening tables 0 +user2 localhost stage/sql/starting 0 +user3 localhost stage/sql/checking permissions 0 +user3 localhost stage/sql/closing tables 0 +user3 localhost stage/sql/init 0 +user3 localhost stage/sql/Opening tables 0 +user3 localhost stage/sql/starting 0 +user4 localhost stage/sql/checking permissions 0 +user4 localhost stage/sql/closing tables 0 +user4 localhost stage/sql/init 0 +user4 localhost stage/sql/Opening tables 0 +user4 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 0 +localhost stage/sql/closing tables 0 +localhost stage/sql/init 0 +localhost stage/sql/Opening tables 0 +localhost stage/sql/starting 0 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 0 +user1 localhost statement/sp/freturn 0 +user1 localhost statement/sql/insert 0 +user1 localhost statement/sql/select 0 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 0 +user2 localhost statement/sp/freturn 0 +user2 localhost statement/sql/insert 0 +user2 localhost statement/sql/select 0 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 0 +user3 localhost statement/sp/freturn 0 +user3 localhost statement/sql/insert 0 +user3 localhost statement/sql/select 0 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 0 +user4 localhost statement/sp/freturn 0 +user4 localhost statement/sql/insert 0 +user4 localhost statement/sql/select 0 +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 0 +localhost statement/sql/insert 0 +localhost statement/sql/select 0 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 0 +user2 localhost transaction 0 +user3 localhost transaction 0 +user4 localhost transaction 0 +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 8 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_transactions_summary_by_host_by_event_name; +"================== TRANSACTIONS_BY_HOST truncated ==================" +"================== Step 32 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 0 +user1 localhost stage/sql/closing tables 0 +user1 localhost stage/sql/init 0 +user1 localhost stage/sql/Opening tables 0 +user1 localhost stage/sql/starting 0 +user2 localhost stage/sql/checking permissions 0 +user2 localhost stage/sql/closing tables 0 +user2 localhost stage/sql/init 0 +user2 localhost stage/sql/Opening tables 0 +user2 localhost stage/sql/starting 0 +user3 localhost stage/sql/checking permissions 0 +user3 localhost stage/sql/closing tables 0 +user3 localhost stage/sql/init 0 +user3 localhost stage/sql/Opening tables 0 +user3 localhost stage/sql/starting 0 +user4 localhost stage/sql/checking permissions 0 +user4 localhost stage/sql/closing tables 0 +user4 localhost stage/sql/init 0 +user4 localhost stage/sql/Opening tables 0 +user4 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 0 +localhost stage/sql/closing tables 0 +localhost stage/sql/init 0 +localhost stage/sql/Opening tables 0 +localhost stage/sql/starting 0 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 0 +user1 localhost statement/sp/freturn 0 +user1 localhost statement/sql/insert 0 +user1 localhost statement/sql/select 0 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 0 +user2 localhost statement/sp/freturn 0 +user2 localhost statement/sql/insert 0 +user2 localhost statement/sql/select 0 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 0 +user3 localhost statement/sp/freturn 0 +user3 localhost statement/sql/insert 0 +user3 localhost statement/sql/select 0 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 0 +user4 localhost statement/sp/freturn 0 +user4 localhost statement/sql/insert 0 +user4 localhost statement/sql/select 0 +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 0 +localhost statement/sql/insert 0 +localhost statement/sql/select 0 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 0 +user2 localhost transaction 0 +user3 localhost transaction 0 +user4 localhost transaction 0 +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 0 +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.events_transactions_summary_global_by_event_name; +"================== TRANSACTIONS_GLOBAL truncated ==================" +"================== Step 33 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 0 +user1 localhost stage/sql/closing tables 0 +user1 localhost stage/sql/init 0 +user1 localhost stage/sql/Opening tables 0 +user1 localhost stage/sql/starting 0 +user2 localhost stage/sql/checking permissions 0 +user2 localhost stage/sql/closing tables 0 +user2 localhost stage/sql/init 0 +user2 localhost stage/sql/Opening tables 0 +user2 localhost stage/sql/starting 0 +user3 localhost stage/sql/checking permissions 0 +user3 localhost stage/sql/closing tables 0 +user3 localhost stage/sql/init 0 +user3 localhost stage/sql/Opening tables 0 +user3 localhost stage/sql/starting 0 +user4 localhost stage/sql/checking permissions 0 +user4 localhost stage/sql/closing tables 0 +user4 localhost stage/sql/init 0 +user4 localhost stage/sql/Opening tables 0 +user4 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 0 +localhost stage/sql/closing tables 0 +localhost stage/sql/init 0 +localhost stage/sql/Opening tables 0 +localhost stage/sql/starting 0 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 0 +user1 localhost statement/sp/freturn 0 +user1 localhost statement/sql/insert 0 +user1 localhost statement/sql/select 0 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 0 +user2 localhost statement/sp/freturn 0 +user2 localhost statement/sql/insert 0 +user2 localhost statement/sql/select 0 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 0 +user3 localhost statement/sp/freturn 0 +user3 localhost statement/sql/insert 0 +user3 localhost statement/sql/select 0 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 0 +user4 localhost statement/sp/freturn 0 +user4 localhost statement/sql/insert 0 +user4 localhost statement/sql/select 0 +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 0 +localhost statement/sql/insert 0 +localhost statement/sql/select 0 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 0 +user2 localhost transaction 0 +user3 localhost transaction 0 +user4 localhost transaction 0 +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 0 +execute dump_transactions_global; +event_name count_star +transaction 0 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.accounts; +"================== ACCOUNTS truncated ==================" +"================== Step 34 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 0 +localhost stage/sql/closing tables 0 +localhost stage/sql/init 0 +localhost stage/sql/Opening tables 0 +localhost stage/sql/starting 0 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 0 +localhost statement/sql/insert 0 +localhost statement/sql/select 0 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 0 +execute dump_transactions_global; +event_name count_star +transaction 0 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.users; +"================== USERS truncated ==================" +"================== Step 35 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 0 +localhost stage/sql/closing tables 0 +localhost stage/sql/init 0 +localhost stage/sql/Opening tables 0 +localhost stage/sql/starting 0 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 0 +localhost statement/sql/insert 0 +localhost statement/sql/select 0 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 0 +execute dump_transactions_global; +event_name count_star +transaction 0 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 5 +truncate performance_schema.hosts; +"================== HOSTS truncated ==================" +"================== Step 36 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +localhost wait/io/file/sql/query_log 0 +localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +localhost stage/sql/checking permissions 0 +localhost stage/sql/closing tables 0 +localhost stage/sql/init 0 +localhost stage/sql/Opening tables 0 +localhost stage/sql/starting 0 +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +localhost statement/com/Error 0 +localhost statement/com/Quit 0 +localhost statement/sp/freturn 0 +localhost statement/sql/insert 0 +localhost statement/sql/select 0 +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +localhost transaction 0 +execute dump_transactions_global; +event_name count_star +transaction 0 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 1 diff --git a/mysql-test/suite/perfschema/r/event_aggregate_no_u_no_h.result b/mysql-test/suite/perfschema/r/event_aggregate_no_u_no_h.result new file mode 100644 index 00000000..818c61e0 --- /dev/null +++ b/mysql-test/suite/perfschema/r/event_aggregate_no_u_no_h.result @@ -0,0 +1,4691 @@ +"================== Step 1 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 0 +execute dump_transactions_history; +event_name count(event_name) +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connect con1, localhost, user1, ,test; +connection default; +"================== Step 2 ==================" +call dump_thread(); +username event_name count_star +user1 wait/io/file/sql/query_log 1 +user1 wait/synch/rwlock/sql/LOCK_grant 0 +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 1 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 1 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 1 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 0 +user1 localhost stage/sql/closing tables 0 +user1 localhost stage/sql/init 0 +user1 localhost stage/sql/Opening tables 0 +user1 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 0 +user1 localhost statement/sp/freturn 0 +user1 localhost statement/sql/insert 0 +user1 localhost statement/sql/select 0 +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 0 +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 0 +execute dump_transactions_history; +event_name count(event_name) +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connection con1; +select uuid_short() <> 1; +uuid_short() <> 1 +1 +select uuid_short() <> 1; +uuid_short() <> 1 +1 +start transaction; +insert into test.t1 values ("marker"); +commit; +select test.f(10,20); +test.f(10,20) +30 +connection default; +"================== Step 3 ==================" +call dump_thread(); +username event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 7 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 7 +wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 7 +wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 4 +user1 localhost stage/sql/closing tables 11 +user1 localhost stage/sql/init 3 +user1 localhost stage/sql/Opening tables 7 +user1 localhost stage/sql/starting 6 +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 4 +stage/sql/closing tables 11 +stage/sql/init 3 +stage/sql/Opening tables 7 +stage/sql/starting 6 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 4 +stage/sql/closing tables 11 +stage/sql/init 3 +stage/sql/Opening tables 7 +stage/sql/starting 6 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 0 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 1 +statement/sql/insert 1 +statement/sql/select 3 +execute dump_statements_history; +event_name count(event_name) +statement/sp/freturn 1 +statement/sql/insert 1 +statement/sql/select 3 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 2 +execute dump_transactions_history; +event_name count(event_name) +transaction 2 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connect con2, localhost, user2, ,test; +connection default; +"================== Step 4 ==================" +call dump_thread(); +username event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user2 wait/io/file/sql/query_log 1 +user2 wait/synch/rwlock/sql/LOCK_grant 0 +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 7 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user2 localhost wait/io/file/sql/query_log 1 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 8 +wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 8 +wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 4 +user1 localhost stage/sql/closing tables 11 +user1 localhost stage/sql/init 3 +user1 localhost stage/sql/Opening tables 7 +user1 localhost stage/sql/starting 6 +user2 localhost stage/sql/checking permissions 0 +user2 localhost stage/sql/closing tables 0 +user2 localhost stage/sql/init 0 +user2 localhost stage/sql/Opening tables 0 +user2 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 4 +stage/sql/closing tables 11 +stage/sql/init 3 +stage/sql/Opening tables 7 +stage/sql/starting 6 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 4 +stage/sql/closing tables 11 +stage/sql/init 3 +stage/sql/Opening tables 7 +stage/sql/starting 6 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 0 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 0 +user2 localhost statement/sp/freturn 0 +user2 localhost statement/sql/insert 0 +user2 localhost statement/sql/select 0 +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 1 +statement/sql/insert 1 +statement/sql/select 3 +execute dump_statements_history; +event_name count(event_name) +statement/sp/freturn 1 +statement/sql/insert 1 +statement/sql/select 3 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 0 +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 2 +execute dump_transactions_history; +event_name count(event_name) +transaction 2 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +user2 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connection con2; +select uuid_short() <> 1; +uuid_short() <> 1 +1 +select uuid_short() <> 1; +uuid_short() <> 1 +1 +start transaction; +insert into test.t1 values ("marker"); +commit; +select test.f(10,20); +test.f(10,20) +30 +connection default; +"================== Step 5 ==================" +call dump_thread(); +username event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 7 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user2 localhost wait/io/file/sql/query_log 7 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 14 +wait/synch/rwlock/sql/LOCK_grant 2 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 14 +wait/synch/rwlock/sql/LOCK_grant 2 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 4 +user1 localhost stage/sql/closing tables 11 +user1 localhost stage/sql/init 3 +user1 localhost stage/sql/Opening tables 7 +user1 localhost stage/sql/starting 6 +user2 localhost stage/sql/checking permissions 4 +user2 localhost stage/sql/closing tables 10 +user2 localhost stage/sql/init 3 +user2 localhost stage/sql/Opening tables 6 +user2 localhost stage/sql/starting 6 +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 8 +stage/sql/closing tables 21 +stage/sql/init 6 +stage/sql/Opening tables 13 +stage/sql/starting 12 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 8 +stage/sql/closing tables 21 +stage/sql/init 6 +stage/sql/Opening tables 13 +stage/sql/starting 12 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 0 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 0 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 2 +statement/sql/insert 2 +statement/sql/select 6 +execute dump_statements_history; +event_name count(event_name) +statement/sp/freturn 2 +statement/sql/insert 2 +statement/sql/select 6 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 4 +execute dump_transactions_history; +event_name count(event_name) +transaction 4 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +user2 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connect con3, localhost, user3, ,test; +connection default; +"================== Step 6 ==================" +call dump_thread(); +username event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user3 wait/io/file/sql/query_log 1 +user3 wait/synch/rwlock/sql/LOCK_grant 0 +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 7 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user2 localhost wait/io/file/sql/query_log 7 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user3 localhost wait/io/file/sql/query_log 1 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 15 +wait/synch/rwlock/sql/LOCK_grant 2 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 15 +wait/synch/rwlock/sql/LOCK_grant 2 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 4 +user1 localhost stage/sql/closing tables 11 +user1 localhost stage/sql/init 3 +user1 localhost stage/sql/Opening tables 7 +user1 localhost stage/sql/starting 6 +user2 localhost stage/sql/checking permissions 4 +user2 localhost stage/sql/closing tables 10 +user2 localhost stage/sql/init 3 +user2 localhost stage/sql/Opening tables 6 +user2 localhost stage/sql/starting 6 +user3 localhost stage/sql/checking permissions 0 +user3 localhost stage/sql/closing tables 0 +user3 localhost stage/sql/init 0 +user3 localhost stage/sql/Opening tables 0 +user3 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 8 +stage/sql/closing tables 21 +stage/sql/init 6 +stage/sql/Opening tables 13 +stage/sql/starting 12 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 8 +stage/sql/closing tables 21 +stage/sql/init 6 +stage/sql/Opening tables 13 +stage/sql/starting 12 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 0 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 0 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 0 +user3 localhost statement/sp/freturn 0 +user3 localhost statement/sql/insert 0 +user3 localhost statement/sql/select 0 +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 2 +statement/sql/insert 2 +statement/sql/select 6 +execute dump_statements_history; +event_name count(event_name) +statement/sp/freturn 2 +statement/sql/insert 2 +statement/sql/select 6 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 0 +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 4 +execute dump_transactions_history; +event_name count(event_name) +transaction 4 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +user2 localhost 1 1 +user3 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connection con3; +select uuid_short() <> 1; +uuid_short() <> 1 +1 +select uuid_short() <> 1; +uuid_short() <> 1 +1 +start transaction; +insert into test.t1 values ("marker"); +commit; +select test.f(10,20); +test.f(10,20) +30 +connection default; +"================== Step 7 ==================" +call dump_thread(); +username event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user3 wait/io/file/sql/query_log 7 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 7 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user2 localhost wait/io/file/sql/query_log 7 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user3 localhost wait/io/file/sql/query_log 7 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 21 +wait/synch/rwlock/sql/LOCK_grant 3 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 21 +wait/synch/rwlock/sql/LOCK_grant 3 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 4 +user1 localhost stage/sql/closing tables 11 +user1 localhost stage/sql/init 3 +user1 localhost stage/sql/Opening tables 7 +user1 localhost stage/sql/starting 6 +user2 localhost stage/sql/checking permissions 4 +user2 localhost stage/sql/closing tables 10 +user2 localhost stage/sql/init 3 +user2 localhost stage/sql/Opening tables 6 +user2 localhost stage/sql/starting 6 +user3 localhost stage/sql/checking permissions 4 +user3 localhost stage/sql/closing tables 10 +user3 localhost stage/sql/init 3 +user3 localhost stage/sql/Opening tables 6 +user3 localhost stage/sql/starting 6 +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 12 +stage/sql/closing tables 31 +stage/sql/init 9 +stage/sql/Opening tables 19 +stage/sql/starting 18 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 12 +stage/sql/closing tables 31 +stage/sql/init 9 +stage/sql/Opening tables 19 +stage/sql/starting 18 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 0 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 0 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 0 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 3 +statement/sql/insert 3 +statement/sql/select 9 +execute dump_statements_history; +event_name count(event_name) +statement/sp/freturn 3 +statement/sql/insert 3 +statement/sql/select 9 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 6 +execute dump_transactions_history; +event_name count(event_name) +transaction 6 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +user2 localhost 1 1 +user3 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connect con4, localhost, user4, ,test; +connection default; +"================== Step 8 ==================" +call dump_thread(); +username event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user3 wait/io/file/sql/query_log 7 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user4 wait/io/file/sql/query_log 1 +user4 wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 7 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user2 localhost wait/io/file/sql/query_log 7 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user3 localhost wait/io/file/sql/query_log 7 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user4 localhost wait/io/file/sql/query_log 1 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 22 +wait/synch/rwlock/sql/LOCK_grant 3 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 22 +wait/synch/rwlock/sql/LOCK_grant 3 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 4 +user1 localhost stage/sql/closing tables 11 +user1 localhost stage/sql/init 3 +user1 localhost stage/sql/Opening tables 7 +user1 localhost stage/sql/starting 6 +user2 localhost stage/sql/checking permissions 4 +user2 localhost stage/sql/closing tables 10 +user2 localhost stage/sql/init 3 +user2 localhost stage/sql/Opening tables 6 +user2 localhost stage/sql/starting 6 +user3 localhost stage/sql/checking permissions 4 +user3 localhost stage/sql/closing tables 10 +user3 localhost stage/sql/init 3 +user3 localhost stage/sql/Opening tables 6 +user3 localhost stage/sql/starting 6 +user4 localhost stage/sql/checking permissions 0 +user4 localhost stage/sql/closing tables 0 +user4 localhost stage/sql/init 0 +user4 localhost stage/sql/Opening tables 0 +user4 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 12 +stage/sql/closing tables 31 +stage/sql/init 9 +stage/sql/Opening tables 19 +stage/sql/starting 18 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 12 +stage/sql/closing tables 31 +stage/sql/init 9 +stage/sql/Opening tables 19 +stage/sql/starting 18 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 0 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 0 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 0 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 0 +user4 localhost statement/sp/freturn 0 +user4 localhost statement/sql/insert 0 +user4 localhost statement/sql/select 0 +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 3 +statement/sql/insert 3 +statement/sql/select 9 +execute dump_statements_history; +event_name count(event_name) +statement/sp/freturn 3 +statement/sql/insert 3 +statement/sql/select 9 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 0 +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 6 +execute dump_transactions_history; +event_name count(event_name) +transaction 6 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +user2 localhost 1 1 +user3 localhost 1 1 +user4 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connection con4; +select uuid_short() <> 1; +uuid_short() <> 1 +1 +select uuid_short() <> 1; +uuid_short() <> 1 +1 +start transaction; +insert into test.t1 values ("marker"); +commit; +select test.f(10,20); +test.f(10,20) +30 +connection default; +"================== Step 9 ==================" +call dump_thread(); +username event_name count_star +user1 wait/io/file/sql/query_log 7 +user1 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user3 wait/io/file/sql/query_log 7 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user4 wait/io/file/sql/query_log 7 +user4 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 7 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user2 localhost wait/io/file/sql/query_log 7 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user3 localhost wait/io/file/sql/query_log 7 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user4 localhost wait/io/file/sql/query_log 7 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 28 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 28 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 4 +user1 localhost stage/sql/closing tables 11 +user1 localhost stage/sql/init 3 +user1 localhost stage/sql/Opening tables 7 +user1 localhost stage/sql/starting 6 +user2 localhost stage/sql/checking permissions 4 +user2 localhost stage/sql/closing tables 10 +user2 localhost stage/sql/init 3 +user2 localhost stage/sql/Opening tables 6 +user2 localhost stage/sql/starting 6 +user3 localhost stage/sql/checking permissions 4 +user3 localhost stage/sql/closing tables 10 +user3 localhost stage/sql/init 3 +user3 localhost stage/sql/Opening tables 6 +user3 localhost stage/sql/starting 6 +user4 localhost stage/sql/checking permissions 4 +user4 localhost stage/sql/closing tables 10 +user4 localhost stage/sql/init 3 +user4 localhost stage/sql/Opening tables 6 +user4 localhost stage/sql/starting 6 +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 24 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 24 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 0 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 0 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 0 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 0 +user4 localhost statement/sp/freturn 1 +user4 localhost statement/sql/insert 1 +user4 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +user2 localhost 1 1 +user3 localhost 1 1 +user4 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +disconnect con1; +connection default; +"================== Step 10 ==================" +call dump_thread(); +username status +user1 not found +username event_name count_star +user2 wait/io/file/sql/query_log 7 +user2 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user3 wait/io/file/sql/query_log 7 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user4 wait/io/file/sql/query_log 7 +user4 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 8 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user2 localhost wait/io/file/sql/query_log 7 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user3 localhost wait/io/file/sql/query_log 7 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user4 localhost wait/io/file/sql/query_log 7 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 29 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 29 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 4 +user1 localhost stage/sql/closing tables 11 +user1 localhost stage/sql/init 3 +user1 localhost stage/sql/Opening tables 7 +user1 localhost stage/sql/starting 7 +user2 localhost stage/sql/checking permissions 4 +user2 localhost stage/sql/closing tables 10 +user2 localhost stage/sql/init 3 +user2 localhost stage/sql/Opening tables 6 +user2 localhost stage/sql/starting 6 +user3 localhost stage/sql/checking permissions 4 +user3 localhost stage/sql/closing tables 10 +user3 localhost stage/sql/init 3 +user3 localhost stage/sql/Opening tables 6 +user3 localhost stage/sql/starting 6 +user4 localhost stage/sql/checking permissions 4 +user4 localhost stage/sql/closing tables 10 +user4 localhost stage/sql/init 3 +user4 localhost stage/sql/Opening tables 6 +user4 localhost stage/sql/starting 6 +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 25 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 25 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 1 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 0 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 0 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 0 +user4 localhost statement/sp/freturn 1 +user4 localhost statement/sql/insert 1 +user4 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 1 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 1 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 1 1 +user3 localhost 1 1 +user4 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +disconnect con2; +connection default; +"================== Step 11 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username event_name count_star +user3 wait/io/file/sql/query_log 7 +user3 wait/synch/rwlock/sql/LOCK_grant 1 +username event_name count_star +user4 wait/io/file/sql/query_log 7 +user4 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 8 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user2 localhost wait/io/file/sql/query_log 8 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user3 localhost wait/io/file/sql/query_log 7 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user4 localhost wait/io/file/sql/query_log 7 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 30 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 30 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 4 +user1 localhost stage/sql/closing tables 11 +user1 localhost stage/sql/init 3 +user1 localhost stage/sql/Opening tables 7 +user1 localhost stage/sql/starting 7 +user2 localhost stage/sql/checking permissions 4 +user2 localhost stage/sql/closing tables 10 +user2 localhost stage/sql/init 3 +user2 localhost stage/sql/Opening tables 6 +user2 localhost stage/sql/starting 7 +user3 localhost stage/sql/checking permissions 4 +user3 localhost stage/sql/closing tables 10 +user3 localhost stage/sql/init 3 +user3 localhost stage/sql/Opening tables 6 +user3 localhost stage/sql/starting 6 +user4 localhost stage/sql/checking permissions 4 +user4 localhost stage/sql/closing tables 10 +user4 localhost stage/sql/init 3 +user4 localhost stage/sql/Opening tables 6 +user4 localhost stage/sql/starting 6 +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 26 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 26 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 1 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 1 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 0 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 0 +user4 localhost statement/sp/freturn 1 +user4 localhost statement/sql/insert 1 +user4 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 2 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 2 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 1 1 +user4 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +disconnect con3; +connection default; +"================== Step 12 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username event_name count_star +user4 wait/io/file/sql/query_log 7 +user4 wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 8 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user2 localhost wait/io/file/sql/query_log 8 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user3 localhost wait/io/file/sql/query_log 8 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user4 localhost wait/io/file/sql/query_log 7 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 31 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 31 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 4 +user1 localhost stage/sql/closing tables 11 +user1 localhost stage/sql/init 3 +user1 localhost stage/sql/Opening tables 7 +user1 localhost stage/sql/starting 7 +user2 localhost stage/sql/checking permissions 4 +user2 localhost stage/sql/closing tables 10 +user2 localhost stage/sql/init 3 +user2 localhost stage/sql/Opening tables 6 +user2 localhost stage/sql/starting 7 +user3 localhost stage/sql/checking permissions 4 +user3 localhost stage/sql/closing tables 10 +user3 localhost stage/sql/init 3 +user3 localhost stage/sql/Opening tables 6 +user3 localhost stage/sql/starting 7 +user4 localhost stage/sql/checking permissions 4 +user4 localhost stage/sql/closing tables 10 +user4 localhost stage/sql/init 3 +user4 localhost stage/sql/Opening tables 6 +user4 localhost stage/sql/starting 6 +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 27 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 27 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 1 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 1 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 1 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 0 +user4 localhost statement/sp/freturn 1 +user4 localhost statement/sql/insert 1 +user4 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 3 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 3 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +disconnect con4; +connection default; +"================== Step 13 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 8 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user2 localhost wait/io/file/sql/query_log 8 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user3 localhost wait/io/file/sql/query_log 8 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user4 localhost wait/io/file/sql/query_log 8 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 4 +user1 localhost stage/sql/closing tables 11 +user1 localhost stage/sql/init 3 +user1 localhost stage/sql/Opening tables 7 +user1 localhost stage/sql/starting 7 +user2 localhost stage/sql/checking permissions 4 +user2 localhost stage/sql/closing tables 10 +user2 localhost stage/sql/init 3 +user2 localhost stage/sql/Opening tables 6 +user2 localhost stage/sql/starting 7 +user3 localhost stage/sql/checking permissions 4 +user3 localhost stage/sql/closing tables 10 +user3 localhost stage/sql/init 3 +user3 localhost stage/sql/Opening tables 6 +user3 localhost stage/sql/starting 7 +user4 localhost stage/sql/checking permissions 4 +user4 localhost stage/sql/closing tables 10 +user4 localhost stage/sql/init 3 +user4 localhost stage/sql/Opening tables 6 +user4 localhost stage/sql/starting 7 +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 1 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 1 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 1 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 1 +user4 localhost statement/sp/freturn 1 +user4 localhost statement/sql/insert 1 +user4 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connection default; +truncate performance_schema.events_waits_summary_by_thread_by_event_name; +"================== WAITS_BY_THREAD truncated ==================" +"================== Step 14 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 8 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user2 localhost wait/io/file/sql/query_log 8 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user3 localhost wait/io/file/sql/query_log 8 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 1 +user4 localhost wait/io/file/sql/query_log 8 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 1 +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 4 +user1 localhost stage/sql/closing tables 11 +user1 localhost stage/sql/init 3 +user1 localhost stage/sql/Opening tables 7 +user1 localhost stage/sql/starting 7 +user2 localhost stage/sql/checking permissions 4 +user2 localhost stage/sql/closing tables 10 +user2 localhost stage/sql/init 3 +user2 localhost stage/sql/Opening tables 6 +user2 localhost stage/sql/starting 7 +user3 localhost stage/sql/checking permissions 4 +user3 localhost stage/sql/closing tables 10 +user3 localhost stage/sql/init 3 +user3 localhost stage/sql/Opening tables 6 +user3 localhost stage/sql/starting 7 +user4 localhost stage/sql/checking permissions 4 +user4 localhost stage/sql/closing tables 10 +user4 localhost stage/sql/init 3 +user4 localhost stage/sql/Opening tables 6 +user4 localhost stage/sql/starting 7 +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 1 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 1 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 1 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 1 +user4 localhost statement/sp/freturn 1 +user4 localhost statement/sql/insert 1 +user4 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_waits_summary_by_account_by_event_name; +"================== WAITS_BY_ACCOUNT truncated ==================" +"================== Step 15 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 4 +user1 localhost stage/sql/closing tables 11 +user1 localhost stage/sql/init 3 +user1 localhost stage/sql/Opening tables 7 +user1 localhost stage/sql/starting 7 +user2 localhost stage/sql/checking permissions 4 +user2 localhost stage/sql/closing tables 10 +user2 localhost stage/sql/init 3 +user2 localhost stage/sql/Opening tables 6 +user2 localhost stage/sql/starting 7 +user3 localhost stage/sql/checking permissions 4 +user3 localhost stage/sql/closing tables 10 +user3 localhost stage/sql/init 3 +user3 localhost stage/sql/Opening tables 6 +user3 localhost stage/sql/starting 7 +user4 localhost stage/sql/checking permissions 4 +user4 localhost stage/sql/closing tables 10 +user4 localhost stage/sql/init 3 +user4 localhost stage/sql/Opening tables 6 +user4 localhost stage/sql/starting 7 +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 1 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 1 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 1 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 1 +user4 localhost statement/sp/freturn 1 +user4 localhost statement/sql/insert 1 +user4 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_waits_summary_by_user_by_event_name; +"================== WAITS_BY_USER truncated ==================" +"================== Step 16 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 4 +user1 localhost stage/sql/closing tables 11 +user1 localhost stage/sql/init 3 +user1 localhost stage/sql/Opening tables 7 +user1 localhost stage/sql/starting 7 +user2 localhost stage/sql/checking permissions 4 +user2 localhost stage/sql/closing tables 10 +user2 localhost stage/sql/init 3 +user2 localhost stage/sql/Opening tables 6 +user2 localhost stage/sql/starting 7 +user3 localhost stage/sql/checking permissions 4 +user3 localhost stage/sql/closing tables 10 +user3 localhost stage/sql/init 3 +user3 localhost stage/sql/Opening tables 6 +user3 localhost stage/sql/starting 7 +user4 localhost stage/sql/checking permissions 4 +user4 localhost stage/sql/closing tables 10 +user4 localhost stage/sql/init 3 +user4 localhost stage/sql/Opening tables 6 +user4 localhost stage/sql/starting 7 +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 1 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 1 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 1 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 1 +user4 localhost statement/sp/freturn 1 +user4 localhost statement/sql/insert 1 +user4 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_waits_summary_by_host_by_event_name; +"================== WAITS_BY_HOST truncated ==================" +"================== Step 17 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 4 +user1 localhost stage/sql/closing tables 11 +user1 localhost stage/sql/init 3 +user1 localhost stage/sql/Opening tables 7 +user1 localhost stage/sql/starting 7 +user2 localhost stage/sql/checking permissions 4 +user2 localhost stage/sql/closing tables 10 +user2 localhost stage/sql/init 3 +user2 localhost stage/sql/Opening tables 6 +user2 localhost stage/sql/starting 7 +user3 localhost stage/sql/checking permissions 4 +user3 localhost stage/sql/closing tables 10 +user3 localhost stage/sql/init 3 +user3 localhost stage/sql/Opening tables 6 +user3 localhost stage/sql/starting 7 +user4 localhost stage/sql/checking permissions 4 +user4 localhost stage/sql/closing tables 10 +user4 localhost stage/sql/init 3 +user4 localhost stage/sql/Opening tables 6 +user4 localhost stage/sql/starting 7 +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 1 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 1 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 1 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 1 +user4 localhost statement/sp/freturn 1 +user4 localhost statement/sql/insert 1 +user4 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_waits_summary_global_by_event_name; +"================== WAITS_GLOBAL truncated ==================" +"================== Step 18 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 4 +user1 localhost stage/sql/closing tables 11 +user1 localhost stage/sql/init 3 +user1 localhost stage/sql/Opening tables 7 +user1 localhost stage/sql/starting 7 +user2 localhost stage/sql/checking permissions 4 +user2 localhost stage/sql/closing tables 10 +user2 localhost stage/sql/init 3 +user2 localhost stage/sql/Opening tables 6 +user2 localhost stage/sql/starting 7 +user3 localhost stage/sql/checking permissions 4 +user3 localhost stage/sql/closing tables 10 +user3 localhost stage/sql/init 3 +user3 localhost stage/sql/Opening tables 6 +user3 localhost stage/sql/starting 7 +user4 localhost stage/sql/checking permissions 4 +user4 localhost stage/sql/closing tables 10 +user4 localhost stage/sql/init 3 +user4 localhost stage/sql/Opening tables 6 +user4 localhost stage/sql/starting 7 +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 1 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 1 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 1 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 1 +user4 localhost statement/sp/freturn 1 +user4 localhost statement/sql/insert 1 +user4 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_stages_summary_by_thread_by_event_name; +"================== STAGES_BY_THREAD truncated ==================" +"================== Step 19 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 4 +user1 localhost stage/sql/closing tables 11 +user1 localhost stage/sql/init 3 +user1 localhost stage/sql/Opening tables 7 +user1 localhost stage/sql/starting 7 +user2 localhost stage/sql/checking permissions 4 +user2 localhost stage/sql/closing tables 10 +user2 localhost stage/sql/init 3 +user2 localhost stage/sql/Opening tables 6 +user2 localhost stage/sql/starting 7 +user3 localhost stage/sql/checking permissions 4 +user3 localhost stage/sql/closing tables 10 +user3 localhost stage/sql/init 3 +user3 localhost stage/sql/Opening tables 6 +user3 localhost stage/sql/starting 7 +user4 localhost stage/sql/checking permissions 4 +user4 localhost stage/sql/closing tables 10 +user4 localhost stage/sql/init 3 +user4 localhost stage/sql/Opening tables 6 +user4 localhost stage/sql/starting 7 +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 1 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 1 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 1 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 1 +user4 localhost statement/sp/freturn 1 +user4 localhost statement/sql/insert 1 +user4 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_stages_summary_by_account_by_event_name; +"================== STAGES_BY_ACCOUNT truncated ==================" +"================== Step 20 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 0 +user1 localhost stage/sql/closing tables 0 +user1 localhost stage/sql/init 0 +user1 localhost stage/sql/Opening tables 0 +user1 localhost stage/sql/starting 0 +user2 localhost stage/sql/checking permissions 0 +user2 localhost stage/sql/closing tables 0 +user2 localhost stage/sql/init 0 +user2 localhost stage/sql/Opening tables 0 +user2 localhost stage/sql/starting 0 +user3 localhost stage/sql/checking permissions 0 +user3 localhost stage/sql/closing tables 0 +user3 localhost stage/sql/init 0 +user3 localhost stage/sql/Opening tables 0 +user3 localhost stage/sql/starting 0 +user4 localhost stage/sql/checking permissions 0 +user4 localhost stage/sql/closing tables 0 +user4 localhost stage/sql/init 0 +user4 localhost stage/sql/Opening tables 0 +user4 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 1 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 1 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 1 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 1 +user4 localhost statement/sp/freturn 1 +user4 localhost statement/sql/insert 1 +user4 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_stages_summary_by_user_by_event_name; +"================== STAGES_BY_USER truncated ==================" +"================== Step 21 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 0 +user1 localhost stage/sql/closing tables 0 +user1 localhost stage/sql/init 0 +user1 localhost stage/sql/Opening tables 0 +user1 localhost stage/sql/starting 0 +user2 localhost stage/sql/checking permissions 0 +user2 localhost stage/sql/closing tables 0 +user2 localhost stage/sql/init 0 +user2 localhost stage/sql/Opening tables 0 +user2 localhost stage/sql/starting 0 +user3 localhost stage/sql/checking permissions 0 +user3 localhost stage/sql/closing tables 0 +user3 localhost stage/sql/init 0 +user3 localhost stage/sql/Opening tables 0 +user3 localhost stage/sql/starting 0 +user4 localhost stage/sql/checking permissions 0 +user4 localhost stage/sql/closing tables 0 +user4 localhost stage/sql/init 0 +user4 localhost stage/sql/Opening tables 0 +user4 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 1 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 1 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 1 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 1 +user4 localhost statement/sp/freturn 1 +user4 localhost statement/sql/insert 1 +user4 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_stages_summary_by_host_by_event_name; +"================== STAGES_BY_HOST truncated ==================" +"================== Step 22 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 0 +user1 localhost stage/sql/closing tables 0 +user1 localhost stage/sql/init 0 +user1 localhost stage/sql/Opening tables 0 +user1 localhost stage/sql/starting 0 +user2 localhost stage/sql/checking permissions 0 +user2 localhost stage/sql/closing tables 0 +user2 localhost stage/sql/init 0 +user2 localhost stage/sql/Opening tables 0 +user2 localhost stage/sql/starting 0 +user3 localhost stage/sql/checking permissions 0 +user3 localhost stage/sql/closing tables 0 +user3 localhost stage/sql/init 0 +user3 localhost stage/sql/Opening tables 0 +user3 localhost stage/sql/starting 0 +user4 localhost stage/sql/checking permissions 0 +user4 localhost stage/sql/closing tables 0 +user4 localhost stage/sql/init 0 +user4 localhost stage/sql/Opening tables 0 +user4 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 1 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 1 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 1 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 1 +user4 localhost statement/sp/freturn 1 +user4 localhost statement/sql/insert 1 +user4 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_stages_summary_global_by_event_name; +"================== STAGES_GLOBAL truncated ==================" +"================== Step 23 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 0 +user1 localhost stage/sql/closing tables 0 +user1 localhost stage/sql/init 0 +user1 localhost stage/sql/Opening tables 0 +user1 localhost stage/sql/starting 0 +user2 localhost stage/sql/checking permissions 0 +user2 localhost stage/sql/closing tables 0 +user2 localhost stage/sql/init 0 +user2 localhost stage/sql/Opening tables 0 +user2 localhost stage/sql/starting 0 +user3 localhost stage/sql/checking permissions 0 +user3 localhost stage/sql/closing tables 0 +user3 localhost stage/sql/init 0 +user3 localhost stage/sql/Opening tables 0 +user3 localhost stage/sql/starting 0 +user4 localhost stage/sql/checking permissions 0 +user4 localhost stage/sql/closing tables 0 +user4 localhost stage/sql/init 0 +user4 localhost stage/sql/Opening tables 0 +user4 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 1 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 1 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 1 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 1 +user4 localhost statement/sp/freturn 1 +user4 localhost statement/sql/insert 1 +user4 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_statements_summary_by_thread_by_event_name; +"================== STATEMENTS_BY_THREAD truncated ==================" +"================== Step 24 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 0 +user1 localhost stage/sql/closing tables 0 +user1 localhost stage/sql/init 0 +user1 localhost stage/sql/Opening tables 0 +user1 localhost stage/sql/starting 0 +user2 localhost stage/sql/checking permissions 0 +user2 localhost stage/sql/closing tables 0 +user2 localhost stage/sql/init 0 +user2 localhost stage/sql/Opening tables 0 +user2 localhost stage/sql/starting 0 +user3 localhost stage/sql/checking permissions 0 +user3 localhost stage/sql/closing tables 0 +user3 localhost stage/sql/init 0 +user3 localhost stage/sql/Opening tables 0 +user3 localhost stage/sql/starting 0 +user4 localhost stage/sql/checking permissions 0 +user4 localhost stage/sql/closing tables 0 +user4 localhost stage/sql/init 0 +user4 localhost stage/sql/Opening tables 0 +user4 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 1 +user1 localhost statement/sp/freturn 1 +user1 localhost statement/sql/insert 1 +user1 localhost statement/sql/select 3 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 1 +user2 localhost statement/sp/freturn 1 +user2 localhost statement/sql/insert 1 +user2 localhost statement/sql/select 3 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 1 +user3 localhost statement/sp/freturn 1 +user3 localhost statement/sql/insert 1 +user3 localhost statement/sql/select 3 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 1 +user4 localhost statement/sp/freturn 1 +user4 localhost statement/sql/insert 1 +user4 localhost statement/sql/select 3 +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_statements_summary_by_account_by_event_name; +"================== STATEMENTS_BY_ACCOUNT truncated ==================" +"================== Step 25 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 0 +user1 localhost stage/sql/closing tables 0 +user1 localhost stage/sql/init 0 +user1 localhost stage/sql/Opening tables 0 +user1 localhost stage/sql/starting 0 +user2 localhost stage/sql/checking permissions 0 +user2 localhost stage/sql/closing tables 0 +user2 localhost stage/sql/init 0 +user2 localhost stage/sql/Opening tables 0 +user2 localhost stage/sql/starting 0 +user3 localhost stage/sql/checking permissions 0 +user3 localhost stage/sql/closing tables 0 +user3 localhost stage/sql/init 0 +user3 localhost stage/sql/Opening tables 0 +user3 localhost stage/sql/starting 0 +user4 localhost stage/sql/checking permissions 0 +user4 localhost stage/sql/closing tables 0 +user4 localhost stage/sql/init 0 +user4 localhost stage/sql/Opening tables 0 +user4 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 0 +user1 localhost statement/sp/freturn 0 +user1 localhost statement/sql/insert 0 +user1 localhost statement/sql/select 0 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 0 +user2 localhost statement/sp/freturn 0 +user2 localhost statement/sql/insert 0 +user2 localhost statement/sql/select 0 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 0 +user3 localhost statement/sp/freturn 0 +user3 localhost statement/sql/insert 0 +user3 localhost statement/sql/select 0 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 0 +user4 localhost statement/sp/freturn 0 +user4 localhost statement/sql/insert 0 +user4 localhost statement/sql/select 0 +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_statements_summary_by_user_by_event_name; +"================== STATEMENTS_BY_USER truncated ==================" +"================== Step 26 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 0 +user1 localhost stage/sql/closing tables 0 +user1 localhost stage/sql/init 0 +user1 localhost stage/sql/Opening tables 0 +user1 localhost stage/sql/starting 0 +user2 localhost stage/sql/checking permissions 0 +user2 localhost stage/sql/closing tables 0 +user2 localhost stage/sql/init 0 +user2 localhost stage/sql/Opening tables 0 +user2 localhost stage/sql/starting 0 +user3 localhost stage/sql/checking permissions 0 +user3 localhost stage/sql/closing tables 0 +user3 localhost stage/sql/init 0 +user3 localhost stage/sql/Opening tables 0 +user3 localhost stage/sql/starting 0 +user4 localhost stage/sql/checking permissions 0 +user4 localhost stage/sql/closing tables 0 +user4 localhost stage/sql/init 0 +user4 localhost stage/sql/Opening tables 0 +user4 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 0 +user1 localhost statement/sp/freturn 0 +user1 localhost statement/sql/insert 0 +user1 localhost statement/sql/select 0 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 0 +user2 localhost statement/sp/freturn 0 +user2 localhost statement/sql/insert 0 +user2 localhost statement/sql/select 0 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 0 +user3 localhost statement/sp/freturn 0 +user3 localhost statement/sql/insert 0 +user3 localhost statement/sql/select 0 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 0 +user4 localhost statement/sp/freturn 0 +user4 localhost statement/sql/insert 0 +user4 localhost statement/sql/select 0 +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_statements_summary_by_host_by_event_name; +"================== STATEMENTS_BY_HOST truncated ==================" +"================== Step 27 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 0 +user1 localhost stage/sql/closing tables 0 +user1 localhost stage/sql/init 0 +user1 localhost stage/sql/Opening tables 0 +user1 localhost stage/sql/starting 0 +user2 localhost stage/sql/checking permissions 0 +user2 localhost stage/sql/closing tables 0 +user2 localhost stage/sql/init 0 +user2 localhost stage/sql/Opening tables 0 +user2 localhost stage/sql/starting 0 +user3 localhost stage/sql/checking permissions 0 +user3 localhost stage/sql/closing tables 0 +user3 localhost stage/sql/init 0 +user3 localhost stage/sql/Opening tables 0 +user3 localhost stage/sql/starting 0 +user4 localhost stage/sql/checking permissions 0 +user4 localhost stage/sql/closing tables 0 +user4 localhost stage/sql/init 0 +user4 localhost stage/sql/Opening tables 0 +user4 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 0 +user1 localhost statement/sp/freturn 0 +user1 localhost statement/sql/insert 0 +user1 localhost statement/sql/select 0 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 0 +user2 localhost statement/sp/freturn 0 +user2 localhost statement/sql/insert 0 +user2 localhost statement/sql/select 0 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 0 +user3 localhost statement/sp/freturn 0 +user3 localhost statement/sql/insert 0 +user3 localhost statement/sql/select 0 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 0 +user4 localhost statement/sp/freturn 0 +user4 localhost statement/sql/insert 0 +user4 localhost statement/sql/select 0 +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_statements_summary_global_by_event_name; +"================== STATEMENTS_GLOBAL truncated ==================" +"================== Step 28 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 0 +user1 localhost stage/sql/closing tables 0 +user1 localhost stage/sql/init 0 +user1 localhost stage/sql/Opening tables 0 +user1 localhost stage/sql/starting 0 +user2 localhost stage/sql/checking permissions 0 +user2 localhost stage/sql/closing tables 0 +user2 localhost stage/sql/init 0 +user2 localhost stage/sql/Opening tables 0 +user2 localhost stage/sql/starting 0 +user3 localhost stage/sql/checking permissions 0 +user3 localhost stage/sql/closing tables 0 +user3 localhost stage/sql/init 0 +user3 localhost stage/sql/Opening tables 0 +user3 localhost stage/sql/starting 0 +user4 localhost stage/sql/checking permissions 0 +user4 localhost stage/sql/closing tables 0 +user4 localhost stage/sql/init 0 +user4 localhost stage/sql/Opening tables 0 +user4 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 0 +user1 localhost statement/sp/freturn 0 +user1 localhost statement/sql/insert 0 +user1 localhost statement/sql/select 0 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 0 +user2 localhost statement/sp/freturn 0 +user2 localhost statement/sql/insert 0 +user2 localhost statement/sql/select 0 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 0 +user3 localhost statement/sp/freturn 0 +user3 localhost statement/sql/insert 0 +user3 localhost statement/sql/select 0 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 0 +user4 localhost statement/sp/freturn 0 +user4 localhost statement/sql/insert 0 +user4 localhost statement/sql/select 0 +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_transactions_summary_by_thread_by_event_name; +"================== TRANSACTIONS_BY_THREAD truncated ==================" +"================== Step 29 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 0 +user1 localhost stage/sql/closing tables 0 +user1 localhost stage/sql/init 0 +user1 localhost stage/sql/Opening tables 0 +user1 localhost stage/sql/starting 0 +user2 localhost stage/sql/checking permissions 0 +user2 localhost stage/sql/closing tables 0 +user2 localhost stage/sql/init 0 +user2 localhost stage/sql/Opening tables 0 +user2 localhost stage/sql/starting 0 +user3 localhost stage/sql/checking permissions 0 +user3 localhost stage/sql/closing tables 0 +user3 localhost stage/sql/init 0 +user3 localhost stage/sql/Opening tables 0 +user3 localhost stage/sql/starting 0 +user4 localhost stage/sql/checking permissions 0 +user4 localhost stage/sql/closing tables 0 +user4 localhost stage/sql/init 0 +user4 localhost stage/sql/Opening tables 0 +user4 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 0 +user1 localhost statement/sp/freturn 0 +user1 localhost statement/sql/insert 0 +user1 localhost statement/sql/select 0 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 0 +user2 localhost statement/sp/freturn 0 +user2 localhost statement/sql/insert 0 +user2 localhost statement/sql/select 0 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 0 +user3 localhost statement/sp/freturn 0 +user3 localhost statement/sql/insert 0 +user3 localhost statement/sql/select 0 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 0 +user4 localhost statement/sp/freturn 0 +user4 localhost statement/sql/insert 0 +user4 localhost statement/sql/select 0 +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 2 +user2 localhost transaction 2 +user3 localhost transaction 2 +user4 localhost transaction 2 +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_transactions_summary_by_account_by_event_name; +"================== TRANSACTIONS_BY_ACCOUNT truncated ==================" +"================== Step 30 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 0 +user1 localhost stage/sql/closing tables 0 +user1 localhost stage/sql/init 0 +user1 localhost stage/sql/Opening tables 0 +user1 localhost stage/sql/starting 0 +user2 localhost stage/sql/checking permissions 0 +user2 localhost stage/sql/closing tables 0 +user2 localhost stage/sql/init 0 +user2 localhost stage/sql/Opening tables 0 +user2 localhost stage/sql/starting 0 +user3 localhost stage/sql/checking permissions 0 +user3 localhost stage/sql/closing tables 0 +user3 localhost stage/sql/init 0 +user3 localhost stage/sql/Opening tables 0 +user3 localhost stage/sql/starting 0 +user4 localhost stage/sql/checking permissions 0 +user4 localhost stage/sql/closing tables 0 +user4 localhost stage/sql/init 0 +user4 localhost stage/sql/Opening tables 0 +user4 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 0 +user1 localhost statement/sp/freturn 0 +user1 localhost statement/sql/insert 0 +user1 localhost statement/sql/select 0 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 0 +user2 localhost statement/sp/freturn 0 +user2 localhost statement/sql/insert 0 +user2 localhost statement/sql/select 0 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 0 +user3 localhost statement/sp/freturn 0 +user3 localhost statement/sql/insert 0 +user3 localhost statement/sql/select 0 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 0 +user4 localhost statement/sp/freturn 0 +user4 localhost statement/sql/insert 0 +user4 localhost statement/sql/select 0 +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 0 +user2 localhost transaction 0 +user3 localhost transaction 0 +user4 localhost transaction 0 +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_transactions_summary_by_user_by_event_name; +"================== TRANSACTIONS_BY_USER truncated ==================" +"================== Step 31 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 0 +user1 localhost stage/sql/closing tables 0 +user1 localhost stage/sql/init 0 +user1 localhost stage/sql/Opening tables 0 +user1 localhost stage/sql/starting 0 +user2 localhost stage/sql/checking permissions 0 +user2 localhost stage/sql/closing tables 0 +user2 localhost stage/sql/init 0 +user2 localhost stage/sql/Opening tables 0 +user2 localhost stage/sql/starting 0 +user3 localhost stage/sql/checking permissions 0 +user3 localhost stage/sql/closing tables 0 +user3 localhost stage/sql/init 0 +user3 localhost stage/sql/Opening tables 0 +user3 localhost stage/sql/starting 0 +user4 localhost stage/sql/checking permissions 0 +user4 localhost stage/sql/closing tables 0 +user4 localhost stage/sql/init 0 +user4 localhost stage/sql/Opening tables 0 +user4 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 0 +user1 localhost statement/sp/freturn 0 +user1 localhost statement/sql/insert 0 +user1 localhost statement/sql/select 0 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 0 +user2 localhost statement/sp/freturn 0 +user2 localhost statement/sql/insert 0 +user2 localhost statement/sql/select 0 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 0 +user3 localhost statement/sp/freturn 0 +user3 localhost statement/sql/insert 0 +user3 localhost statement/sql/select 0 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 0 +user4 localhost statement/sp/freturn 0 +user4 localhost statement/sql/insert 0 +user4 localhost statement/sql/select 0 +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 0 +user2 localhost transaction 0 +user3 localhost transaction 0 +user4 localhost transaction 0 +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_transactions_summary_by_host_by_event_name; +"================== TRANSACTIONS_BY_HOST truncated ==================" +"================== Step 32 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 0 +user1 localhost stage/sql/closing tables 0 +user1 localhost stage/sql/init 0 +user1 localhost stage/sql/Opening tables 0 +user1 localhost stage/sql/starting 0 +user2 localhost stage/sql/checking permissions 0 +user2 localhost stage/sql/closing tables 0 +user2 localhost stage/sql/init 0 +user2 localhost stage/sql/Opening tables 0 +user2 localhost stage/sql/starting 0 +user3 localhost stage/sql/checking permissions 0 +user3 localhost stage/sql/closing tables 0 +user3 localhost stage/sql/init 0 +user3 localhost stage/sql/Opening tables 0 +user3 localhost stage/sql/starting 0 +user4 localhost stage/sql/checking permissions 0 +user4 localhost stage/sql/closing tables 0 +user4 localhost stage/sql/init 0 +user4 localhost stage/sql/Opening tables 0 +user4 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 0 +user1 localhost statement/sp/freturn 0 +user1 localhost statement/sql/insert 0 +user1 localhost statement/sql/select 0 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 0 +user2 localhost statement/sp/freturn 0 +user2 localhost statement/sql/insert 0 +user2 localhost statement/sql/select 0 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 0 +user3 localhost statement/sp/freturn 0 +user3 localhost statement/sql/insert 0 +user3 localhost statement/sql/select 0 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 0 +user4 localhost statement/sp/freturn 0 +user4 localhost statement/sql/insert 0 +user4 localhost statement/sql/select 0 +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 0 +user2 localhost transaction 0 +user3 localhost transaction 0 +user4 localhost transaction 0 +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 8 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.events_transactions_summary_global_by_event_name; +"================== TRANSACTIONS_GLOBAL truncated ==================" +"================== Step 33 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +user1 localhost wait/io/file/sql/query_log 0 +user1 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user2 localhost wait/io/file/sql/query_log 0 +user2 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user3 localhost wait/io/file/sql/query_log 0 +user3 localhost wait/synch/rwlock/sql/LOCK_grant 0 +user4 localhost wait/io/file/sql/query_log 0 +user4 localhost wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +user1 localhost stage/sql/checking permissions 0 +user1 localhost stage/sql/closing tables 0 +user1 localhost stage/sql/init 0 +user1 localhost stage/sql/Opening tables 0 +user1 localhost stage/sql/starting 0 +user2 localhost stage/sql/checking permissions 0 +user2 localhost stage/sql/closing tables 0 +user2 localhost stage/sql/init 0 +user2 localhost stage/sql/Opening tables 0 +user2 localhost stage/sql/starting 0 +user3 localhost stage/sql/checking permissions 0 +user3 localhost stage/sql/closing tables 0 +user3 localhost stage/sql/init 0 +user3 localhost stage/sql/Opening tables 0 +user3 localhost stage/sql/starting 0 +user4 localhost stage/sql/checking permissions 0 +user4 localhost stage/sql/closing tables 0 +user4 localhost stage/sql/init 0 +user4 localhost stage/sql/Opening tables 0 +user4 localhost stage/sql/starting 0 +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +user1 localhost statement/com/Error 0 +user1 localhost statement/com/Quit 0 +user1 localhost statement/sp/freturn 0 +user1 localhost statement/sql/insert 0 +user1 localhost statement/sql/select 0 +user2 localhost statement/com/Error 0 +user2 localhost statement/com/Quit 0 +user2 localhost statement/sp/freturn 0 +user2 localhost statement/sql/insert 0 +user2 localhost statement/sql/select 0 +user3 localhost statement/com/Error 0 +user3 localhost statement/com/Quit 0 +user3 localhost statement/sp/freturn 0 +user3 localhost statement/sql/insert 0 +user3 localhost statement/sql/select 0 +user4 localhost statement/com/Error 0 +user4 localhost statement/com/Quit 0 +user4 localhost statement/sp/freturn 0 +user4 localhost statement/sql/insert 0 +user4 localhost statement/sql/select 0 +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +user1 localhost transaction 0 +user2 localhost transaction 0 +user3 localhost transaction 0 +user4 localhost transaction 0 +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 0 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.accounts; +"================== ACCOUNTS truncated ==================" +"================== Step 34 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 0 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.users; +"================== USERS truncated ==================" +"================== Step 35 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 0 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.hosts; +"================== HOSTS truncated ==================" +"================== Step 36 ==================" +call dump_thread(); +username status +user1 not found +username status +user2 not found +username status +user3 not found +username status +user4 not found +execute dump_waits_account; +user host event_name count_star +execute dump_waits_user; +user event_name count_star +execute dump_waits_host; +host event_name count_star +execute dump_waits_global; +event_name count_star +wait/io/file/sql/query_log 0 +wait/synch/rwlock/sql/LOCK_grant 0 +execute dump_waits_history; +event_name count(event_name) +wait/io/file/sql/query_log 32 +wait/synch/rwlock/sql/LOCK_grant 4 +execute dump_stages_account; +user host event_name count_star +execute dump_stages_user; +user event_name count_star +execute dump_stages_host; +host event_name count_star +execute dump_stages_global; +event_name count_star +stage/sql/checking permissions 0 +stage/sql/closing tables 0 +stage/sql/init 0 +stage/sql/Opening tables 0 +stage/sql/starting 0 +execute dump_stages_history; +event_name count(event_name) +stage/sql/checking permissions 16 +stage/sql/closing tables 41 +stage/sql/init 12 +stage/sql/Opening tables 25 +stage/sql/starting 28 +execute dump_statements_account; +user host event_name count_star +execute dump_statements_user; +user event_name count_star +execute dump_statements_host; +host event_name count_star +execute dump_statements_global; +event_name count_star +statement/com/Error 0 +statement/com/Quit 0 +statement/sp/freturn 0 +statement/sql/insert 0 +statement/sql/select 0 +execute dump_statements_history; +event_name count(event_name) +statement/com/Quit 4 +statement/sp/freturn 4 +statement/sql/insert 4 +statement/sql/select 12 +execute dump_transactions_account; +user host event_name count_star +execute dump_transactions_user; +user event_name count_star +execute dump_transactions_host; +host event_name count_star +execute dump_transactions_global; +event_name count_star +transaction 0 +execute dump_transactions_history; +event_name count(event_name) +transaction 8 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS diff --git a/mysql-test/suite/perfschema/r/file_misc.result b/mysql-test/suite/perfschema/r/file_misc.result new file mode 100644 index 00000000..31094e64 --- /dev/null +++ b/mysql-test/suite/perfschema/r/file_misc.result @@ -0,0 +1 @@ +select * from information_schema.columns ORDER BY table_name; diff --git a/mysql-test/suite/perfschema/r/func_file_io.result b/mysql-test/suite/perfschema/r/func_file_io.result new file mode 100644 index 00000000..880e0036 --- /dev/null +++ b/mysql-test/suite/perfschema/r/func_file_io.result @@ -0,0 +1,164 @@ +UPDATE performance_schema.setup_instruments SET enabled = 'NO', timed = 'YES'; +UPDATE performance_schema.setup_instruments SET enabled = 'YES' +WHERE name LIKE 'wait/io/file/%'; +update performance_schema.threads SET instrumented = 'YES' + WHERE PROCESSLIST_ID=connection_id(); +truncate table performance_schema.events_statements_summary_by_digest; +flush status; +DROP TABLE IF EXISTS t1; +CREATE TABLE t1 (id INT PRIMARY KEY, b CHAR(100) DEFAULT 'initial value') +ENGINE=MyISAM; +INSERT INTO t1 (id) VALUES (1), (2), (3), (4), (5), (6), (7), (8); +TRUNCATE TABLE performance_schema.events_waits_history_long; +TRUNCATE TABLE performance_schema.events_waits_history; +TRUNCATE TABLE performance_schema.events_waits_current; +SELECT * FROM t1 WHERE id = 1; +id b +1 initial value +SET @before_count = (SELECT SUM(TIMER_WAIT) +FROM performance_schema.events_waits_history_long +WHERE (EVENT_NAME = 'wait/io/file/myisam/dfile') +AND (OBJECT_NAME LIKE '%t1.MYD')); +SELECT (@before_count >= 0) as have_before_count; +have_before_count +1 +SELECT IF(@before_count > 0, 'Success', 'Failure') has_instrumentation; +has_instrumentation +Success +SELECT * FROM t1 WHERE id < 4; +id b +1 initial value +2 initial value +3 initial value +SET @after_count = (SELECT SUM(TIMER_WAIT) +FROM performance_schema.events_waits_history_long +WHERE (EVENT_NAME = 'wait/io/file/myisam/dfile') +AND (OBJECT_NAME LIKE '%t1.MYD') AND (1 = 1)); +SELECT (@after_count >= 0) as have_after_count; +have_after_count +1 +SELECT IF((@after_count - @before_count) > 0, 'Success', 'Failure') test_ff1_timed; +test_ff1_timed +Success +UPDATE performance_schema.setup_instruments SET enabled='NO'; +SET @before_count = (SELECT SUM(TIMER_WAIT) +FROM performance_schema.events_waits_history_long +WHERE (EVENT_NAME = 'wait/io/file/myisam/dfile') +AND (OBJECT_NAME LIKE '%t1.MYD') AND (2 = 2)); +SELECT (@before_count >= 0) as have_before_count; +have_before_count +1 +SELECT * FROM t1 WHERE id < 6; +id b +1 initial value +2 initial value +3 initial value +4 initial value +5 initial value +SET @after_count = (SELECT SUM(TIMER_WAIT) +FROM performance_schema.events_waits_history_long +WHERE (EVENT_NAME = 'wait/io/file/myisam/dfile') +AND (OBJECT_NAME LIKE '%t1.MYD') AND (3 = 3)); +SELECT (@after_count >= 0) as have_after_count; +have_after_count +1 +SELECT IF((COALESCE(@after_count, 0) - COALESCE(@before_count, 0)) = 0, 'Success', 'Failure') test_ff2_timed; +test_ff2_timed +Success +UPDATE performance_schema.setup_instruments SET enabled = 'YES' +WHERE name LIKE 'wait/io/file/%'; +UPDATE performance_schema.setup_instruments SET timed = 'NO'; +TRUNCATE TABLE performance_schema.events_waits_history_long; +TRUNCATE TABLE performance_schema.events_waits_history; +TRUNCATE TABLE performance_schema.events_waits_current; +SELECT * FROM t1 WHERE id > 4; +id b +5 initial value +6 initial value +7 initial value +8 initial value +SELECT * FROM performance_schema.events_waits_history_long +WHERE TIMER_WAIT != NULL +OR TIMER_START != NULL +OR TIMER_END != NULL; +THREAD_ID EVENT_ID END_EVENT_ID EVENT_NAME SOURCE TIMER_START TIMER_END TIMER_WAIT SPINS OBJECT_SCHEMA OBJECT_NAME INDEX_NAME OBJECT_TYPE OBJECT_INSTANCE_BEGIN NESTING_EVENT_ID NESTING_EVENT_TYPE OPERATION NUMBER_OF_BYTES FLAGS +SELECT * FROM performance_schema.events_waits_history +WHERE TIMER_WAIT != NULL +OR TIMER_START != NULL +OR TIMER_END != NULL; +THREAD_ID EVENT_ID END_EVENT_ID EVENT_NAME SOURCE TIMER_START TIMER_END TIMER_WAIT SPINS OBJECT_SCHEMA OBJECT_NAME INDEX_NAME OBJECT_TYPE OBJECT_INSTANCE_BEGIN NESTING_EVENT_ID NESTING_EVENT_TYPE OPERATION NUMBER_OF_BYTES FLAGS +SELECT * FROM performance_schema.events_waits_current +WHERE TIMER_WAIT != NULL +OR TIMER_START != NULL +OR TIMER_END != NULL; +THREAD_ID EVENT_ID END_EVENT_ID EVENT_NAME SOURCE TIMER_START TIMER_END TIMER_WAIT SPINS OBJECT_SCHEMA OBJECT_NAME INDEX_NAME OBJECT_TYPE OBJECT_INSTANCE_BEGIN NESTING_EVENT_ID NESTING_EVENT_TYPE OPERATION NUMBER_OF_BYTES FLAGS +UPDATE performance_schema.setup_instruments SET timed = 'YES'; +SELECT * FROM t1 WHERE id < 4; +id b +1 initial value +2 initial value +3 initial value +DROP TABLE t1; +SELECT SUM(COUNT_READ) AS sum_count_read, +SUM(COUNT_WRITE) AS sum_count_write, +SUM(SUM_NUMBER_OF_BYTES_READ) AS sum_num_bytes_read, +SUM(SUM_NUMBER_OF_BYTES_WRITE) AS sum_num_bytes_write +FROM performance_schema.file_summary_by_instance +WHERE FILE_NAME LIKE CONCAT('%', @@tmpdir, '%') ORDER BY NULL; +SELECT EVENT_NAME, COUNT_STAR, AVG_TIMER_WAIT, SUM_TIMER_WAIT +FROM performance_schema.events_waits_summary_global_by_event_name +WHERE COUNT_STAR > 0 +ORDER BY SUM_TIMER_WAIT DESC +LIMIT 10; +SELECT p.processlist_user, SUM(TIMER_WAIT) SUM_WAIT +# ((TIME_TO_SEC(TIMEDIFF(NOW(), i.startup_time)) * 1000) / SUM(TIMER_WAIT)) * 100 WAIT_PERCENTAGE +FROM performance_schema.events_waits_history_long h +INNER JOIN performance_schema.threads p USING (THREAD_ID) +GROUP BY p.processlist_user +ORDER BY SUM_WAIT DESC +LIMIT 20; +SELECT h.EVENT_NAME, SUM(h.TIMER_WAIT) TOTAL_WAIT +FROM performance_schema.events_waits_history_long h +INNER JOIN performance_schema.threads p USING (THREAD_ID) +WHERE p.PROCESSLIST_ID = 1 +GROUP BY h.EVENT_NAME +HAVING TOTAL_WAIT > 0; +SELECT p.processlist_user, h.operation, SUM(NUMBER_OF_BYTES) bytes +FROM performance_schema.events_waits_history_long h +INNER JOIN performance_schema.threads p USING (THREAD_ID) +GROUP BY p.processlist_user, h.operation +HAVING BYTES > 0 +ORDER BY p.processlist_user, h.operation; +UPDATE performance_schema.setup_instruments SET enabled = 'YES', timed = 'YES'; +show global status like "performance_schema%"; +Variable_name Value +Performance_schema_accounts_lost 0 +Performance_schema_cond_classes_lost 0 +Performance_schema_cond_instances_lost 0 +Performance_schema_digest_lost 0 +Performance_schema_file_classes_lost 0 +Performance_schema_file_handles_lost 0 +Performance_schema_file_instances_lost 0 +Performance_schema_hosts_lost 0 +Performance_schema_index_stat_lost 0 +Performance_schema_locker_lost 0 +Performance_schema_memory_classes_lost 0 +Performance_schema_metadata_lock_lost 0 +Performance_schema_mutex_classes_lost 0 +Performance_schema_mutex_instances_lost 0 +Performance_schema_nested_statement_lost 0 +Performance_schema_prepared_statements_lost 0 +Performance_schema_program_lost 0 +Performance_schema_rwlock_classes_lost 0 +Performance_schema_rwlock_instances_lost 0 +Performance_schema_session_connect_attrs_lost 0 +Performance_schema_socket_classes_lost 0 +Performance_schema_socket_instances_lost 0 +Performance_schema_stage_classes_lost 0 +Performance_schema_statement_classes_lost 0 +Performance_schema_table_handles_lost 0 +Performance_schema_table_instances_lost 0 +Performance_schema_table_lock_stat_lost 0 +Performance_schema_thread_classes_lost 0 +Performance_schema_thread_instances_lost 0 +Performance_schema_users_lost 0 diff --git a/mysql-test/suite/perfschema/r/func_mutex.result b/mysql-test/suite/perfschema/r/func_mutex.result new file mode 100644 index 00000000..b5c5e33f --- /dev/null +++ b/mysql-test/suite/perfschema/r/func_mutex.result @@ -0,0 +1,139 @@ +UPDATE performance_schema.setup_instruments SET enabled = 'NO', timed = 'YES'; +UPDATE performance_schema.setup_instruments SET enabled = 'YES' +WHERE name LIKE 'wait/synch/mutex/%' + OR name LIKE 'wait/synch/rwlock/%'; +truncate table performance_schema.events_statements_summary_by_digest; +flush status; +select NAME from performance_schema.mutex_instances +where NAME = 'wait/synch/mutex/mysys/THR_LOCK::mutex' GROUP BY NAME; +NAME +wait/synch/mutex/mysys/THR_LOCK::mutex +select NAME from performance_schema.rwlock_instances +where NAME = 'wait/synch/rwlock/sql/LOCK_grant' limit 1; +NAME +wait/synch/rwlock/sql/LOCK_grant +DROP TABLE IF EXISTS t1; +CREATE TABLE t1 (id INT PRIMARY KEY, b CHAR(100) DEFAULT 'initial value') +ENGINE=MyISAM; +INSERT INTO t1 (id) VALUES (1), (2), (3), (4), (5), (6), (7), (8); +TRUNCATE TABLE performance_schema.events_waits_history_long; +TRUNCATE TABLE performance_schema.events_waits_history; +TRUNCATE TABLE performance_schema.events_waits_current; +SELECT * FROM t1 WHERE id = 1; +id b +1 initial value +SET @before_count = (SELECT SUM(TIMER_WAIT) +FROM performance_schema.events_waits_history_long +WHERE (EVENT_NAME = 'wait/synch/mutex/mysys/THR_LOCK::mutex')); +SELECT * FROM t1; +id b +1 initial value +2 initial value +3 initial value +4 initial value +5 initial value +6 initial value +7 initial value +8 initial value +SET @after_count = (SELECT SUM(TIMER_WAIT) +FROM performance_schema.events_waits_history_long +WHERE (EVENT_NAME = 'wait/synch/mutex/mysys/THR_LOCK::mutex')); +SELECT IF((@after_count - @before_count) > 0, 'Success', 'Failure') test_fm1_timed; +test_fm1_timed +Success +UPDATE performance_schema.setup_instruments SET enabled = 'NO' +WHERE NAME = 'wait/synch/mutex/mysys/THR_LOCK::mutex'; +TRUNCATE TABLE performance_schema.events_waits_history_long; +TRUNCATE TABLE performance_schema.events_waits_history; +TRUNCATE TABLE performance_schema.events_waits_current; +SELECT * FROM t1 WHERE id = 1; +id b +1 initial value +SET @before_count = (SELECT SUM(TIMER_WAIT) +FROM performance_schema.events_waits_history_long +WHERE (EVENT_NAME = 'wait/synch/mutex/mysys/THR_LOCK::mutex')); +SELECT * FROM t1; +id b +1 initial value +2 initial value +3 initial value +4 initial value +5 initial value +6 initial value +7 initial value +8 initial value +SET @after_count = (SELECT SUM(TIMER_WAIT) +FROM performance_schema.events_waits_history_long +WHERE (EVENT_NAME = 'wait/synch/mutex/mysys/THR_LOCK::mutex')); +SELECT IF((COALESCE(@after_count, 0) - COALESCE(@before_count, 0)) = 0, 'Success', 'Failure') test_fm2_timed; +test_fm2_timed +Success +TRUNCATE TABLE performance_schema.events_waits_history_long; +TRUNCATE TABLE performance_schema.events_waits_history; +TRUNCATE TABLE performance_schema.events_waits_current; +show variables like "%not_found%"; +Variable_name Value +SET @before_count = (SELECT SUM(TIMER_WAIT) +FROM performance_schema.events_waits_history_long +WHERE (EVENT_NAME = 'wait/synch/rwlock/sql/LOCK_system_variables_hash')); +show variables like "%not_found%"; +Variable_name Value +SET @after_count = (SELECT SUM(TIMER_WAIT) +FROM performance_schema.events_waits_history_long +WHERE (EVENT_NAME = 'wait/synch/rwlock/sql/LOCK_system_variables_hash')); +SELECT IF((@after_count - @before_count) > 0, 'Success', 'Failure') test_fm1_rw_timed; +test_fm1_rw_timed +Success +UPDATE performance_schema.setup_instruments SET enabled = 'NO' +WHERE NAME = 'wait/synch/rwlock/sql/LOCK_system_variables_hash'; +TRUNCATE TABLE performance_schema.events_waits_history_long; +TRUNCATE TABLE performance_schema.events_waits_history; +TRUNCATE TABLE performance_schema.events_waits_current; +show variables like "%not_found%"; +Variable_name Value +SET @before_count = (SELECT SUM(TIMER_WAIT) +FROM performance_schema.events_waits_history_long +WHERE (EVENT_NAME = 'wait/synch/rwlock/sql/LOCK_system_variables_hash')); +show variables like "%not_found%"; +Variable_name Value +SET @after_count = (SELECT SUM(TIMER_WAIT) +FROM performance_schema.events_waits_history_long +WHERE (EVENT_NAME = 'LOCK_system_variables_hash')); +SELECT IF((COALESCE(@after_count, 0) - COALESCE(@before_count, 0)) = 0, 'Success', 'Failure') test_fm2_rw_timed; +test_fm2_rw_timed +Success +UPDATE performance_schema.setup_instruments SET enabled = 'YES'; +DROP TABLE t1; +UPDATE performance_schema.setup_instruments SET enabled = 'YES', timed = 'YES'; +show global status like "performance_schema%"; +Variable_name Value +Performance_schema_accounts_lost 0 +Performance_schema_cond_classes_lost 0 +Performance_schema_cond_instances_lost 0 +Performance_schema_digest_lost 0 +Performance_schema_file_classes_lost 0 +Performance_schema_file_handles_lost 0 +Performance_schema_file_instances_lost 0 +Performance_schema_hosts_lost 0 +Performance_schema_index_stat_lost 0 +Performance_schema_locker_lost 0 +Performance_schema_memory_classes_lost 0 +Performance_schema_metadata_lock_lost 0 +Performance_schema_mutex_classes_lost 0 +Performance_schema_mutex_instances_lost 0 +Performance_schema_nested_statement_lost 0 +Performance_schema_prepared_statements_lost 0 +Performance_schema_program_lost 0 +Performance_schema_rwlock_classes_lost 0 +Performance_schema_rwlock_instances_lost 0 +Performance_schema_session_connect_attrs_lost 0 +Performance_schema_socket_classes_lost 0 +Performance_schema_socket_instances_lost 0 +Performance_schema_stage_classes_lost 0 +Performance_schema_statement_classes_lost 0 +Performance_schema_table_handles_lost 0 +Performance_schema_table_instances_lost 0 +Performance_schema_table_lock_stat_lost 0 +Performance_schema_thread_classes_lost 0 +Performance_schema_thread_instances_lost 0 +Performance_schema_users_lost 0 diff --git a/mysql-test/suite/perfschema/r/global_objects.result b/mysql-test/suite/perfschema/r/global_objects.result new file mode 100644 index 00000000..dd53a11d --- /dev/null +++ b/mysql-test/suite/perfschema/r/global_objects.result @@ -0,0 +1,33 @@ +select count(*) from performance_schema.setup_instruments +where enabled='YES' + and name like "wait/%"; +count(*) +0 +select count(*) > 0 from performance_schema.mutex_instances; +count(*) > 0 +1 +select count(*) > 0 from performance_schema.rwlock_instances; +count(*) > 0 +1 +select count(*) > 0 from performance_schema.cond_instances; +count(*) > 0 +1 +select count(*) > 0 from performance_schema.socket_instances; +count(*) > 0 +1 +select NAME from performance_schema.mutex_instances +where NAME = "wait/synch/mutex/sql/LOCK_gdl"; +NAME +wait/synch/mutex/sql/LOCK_gdl +select NAME from performance_schema.rwlock_instances +where NAME = "wait/synch/rwlock/sql/LOCK_system_variables_hash"; +NAME +wait/synch/rwlock/sql/LOCK_system_variables_hash +select NAME from performance_schema.cond_instances +where NAME = "wait/synch/cond/sql/COND_server_started"; +NAME +wait/synch/cond/sql/COND_server_started +select EVENT_NAME from performance_schema.socket_instances +where EVENT_NAME = "wait/io/socket/sql/client_connection"; +EVENT_NAME +wait/io/socket/sql/client_connection diff --git a/mysql-test/suite/perfschema/r/global_read_lock.result b/mysql-test/suite/perfschema/r/global_read_lock.result new file mode 100644 index 00000000..31e1751d --- /dev/null +++ b/mysql-test/suite/perfschema/r/global_read_lock.result @@ -0,0 +1,39 @@ +use performance_schema; +update performance_schema.setup_instruments set enabled='YES'; +create user pfsuser@localhost; +grant SELECT, UPDATE, LOCK TABLES on performance_schema.* to pfsuser@localhost; +flush privileges; +connect con1, localhost, pfsuser, ,"*NO-ONE*"; +lock tables performance_schema.setup_instruments read; +select * from performance_schema.setup_instruments; +unlock tables; +lock tables performance_schema.setup_instruments write; +update performance_schema.setup_instruments set enabled='NO'; +update performance_schema.setup_instruments set enabled='YES'; +unlock tables; +connection default; +flush tables with read lock; +connection con1; +lock tables performance_schema.setup_instruments read; +select * from performance_schema.setup_instruments; +unlock tables; +lock tables performance_schema.setup_instruments write; +connection default; +select event_name, +left(source, locate(":", source)) as short_source, +if(timer_end IS NULL, NULL, "SET") as timer_end, +if(timer_wait IS NULL, NULL, "SET") as timer_wait, +operation +from performance_schema.events_waits_current +where event_name like "wait/synch/cond/sql/MDL_context::COND_wait_status"; +event_name short_source timer_end timer_wait operation +wait/synch/cond/sql/MDL_context::COND_wait_status SET SET timed_wait +unlock tables; +connection con1; +update performance_schema.setup_instruments set enabled='NO'; +update performance_schema.setup_instruments set enabled='YES'; +unlock tables; +disconnect con1; +connection default; +drop user pfsuser@localhost; +flush privileges; diff --git a/mysql-test/suite/perfschema/r/grant.result b/mysql-test/suite/perfschema/r/grant.result new file mode 100644 index 00000000..46794992 --- /dev/null +++ b/mysql-test/suite/perfschema/r/grant.result @@ -0,0 +1,7 @@ +create user a@localhost; +connect a,localhost,a; +select * from performance_schema.global_status where variable_name='b'; +VARIABLE_NAME VARIABLE_VALUE +connection default; +disconnect a; +drop user a@localhost; diff --git a/mysql-test/suite/perfschema/r/hostcache_ipv4_addrinfo_again_allow.result b/mysql-test/suite/perfschema/r/hostcache_ipv4_addrinfo_again_allow.result new file mode 100644 index 00000000..d84d6a72 --- /dev/null +++ b/mysql-test/suite/perfschema/r/hostcache_ipv4_addrinfo_again_allow.result @@ -0,0 +1,103 @@ +call mtr.add_suppression("santa.claus.ipv4.example.com"); +flush status; +flush hosts; +flush user_resources; +flush privileges; +select `User`, `Host` from mysql.`user` where `host` like '%\\%%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '192.%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '2001:%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like 'santa.claus.%'; +User Host +create user 'root'@'192.0.2.4'; +grant select on test.* to 'root'@'192.0.2.4'; +connect con1,"127.0.0.1",root,,test,$MASTER_MYPORT,; +select "Con1 is alive"; +Con1 is alive +Con1 is alive +select current_user(); +current_user() +root@localhost +disconnect con1; +connection default; +SET @saved_dbug = @@GLOBAL.debug_dbug; +set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_fake_ipv4,getaddrinfo_error_again"; +connect con2,"127.0.0.1",root,,test,$MASTER_MYPORT,; +select "Con2 is alive"; +Con2 is alive +Con2 is alive +select current_user(); +current_user() +root@192.0.2.4 +disconnect con2; +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST NULL +HOST_VALIDATED NO +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 1 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +connect con3,"127.0.0.1",root,,test,$MASTER_MYPORT,; +select "Con3 is alive"; +Con3 is alive +Con3 is alive +select current_user(); +current_user() +root@192.0.2.4 +disconnect con3; +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST NULL +HOST_VALIDATED NO +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 2 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +revoke select on test.* from 'root'@'192.0.2.4'; +drop user 'root'@'192.0.2.4'; +SET @@GLOBAL.debug_dbug = @saved_dbug; diff --git a/mysql-test/suite/perfschema/r/hostcache_ipv4_addrinfo_again_deny.result b/mysql-test/suite/perfschema/r/hostcache_ipv4_addrinfo_again_deny.result new file mode 100644 index 00000000..10861f5e --- /dev/null +++ b/mysql-test/suite/perfschema/r/hostcache_ipv4_addrinfo_again_deny.result @@ -0,0 +1,85 @@ +call mtr.add_suppression("santa.claus.ipv4.example.com"); +flush status; +flush hosts; +flush user_resources; +flush privileges; +select `User`, `Host` from mysql.`user` where `host` like '%\\%%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '192.%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '2001:%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like 'santa.claus.%'; +User Host +connect con1,"127.0.0.1",root,,test,$MASTER_MYPORT,; +select "Con1 is alive"; +Con1 is alive +Con1 is alive +select current_user(); +current_user() +root@localhost +disconnect con1; +connection default; +SET @saved_dbug = @@GLOBAL.debug_dbug; +set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_fake_ipv4,getaddrinfo_error_again"; +ERROR HY000: Host '192.0.2.4' is not allowed to connect to this MariaDB server +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST NULL +HOST_VALIDATED NO +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 1 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 1 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +ERROR HY000: Host '192.0.2.4' is not allowed to connect to this MariaDB server +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST NULL +HOST_VALIDATED NO +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 2 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 2 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +SET @@GLOBAL.debug_dbug = @saved_dbug; diff --git a/mysql-test/suite/perfschema/r/hostcache_ipv4_addrinfo_bad_allow.result b/mysql-test/suite/perfschema/r/hostcache_ipv4_addrinfo_bad_allow.result new file mode 100644 index 00000000..8e87d0dc --- /dev/null +++ b/mysql-test/suite/perfschema/r/hostcache_ipv4_addrinfo_bad_allow.result @@ -0,0 +1,103 @@ +call mtr.add_suppression("santa.claus.ipv4.example.com"); +flush status; +flush hosts; +flush user_resources; +flush privileges; +select `User`, `Host` from mysql.`user` where `host` like '%\\%%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '192.%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '2001:%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like 'santa.claus.%'; +User Host +create user 'root'@'192.0.2.4'; +grant select on test.* to 'root'@'192.0.2.4'; +connect con1,"127.0.0.1",root,,test,$MASTER_MYPORT,; +select "Con1 is alive"; +Con1 is alive +Con1 is alive +select current_user(); +current_user() +root@localhost +disconnect con1; +connection default; +SET @saved_dbug = @@GLOBAL.debug_dbug; +set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_fake_ipv4,getaddrinfo_fake_bad_ipv4"; +connect con2,"127.0.0.1",root,,test,$MASTER_MYPORT,; +select "Con2 is alive"; +Con2 is alive +Con2 is alive +select current_user(); +current_user() +root@192.0.2.4 +disconnect con2; +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST NULL +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 1 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +connect con3,"127.0.0.1",root,,test,$MASTER_MYPORT,; +select "Con3 is alive"; +Con3 is alive +Con3 is alive +select current_user(); +current_user() +root@192.0.2.4 +disconnect con3; +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST NULL +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 1 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +revoke select on test.* from 'root'@'192.0.2.4'; +drop user 'root'@'192.0.2.4'; +SET @@GLOBAL.debug_dbug = @saved_dbug; diff --git a/mysql-test/suite/perfschema/r/hostcache_ipv4_addrinfo_bad_deny.result b/mysql-test/suite/perfschema/r/hostcache_ipv4_addrinfo_bad_deny.result new file mode 100644 index 00000000..3b39b09d --- /dev/null +++ b/mysql-test/suite/perfschema/r/hostcache_ipv4_addrinfo_bad_deny.result @@ -0,0 +1,85 @@ +call mtr.add_suppression("santa.claus.ipv4.example.com"); +flush status; +flush hosts; +flush user_resources; +flush privileges; +select `User`, `Host` from mysql.`user` where `host` like '%\\%%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '192.%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '2001:%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like 'santa.claus.%'; +User Host +connect con1,"127.0.0.1",root,,test,$MASTER_MYPORT,; +select "Con1 is alive"; +Con1 is alive +Con1 is alive +select current_user(); +current_user() +root@localhost +disconnect con1; +connection default; +SET @saved_dbug = @@GLOBAL.debug_dbug; +set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_fake_ipv4,getaddrinfo_fake_bad_ipv4"; +ERROR HY000: Host '192.0.2.4' is not allowed to connect to this MariaDB server +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST NULL +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 1 +COUNT_HOST_ACL_ERRORS 1 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +ERROR HY000: Host '192.0.2.4' is not allowed to connect to this MariaDB server +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST NULL +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 1 +COUNT_HOST_ACL_ERRORS 2 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +SET @@GLOBAL.debug_dbug = @saved_dbug; diff --git a/mysql-test/suite/perfschema/r/hostcache_ipv4_addrinfo_good_allow.result b/mysql-test/suite/perfschema/r/hostcache_ipv4_addrinfo_good_allow.result new file mode 100644 index 00000000..d14a73a8 --- /dev/null +++ b/mysql-test/suite/perfschema/r/hostcache_ipv4_addrinfo_good_allow.result @@ -0,0 +1,103 @@ +call mtr.add_suppression("192.0.2.4"); +flush status; +flush hosts; +flush user_resources; +flush privileges; +select `User`, `Host` from mysql.`user` where `host` like '%\\%%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '192.%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '2001:%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like 'santa.claus.%'; +User Host +create user 'root'@'santa.claus.ipv4.example.com'; +grant select on test.* to 'root'@'santa.claus.ipv4.example.com'; +connect con1,"127.0.0.1",root,,test,$MASTER_MYPORT,; +select "Con1 is alive"; +Con1 is alive +Con1 is alive +select current_user(); +current_user() +root@localhost +disconnect con1; +connection default; +SET @saved_dbug = @@GLOBAL.debug_dbug; +set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_fake_ipv4,getaddrinfo_fake_good_ipv4"; +connect con2,"127.0.0.1",root,,test,$MASTER_MYPORT,; +select "Con2 is alive"; +Con2 is alive +Con2 is alive +select current_user(); +current_user() +root@santa.claus.ipv4.example.com +disconnect con2; +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST santa.claus.ipv4.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN null +LAST_ERROR_SEEN null +connect con3,"127.0.0.1",root,,test,$MASTER_MYPORT,; +select "Con3 is alive"; +Con3 is alive +Con3 is alive +select current_user(); +current_user() +root@santa.claus.ipv4.example.com +disconnect con3; +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST santa.claus.ipv4.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN null +LAST_ERROR_SEEN null +revoke select on test.* from 'root'@'santa.claus.ipv4.example.com'; +drop user 'root'@'santa.claus.ipv4.example.com'; +SET @@GLOBAL.debug_dbug = @saved_dbug; diff --git a/mysql-test/suite/perfschema/r/hostcache_ipv4_addrinfo_good_deny.result b/mysql-test/suite/perfschema/r/hostcache_ipv4_addrinfo_good_deny.result new file mode 100644 index 00000000..5cd714fb --- /dev/null +++ b/mysql-test/suite/perfschema/r/hostcache_ipv4_addrinfo_good_deny.result @@ -0,0 +1,85 @@ +call mtr.add_suppression("192.0.2.4"); +flush status; +flush hosts; +flush user_resources; +flush privileges; +select `User`, `Host` from mysql.`user` where `host` like '%\\%%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '192.%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '2001:%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like 'santa.claus.%'; +User Host +connect con1,"127.0.0.1",root,,test,$MASTER_MYPORT,; +select "Con1 is alive"; +Con1 is alive +Con1 is alive +select current_user(); +current_user() +root@localhost +disconnect con1; +connection default; +SET @saved_dbug = @@GLOBAL.debug_dbug; +set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_fake_ipv4,getaddrinfo_fake_good_ipv4"; +ERROR HY000: Host 'santa.claus.ipv4.example.com' is not allowed to connect to this MariaDB server +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST santa.claus.ipv4.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 1 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +ERROR HY000: Host 'santa.claus.ipv4.example.com' is not allowed to connect to this MariaDB server +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST santa.claus.ipv4.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 2 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +SET @@GLOBAL.debug_dbug = @saved_dbug; diff --git a/mysql-test/suite/perfschema/r/hostcache_ipv4_addrinfo_noname_allow.result b/mysql-test/suite/perfschema/r/hostcache_ipv4_addrinfo_noname_allow.result new file mode 100644 index 00000000..c52da0dc --- /dev/null +++ b/mysql-test/suite/perfschema/r/hostcache_ipv4_addrinfo_noname_allow.result @@ -0,0 +1,107 @@ +call mtr.add_suppression("santa.claus.ipv4.example.com"); +flush status; +flush hosts; +flush user_resources; +flush privileges; +select `User`, `Host` from mysql.`user` where `host` like '%\\%%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '192.%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '2001:%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like 'santa.claus.%'; +User Host +create user 'root'@'santa.claus.ipv4.example.com'; +grant select on test.* to 'root'@'santa.claus.ipv4.example.com'; +create user 'root'@'192.0.2.4'; +grant select on test.* to 'root'@'192.0.2.4'; +connect con1,"127.0.0.1",root,,test,$MASTER_MYPORT,; +select "Con1 is alive"; +Con1 is alive +Con1 is alive +select current_user(); +current_user() +root@localhost +disconnect con1; +connection default; +SET @saved_dbug = @@GLOBAL.debug_dbug; +set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_fake_ipv4,getaddrinfo_error_noname"; +connect con2,"127.0.0.1",root,,test,$MASTER_MYPORT,; +select "Con2 is alive"; +Con2 is alive +Con2 is alive +select current_user(); +current_user() +root@192.0.2.4 +disconnect con2; +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST NULL +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 1 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +connect con3,"127.0.0.1",root,,test,$MASTER_MYPORT,; +select "Con3 is alive"; +Con3 is alive +Con3 is alive +select current_user(); +current_user() +root@192.0.2.4 +disconnect con3; +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST NULL +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 1 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +revoke select on test.* from 'root'@'santa.claus.ipv4.example.com'; +revoke select on test.* from 'root'@'192.0.2.4'; +drop user 'root'@'santa.claus.ipv4.example.com'; +drop user 'root'@'192.0.2.4'; +SET @@GLOBAL.debug_dbug = @saved_dbug; diff --git a/mysql-test/suite/perfschema/r/hostcache_ipv4_addrinfo_noname_deny.result b/mysql-test/suite/perfschema/r/hostcache_ipv4_addrinfo_noname_deny.result new file mode 100644 index 00000000..b889df4e --- /dev/null +++ b/mysql-test/suite/perfschema/r/hostcache_ipv4_addrinfo_noname_deny.result @@ -0,0 +1,85 @@ +call mtr.add_suppression("santa.claus.ipv4.example.com"); +flush status; +flush hosts; +flush user_resources; +flush privileges; +select `User`, `Host` from mysql.`user` where `host` like '%\\%%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '192.%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '2001:%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like 'santa.claus.%'; +User Host +connect con1,"127.0.0.1",root,,test,$MASTER_MYPORT,; +select "Con1 is alive"; +Con1 is alive +Con1 is alive +select current_user(); +current_user() +root@localhost +disconnect con1; +connection default; +SET @saved_dbug = @@GLOBAL.debug_dbug; +set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_fake_ipv4,getaddrinfo_error_noname"; +ERROR HY000: Host '192.0.2.4' is not allowed to connect to this MariaDB server +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST NULL +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 1 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 1 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +ERROR HY000: Host '192.0.2.4' is not allowed to connect to this MariaDB server +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST NULL +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 1 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 2 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +SET @@GLOBAL.debug_dbug = @saved_dbug; diff --git a/mysql-test/suite/perfschema/r/hostcache_ipv4_auth_ed25519.result b/mysql-test/suite/perfschema/r/hostcache_ipv4_auth_ed25519.result new file mode 100644 index 00000000..6e3d9285 --- /dev/null +++ b/mysql-test/suite/perfschema/r/hostcache_ipv4_auth_ed25519.result @@ -0,0 +1,121 @@ +install soname 'auth_ed25519'; +flush status; +flush hosts; +flush user_resources; +flush privileges; +select `User`, `Host` from mysql.`user` where `host` like '%\\%%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '192.%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '2001:%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like 'santa.claus.%'; +User Host +create user plug1@'santa.claus.ipv4.example.com' + identified with ed25519; +update mysql.global_priv set priv=json_set(priv, '$.authentication_string', 'foo') where user='plug1'; +flush privileges; +create user plug2@'santa.claus.ipv4.example.com' + identified with ED25519 as 'vubFBzIrapbfHct1/J72dnUryz5VS7lA6XHH8sIx4TI'; +set @saved_dbug = @@global.debug_dbug; +set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_fake_ipv4,getaddrinfo_fake_good_ipv4"; +connect(127.0.0.1,plug1,foo,test,PORT,SOCKET); +connect con1, 127.0.0.1, plug1,foo,,$MASTER_MYPORT; +ERROR 28000: Access denied for user 'plug1'@'santa.claus.ipv4.example.com' (using password: YES) +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST santa.claus.ipv4.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 1 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 1 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +connect(127.0.0.1,plug2,bar,test,PORT,SOCKET); +connect con1, 127.0.0.1, plug2,bar,,$MASTER_MYPORT; +ERROR 28000: Access denied for user 'plug2'@'santa.claus.ipv4.example.com' (using password: YES) +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST santa.claus.ipv4.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 1 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 1 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 1 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +connect con1, 127.0.0.1, plug2,foo,,$MASTER_MYPORT; +select current_user(); +current_user() +plug2@santa.claus.ipv4.example.com +disconnect con1; +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST santa.claus.ipv4.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 1 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 1 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +drop user plug1@'santa.claus.ipv4.example.com'; +drop user plug2@'santa.claus.ipv4.example.com'; +set @@global.debug_dbug = @saved_dbug; +uninstall plugin ed25519; diff --git a/mysql-test/suite/perfschema/r/hostcache_ipv4_auth_plugin.result b/mysql-test/suite/perfschema/r/hostcache_ipv4_auth_plugin.result new file mode 100644 index 00000000..31ffb406 --- /dev/null +++ b/mysql-test/suite/perfschema/r/hostcache_ipv4_auth_plugin.result @@ -0,0 +1,199 @@ +flush status; +flush hosts; +flush user_resources; +flush privileges; +select `User`, `Host` from mysql.`user` where `host` like '%\\%%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '192.%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '2001:%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like 'santa.claus.%'; +User Host +CREATE USER 'plug'@'santa.claus.ipv4.example.com' + IDENTIFIED WITH 'test_plugin_server' AS 'plug_dest'; +CREATE USER 'plug_dest'@'santa.claus.ipv4.example.com' + IDENTIFIED BY 'plug_test_passwd'; +GRANT SELECT ON test.* TO 'plug_dest'@'santa.claus.ipv4.example.com'; +connect con1,"127.0.0.1",root,,test,$MASTER_MYPORT,; +select "Con1 is alive"; +Con1 is alive +Con1 is alive +select current_user(); +current_user() +root@localhost +disconnect con1; +connection default; +SET @saved_dbug = @@GLOBAL.debug_dbug; +set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_fake_ipv4,getaddrinfo_fake_good_ipv4"; +uninstall plugin test_plugin_server; +ERROR HY000: Plugin 'test_plugin_server' is not loaded +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST santa.claus.ipv4.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 1 +COUNT_AUTH_PLUGIN_ERRORS 1 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +ERROR HY000: Plugin 'test_plugin_server' is not loaded +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST santa.claus.ipv4.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 2 +COUNT_AUTH_PLUGIN_ERRORS 2 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +install plugin test_plugin_server soname 'PLUGIN_AUTH'; +ERROR 28000: Access denied for user 'plug'@'santa.claus.ipv4.example.com' (using password: YES) +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST santa.claus.ipv4.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 2 +COUNT_AUTH_PLUGIN_ERRORS 2 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 1 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +ERROR 28000: Access denied for user 'plug'@'santa.claus.ipv4.example.com' (using password: YES) +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST santa.claus.ipv4.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 2 +COUNT_AUTH_PLUGIN_ERRORS 2 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 2 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +GRANT PROXY ON 'plug_dest'@'santa.claus.ipv4.example.com' + TO 'plug'@'santa.claus.ipv4.example.com'; +connect con4,"127.0.0.1",plug,plug_dest,test,$MASTER_MYPORT,,,auth_test_plugin; +select "Con4 is alive"; +Con4 is alive +Con4 is alive +select user(); +user() +plug@santa.claus.ipv4.example.com +select current_user(); +current_user() +plug_dest@santa.claus.ipv4.example.com +disconnect con4; +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST santa.claus.ipv4.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 2 +COUNT_AUTH_PLUGIN_ERRORS 2 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 2 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +REVOKE ALL PRIVILEGES ON *.* FROM 'plug_dest'@'santa.claus.ipv4.example.com'; +REVOKE PROXY ON 'plug_dest'@'santa.claus.ipv4.example.com' + FROM 'plug'@'santa.claus.ipv4.example.com'; +DROP USER 'plug'@'santa.claus.ipv4.example.com'; +DROP USER 'plug_dest'@'santa.claus.ipv4.example.com'; +SET @@GLOBAL.debug_dbug = @saved_dbug; +delete from mysql.plugin where name='test_plugin_server'; diff --git a/mysql-test/suite/perfschema/r/hostcache_ipv4_blocked.result b/mysql-test/suite/perfschema/r/hostcache_ipv4_blocked.result new file mode 100644 index 00000000..6be60f0a --- /dev/null +++ b/mysql-test/suite/perfschema/r/hostcache_ipv4_blocked.result @@ -0,0 +1,431 @@ +flush status; +flush hosts; +flush user_resources; +flush privileges; +select `User`, `Host` from mysql.`user` where `host` like '%\\%%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '192.%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '2001:%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like 'santa.claus.%'; +User Host +select @@global.max_connect_errors into @saved_max_connect_errors; +set global max_connect_errors = 3; +create user 'root'@'santa.claus.ipv4.example.com'; +grant select on test.* to 'root'@'santa.claus.ipv4.example.com'; +create user 'quota'@'santa.claus.ipv4.example.com'; +grant select on test.* to 'quota'@'santa.claus.ipv4.example.com'; +connect con1,"127.0.0.1",root,,test,$MASTER_MYPORT,; +select "Con1 is alive"; +Con1 is alive +Con1 is alive +select current_user(); +current_user() +root@localhost +disconnect con1; +connection default; +SET @saved_dbug = @@GLOBAL.debug_dbug; +set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_fake_ipv4,getaddrinfo_fake_good_ipv4,native_password_bad_reply"; +ERROR 08S01: Bad handshake +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST santa.claus.ipv4.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 1 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 1 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +ERROR 08S01: Bad handshake +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST santa.claus.ipv4.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 2 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 2 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +ERROR 08S01: Bad handshake +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST santa.claus.ipv4.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 3 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 3 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +ERROR HY000: Host '192.0.2.4' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts' +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST santa.claus.ipv4.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 3 +COUNT_HOST_BLOCKED_ERRORS 1 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 3 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +ERROR HY000: Host '192.0.2.4' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts' +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST santa.claus.ipv4.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 3 +COUNT_HOST_BLOCKED_ERRORS 2 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 3 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +flush hosts; +ERROR 08S01: Bad handshake +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST santa.claus.ipv4.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 1 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 1 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +ERROR 08S01: Bad handshake +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST santa.claus.ipv4.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 2 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 2 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +connection default; +set global debug_dbug= "-d,native_password_bad_reply"; +message +Valid connection should reset SUM_CONNECT_ERROR counter +connection default; +set global debug_dbug= "+d,native_password_bad_reply"; +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST santa.claus.ipv4.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 2 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +ERROR 08S01: Bad handshake +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST santa.claus.ipv4.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 1 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 3 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +ERROR 08S01: Bad handshake +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST santa.claus.ipv4.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 2 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 4 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +ERROR 08S01: Bad handshake +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST santa.claus.ipv4.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 3 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 5 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +ERROR HY000: Host '192.0.2.4' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts' +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST santa.claus.ipv4.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 3 +COUNT_HOST_BLOCKED_ERRORS 1 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 5 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +ERROR HY000: Host '192.0.2.4' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts' +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST santa.claus.ipv4.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 3 +COUNT_HOST_BLOCKED_ERRORS 2 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 5 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +revoke select on test.* from 'root'@'santa.claus.ipv4.example.com'; +drop user 'root'@'santa.claus.ipv4.example.com'; +revoke select on test.* from 'quota'@'santa.claus.ipv4.example.com'; +drop user 'quota'@'santa.claus.ipv4.example.com'; +set global max_connect_errors = @saved_max_connect_errors; +SET @@GLOBAL.debug_dbug = @saved_dbug; diff --git a/mysql-test/suite/perfschema/r/hostcache_ipv4_format.result b/mysql-test/suite/perfschema/r/hostcache_ipv4_format.result new file mode 100644 index 00000000..42030ed8 --- /dev/null +++ b/mysql-test/suite/perfschema/r/hostcache_ipv4_format.result @@ -0,0 +1,85 @@ +call mtr.add_suppression("192.0.2.4"); +flush status; +flush hosts; +flush user_resources; +flush privileges; +select `User`, `Host` from mysql.`user` where `host` like '%\\%%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '192.%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '2001:%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like 'santa.claus.%'; +User Host +connect con1,"127.0.0.1",root,,test,$MASTER_MYPORT,; +select "Con1 is alive"; +Con1 is alive +Con1 is alive +select current_user(); +current_user() +root@localhost +disconnect con1; +connection default; +SET @saved_dbug = @@GLOBAL.debug_dbug; +set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_format_ipv4"; +ERROR HY000: Host '192.0.2.4' is not allowed to connect to this MariaDB server +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST NULL +HOST_VALIDATED NO +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 1 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 1 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +ERROR HY000: Host '192.0.2.4' is not allowed to connect to this MariaDB server +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST NULL +HOST_VALIDATED NO +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 2 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 2 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +SET @@GLOBAL.debug_dbug = @saved_dbug; diff --git a/mysql-test/suite/perfschema/r/hostcache_ipv4_max_con.result b/mysql-test/suite/perfschema/r/hostcache_ipv4_max_con.result new file mode 100644 index 00000000..2ea779fd --- /dev/null +++ b/mysql-test/suite/perfschema/r/hostcache_ipv4_max_con.result @@ -0,0 +1,706 @@ +flush status; +flush hosts; +flush user_resources; +flush privileges; +select `User`, `Host` from mysql.`user` where `host` like '%\\%%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '192.%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '2001:%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like 'santa.claus.%'; +User Host +select @@global.max_connections into @saved_max_connections; +select @@global.max_user_connections into @saved_max_user_connections; +create user 'quota'@'santa.claus.ipv4.example.com'; +grant select on test.* to 'quota'@'santa.claus.ipv4.example.com'; +grant usage on *.* to 'quota'@'santa.claus.ipv4.example.com' + with max_connections_per_hour 3; +connect con1,"127.0.0.1",root,,test,$MASTER_MYPORT,; +select "Con1 is alive"; +Con1 is alive +Con1 is alive +select current_user(); +current_user() +root@localhost +disconnect con1; +connection default; +SET @saved_dbug = @@GLOBAL.debug_dbug; +set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_fake_ipv4,getaddrinfo_fake_good_ipv4"; +connect con2a,"127.0.0.1",quota,,test,$MASTER_MYPORT,; +select "Con2a is alive"; +Con2a is alive +Con2a is alive +select current_user(); +current_user() +quota@santa.claus.ipv4.example.com +disconnect con2a; +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST santa.claus.ipv4.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN null +LAST_ERROR_SEEN null +connect con2b,"127.0.0.1",quota,,test,$MASTER_MYPORT,; +select "Con2b is alive"; +Con2b is alive +Con2b is alive +select current_user(); +current_user() +quota@santa.claus.ipv4.example.com +disconnect con2b; +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST santa.claus.ipv4.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN null +LAST_ERROR_SEEN null +connect con2c,"127.0.0.1",quota,,test,$MASTER_MYPORT,; +select "Con2c is alive"; +Con2c is alive +Con2c is alive +select current_user(); +current_user() +quota@santa.claus.ipv4.example.com +disconnect con2c; +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST santa.claus.ipv4.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN null +LAST_ERROR_SEEN null +ERROR 42000: User 'quota' has exceeded the 'max_connections_per_hour' resource (current value: 3) +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST santa.claus.ipv4.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 1 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +ERROR 42000: User 'quota' has exceeded the 'max_connections_per_hour' resource (current value: 3) +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST santa.claus.ipv4.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 2 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +grant usage on *.* to 'quota'@'santa.claus.ipv4.example.com' + with max_connections_per_hour 0; +grant usage on *.* to 'quota'@'santa.claus.ipv4.example.com' + with max_user_connections 3; +flush user_resources; +connect con3a,"127.0.0.1",quota,,test,$MASTER_MYPORT,; +select "Con7 is alive"; +Con7 is alive +Con7 is alive +select current_user(); +current_user() +quota@santa.claus.ipv4.example.com +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST santa.claus.ipv4.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 2 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +connect con3b,"127.0.0.1",quota,,test,$MASTER_MYPORT,; +select "Con3b is alive"; +Con3b is alive +Con3b is alive +select current_user(); +current_user() +quota@santa.claus.ipv4.example.com +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST santa.claus.ipv4.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 2 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +connect con3c,"127.0.0.1",quota,,test,$MASTER_MYPORT,; +select "Con3c is alive"; +Con3c is alive +Con3c is alive +select current_user(); +current_user() +quota@santa.claus.ipv4.example.com +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST santa.claus.ipv4.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 2 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +ERROR 42000: User 'quota' has exceeded the 'max_user_connections' resource (current value: 3) +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST santa.claus.ipv4.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 1 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 2 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +ERROR 42000: User 'quota' has exceeded the 'max_user_connections' resource (current value: 3) +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST santa.claus.ipv4.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 2 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 2 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +disconnect con3a; +disconnect con3b; +disconnect con3c; +grant usage on *.* to 'quota'@'santa.claus.ipv4.example.com' + with max_user_connections 0; +flush user_resources; +set global max_user_connections = 3; +connect con4a,"127.0.0.1",quota,,test,$MASTER_MYPORT,; +select "Con4a is alive"; +Con4a is alive +Con4a is alive +select current_user(); +current_user() +quota@santa.claus.ipv4.example.com +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST santa.claus.ipv4.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 2 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 2 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +connect con4b,"127.0.0.1",quota,,test,$MASTER_MYPORT,; +select "Con4b is alive"; +Con4b is alive +Con4b is alive +select current_user(); +current_user() +quota@santa.claus.ipv4.example.com +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST santa.claus.ipv4.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 2 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 2 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +connect con4c,"127.0.0.1",quota,,test,$MASTER_MYPORT,; +select "Con4c is alive"; +Con4c is alive +Con4c is alive +select current_user(); +current_user() +quota@santa.claus.ipv4.example.com +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST santa.claus.ipv4.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 2 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 2 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +ERROR 42000: User quota already has more than 'max_user_connections' active connections +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST santa.claus.ipv4.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 3 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 2 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +ERROR 42000: User quota already has more than 'max_user_connections' active connections +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST santa.claus.ipv4.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 4 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 2 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +disconnect con4a; +disconnect con4b; +disconnect con4c; +set global max_user_connections = 0; +set global max_connections = 10; +flush user_resources; +connect tmp_con1,"127.0.0.1",quota,,test,$MASTER_MYPORT,; +connect tmp_con2,"127.0.0.1",quota,,test,$MASTER_MYPORT,; +connect tmp_con3,"127.0.0.1",quota,,test,$MASTER_MYPORT,; +connect tmp_con4,"127.0.0.1",quota,,test,$MASTER_MYPORT,; +connect tmp_con5,"127.0.0.1",quota,,test,$MASTER_MYPORT,; +connect tmp_con6,"127.0.0.1",quota,,test,$MASTER_MYPORT,; +connect tmp_con7,"127.0.0.1",quota,,test,$MASTER_MYPORT,; +connect con5a,"127.0.0.1",quota,,test,$MASTER_MYPORT,; +select "Con4a is alive"; +Con4a is alive +Con4a is alive +select current_user(); +current_user() +quota@santa.claus.ipv4.example.com +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST santa.claus.ipv4.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 4 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 2 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +connect con5b,"127.0.0.1",quota,,test,$MASTER_MYPORT,; +select "Con5b is alive"; +Con5b is alive +Con5b is alive +select current_user(); +current_user() +quota@santa.claus.ipv4.example.com +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST santa.claus.ipv4.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 4 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 2 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +Got one of the listed errors +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST santa.claus.ipv4.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 4 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 2 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +Got one of the listed errors +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST santa.claus.ipv4.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 4 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 2 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +disconnect con5a; +disconnect con5b; +disconnect tmp_con1; +disconnect tmp_con2; +disconnect tmp_con3; +disconnect tmp_con4; +disconnect tmp_con5; +disconnect tmp_con6; +disconnect tmp_con7; +set global max_connections = @saved_max_connections; +set global max_user_connections = @saved_max_user_connections; +drop user 'quota'@'santa.claus.ipv4.example.com'; +SET @@GLOBAL.debug_dbug = @saved_dbug; diff --git a/mysql-test/suite/perfschema/r/hostcache_ipv4_nameinfo_again_allow.result b/mysql-test/suite/perfschema/r/hostcache_ipv4_nameinfo_again_allow.result new file mode 100644 index 00000000..60852eb2 --- /dev/null +++ b/mysql-test/suite/perfschema/r/hostcache_ipv4_nameinfo_again_allow.result @@ -0,0 +1,182 @@ +call mtr.add_suppression("192.0.2.4"); +flush status; +flush hosts; +flush user_resources; +flush privileges; +select `User`, `Host` from mysql.`user` where `host` like '%\\%%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '192.%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '2001:%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like 'santa.claus.%'; +User Host +create user 'root'@'192.0.2.4'; +grant select on test.* to 'root'@'192.0.2.4'; +create user 'root'@'santa.claus.ipv4.example.com'; +grant select on test.* to 'root'@'santa.claus.ipv4.example.com'; +connect con1,"127.0.0.1",root,,test,$MASTER_MYPORT,; +select "Con1 is alive"; +Con1 is alive +Con1 is alive +select current_user(); +current_user() +root@localhost +disconnect con1; +connection default; +SET @saved_dbug = @@GLOBAL.debug_dbug; +set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_error_again"; +connect con2,"127.0.0.1",root,,test,$MASTER_MYPORT,; +select "Con2 is alive"; +Con2 is alive +Con2 is alive +select current_user(); +current_user() +root@192.0.2.4 +disconnect con2; +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST NULL +HOST_VALIDATED NO +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 1 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +connect con3,"127.0.0.1",root,,test,$MASTER_MYPORT,; +select "Con3 is alive"; +Con3 is alive +Con3 is alive +select current_user(); +current_user() +root@192.0.2.4 +disconnect con3; +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST NULL +HOST_VALIDATED NO +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 2 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_fake_ipv4,getaddrinfo_fake_good_ipv4"; +connect con4,"127.0.0.1",root,,test,$MASTER_MYPORT,; +select "Con4 is alive"; +Con4 is alive +Con4 is alive +select current_user(); +current_user() +root@santa.claus.ipv4.example.com +disconnect con4; +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST santa.claus.ipv4.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 2 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +connect con5,"127.0.0.1",root,,test,$MASTER_MYPORT,; +select "Con5 is alive"; +Con5 is alive +Con5 is alive +select current_user(); +current_user() +root@santa.claus.ipv4.example.com +disconnect con5; +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST santa.claus.ipv4.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 2 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +revoke select on test.* from 'root'@'192.0.2.4'; +revoke select on test.* from 'root'@'santa.claus.ipv4.example.com'; +drop user 'root'@'192.0.2.4'; +drop user 'root'@'santa.claus.ipv4.example.com'; +SET @@GLOBAL.debug_dbug = @saved_dbug; diff --git a/mysql-test/suite/perfschema/r/hostcache_ipv4_nameinfo_again_deny.result b/mysql-test/suite/perfschema/r/hostcache_ipv4_nameinfo_again_deny.result new file mode 100644 index 00000000..c453bc35 --- /dev/null +++ b/mysql-test/suite/perfschema/r/hostcache_ipv4_nameinfo_again_deny.result @@ -0,0 +1,146 @@ +call mtr.add_suppression("192.0.2.4"); +flush status; +flush hosts; +flush user_resources; +flush privileges; +select `User`, `Host` from mysql.`user` where `host` like '%\\%%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '192.%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '2001:%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like 'santa.claus.%'; +User Host +connect con1,"127.0.0.1",root,,test,$MASTER_MYPORT,; +select "Con1 is alive"; +Con1 is alive +Con1 is alive +select current_user(); +current_user() +root@localhost +disconnect con1; +connection default; +SET @saved_dbug = @@GLOBAL.debug_dbug; +set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_error_again"; +ERROR HY000: Host '192.0.2.4' is not allowed to connect to this MariaDB server +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST NULL +HOST_VALIDATED NO +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 1 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 1 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +ERROR HY000: Host '192.0.2.4' is not allowed to connect to this MariaDB server +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST NULL +HOST_VALIDATED NO +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 2 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 2 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_fake_ipv4,getaddrinfo_fake_good_ipv4"; +ERROR HY000: Host 'santa.claus.ipv4.example.com' is not allowed to connect to this MariaDB server +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST santa.claus.ipv4.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 2 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 3 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +ERROR HY000: Host 'santa.claus.ipv4.example.com' is not allowed to connect to this MariaDB server +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST santa.claus.ipv4.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 2 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 4 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +SET @@GLOBAL.debug_dbug = @saved_dbug; diff --git a/mysql-test/suite/perfschema/r/hostcache_ipv4_nameinfo_noname_allow.result b/mysql-test/suite/perfschema/r/hostcache_ipv4_nameinfo_noname_allow.result new file mode 100644 index 00000000..1b07f4fc --- /dev/null +++ b/mysql-test/suite/perfschema/r/hostcache_ipv4_nameinfo_noname_allow.result @@ -0,0 +1,103 @@ +call mtr.add_suppression("192.0.2.4"); +flush status; +flush hosts; +flush user_resources; +flush privileges; +select `User`, `Host` from mysql.`user` where `host` like '%\\%%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '192.%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '2001:%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like 'santa.claus.%'; +User Host +create user 'root'@'192.0.2.4'; +grant select on test.* to 'root'@'192.0.2.4'; +connect con1,"127.0.0.1",root,,test,$MASTER_MYPORT,; +select "Con1 is alive"; +Con1 is alive +Con1 is alive +select current_user(); +current_user() +root@localhost +disconnect con1; +connection default; +SET @saved_dbug = @@GLOBAL.debug_dbug; +set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_error_noname"; +connect con2,"127.0.0.1",root,,test,$MASTER_MYPORT,; +select "Con2 is alive"; +Con2 is alive +Con2 is alive +select current_user(); +current_user() +root@192.0.2.4 +disconnect con2; +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST NULL +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 1 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +connect con3,"127.0.0.1",root,,test,$MASTER_MYPORT,; +select "Con3 is alive"; +Con3 is alive +Con3 is alive +select current_user(); +current_user() +root@192.0.2.4 +disconnect con3; +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST NULL +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 1 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +revoke select on test.* from 'root'@'192.0.2.4'; +drop user 'root'@'192.0.2.4'; +SET @@GLOBAL.debug_dbug = @saved_dbug; diff --git a/mysql-test/suite/perfschema/r/hostcache_ipv4_nameinfo_noname_deny.result b/mysql-test/suite/perfschema/r/hostcache_ipv4_nameinfo_noname_deny.result new file mode 100644 index 00000000..63baa481 --- /dev/null +++ b/mysql-test/suite/perfschema/r/hostcache_ipv4_nameinfo_noname_deny.result @@ -0,0 +1,85 @@ +call mtr.add_suppression("192.0.2.4"); +flush status; +flush hosts; +flush user_resources; +flush privileges; +select `User`, `Host` from mysql.`user` where `host` like '%\\%%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '192.%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '2001:%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like 'santa.claus.%'; +User Host +connect con1,"127.0.0.1",root,,test,$MASTER_MYPORT,; +select "Con1 is alive"; +Con1 is alive +Con1 is alive +select current_user(); +current_user() +root@localhost +disconnect con1; +connection default; +SET @saved_dbug = @@GLOBAL.debug_dbug; +set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_error_noname"; +ERROR HY000: Host '192.0.2.4' is not allowed to connect to this MariaDB server +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST NULL +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 1 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 1 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +ERROR HY000: Host '192.0.2.4' is not allowed to connect to this MariaDB server +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST NULL +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 1 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 2 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +SET @@GLOBAL.debug_dbug = @saved_dbug; diff --git a/mysql-test/suite/perfschema/r/hostcache_ipv4_passwd.result b/mysql-test/suite/perfschema/r/hostcache_ipv4_passwd.result new file mode 100644 index 00000000..8d69d9c4 --- /dev/null +++ b/mysql-test/suite/perfschema/r/hostcache_ipv4_passwd.result @@ -0,0 +1,211 @@ +flush status; +flush hosts; +flush user_resources; +flush privileges; +select `User`, `Host` from mysql.`user` where `host` like '%\\%%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '192.%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '2001:%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like 'santa.claus.%'; +User Host +create user 'user_without'@'santa.claus.ipv4.example.com'; +create user 'user_with'@'santa.claus.ipv4.example.com' + identified by 'good_password'; +grant select on test.* to 'user_without'@'santa.claus.ipv4.example.com'; +grant select on test.* to 'user_with'@'santa.claus.ipv4.example.com'; +connect con1,"127.0.0.1",root,,test,$MASTER_MYPORT,; +select "Con1 is alive"; +Con1 is alive +Con1 is alive +select current_user(); +current_user() +root@localhost +disconnect con1; +connection default; +SET @saved_dbug = @@GLOBAL.debug_dbug; +set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_fake_ipv4,getaddrinfo_fake_good_ipv4"; +ERROR 28000: Access denied for user 'user_without'@'santa.claus.ipv4.example.com' (using password: YES) +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST santa.claus.ipv4.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 1 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +ERROR 28000: Access denied for user 'user_without'@'santa.claus.ipv4.example.com' (using password: YES) +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST santa.claus.ipv4.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 2 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +ERROR 28000: Access denied for user 'user_with'@'santa.claus.ipv4.example.com' (using password: NO) +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST santa.claus.ipv4.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 3 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +ERROR 28000: Access denied for user 'user_with'@'santa.claus.ipv4.example.com' (using password: NO) +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST santa.claus.ipv4.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 4 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +ERROR 28000: Access denied for user 'user_with'@'santa.claus.ipv4.example.com' (using password: YES) +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST santa.claus.ipv4.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 5 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +ERROR 28000: Access denied for user 'user_with'@'santa.claus.ipv4.example.com' (using password: YES) +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST santa.claus.ipv4.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 6 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +drop user 'user_with'@'santa.claus.ipv4.example.com'; +drop user 'user_without'@'santa.claus.ipv4.example.com'; +SET @@GLOBAL.debug_dbug = @saved_dbug; diff --git a/mysql-test/suite/perfschema/r/hostcache_ipv4_ssl.result b/mysql-test/suite/perfschema/r/hostcache_ipv4_ssl.result new file mode 100644 index 00000000..33f3528b --- /dev/null +++ b/mysql-test/suite/perfschema/r/hostcache_ipv4_ssl.result @@ -0,0 +1,155 @@ +flush status; +flush hosts; +flush user_resources; +flush privileges; +select `User`, `Host` from mysql.`user` where `host` like '%\\%%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '192.%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '2001:%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like 'santa.claus.%'; +User Host +create user 'user_ssl'@'santa.claus.ipv4.example.com'; +create user 'user_ssl_x509'@'santa.claus.ipv4.example.com' + identified by 'good_password'; +grant select on test.* to 'user_ssl'@'santa.claus.ipv4.example.com' + REQUIRE SSL; +grant select on test.* to 'user_ssl_x509'@'santa.claus.ipv4.example.com' + REQUIRE SUBJECT '/C=??/ST=??/L=??/ + O=No such thing/ + CN=Santa Claus/emailAddress=santa.claus@example.com'; +connect con1,"127.0.0.1",root,,test,$MASTER_MYPORT,; +select "Con1 is alive"; +Con1 is alive +Con1 is alive +select current_user(); +current_user() +root@localhost +disconnect con1; +connection default; +SET @saved_dbug = @@GLOBAL.debug_dbug; +set global debug_dbug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_fake_ipv4,getaddrinfo_fake_good_ipv4"; +ERROR 28000: Access denied for user 'user_ssl'@'santa.claus.ipv4.example.com' (using password: NO) +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST santa.claus.ipv4.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 1 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +ERROR 28000: Access denied for user 'user_ssl'@'santa.claus.ipv4.example.com' (using password: NO) +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST santa.claus.ipv4.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 2 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +ERROR 28000: Access denied for user 'user_ssl_x509'@'santa.claus.ipv4.example.com' (using password: YES) +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST santa.claus.ipv4.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 3 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +ERROR 28000: Access denied for user 'user_ssl_x509'@'santa.claus.ipv4.example.com' (using password: YES) +connection default; +# Dumping performance_schema.host_cache +IP 192.0.2.4 +HOST santa.claus.ipv4.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 4 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +drop user 'user_ssl'@'santa.claus.ipv4.example.com'; +drop user 'user_ssl_x509'@'santa.claus.ipv4.example.com'; +SET @@GLOBAL.debug_dbug = @saved_dbug; diff --git a/mysql-test/suite/perfschema/r/hostcache_ipv6_addrinfo_again_allow.result b/mysql-test/suite/perfschema/r/hostcache_ipv6_addrinfo_again_allow.result new file mode 100644 index 00000000..2b0f4ff7 --- /dev/null +++ b/mysql-test/suite/perfschema/r/hostcache_ipv6_addrinfo_again_allow.result @@ -0,0 +1,103 @@ +call mtr.add_suppression("santa.claus.ipv6.example.com"); +flush status; +flush hosts; +flush user_resources; +flush privileges; +select `User`, `Host` from mysql.`user` where `host` like '%\\%%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '192.%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '2001:%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like 'santa.claus.%'; +User Host +create user 'root'@'2001:db8::6:6'; +grant select on test.* to 'root'@'2001:db8::6:6'; +connect con1,"::1",root,,test,$MASTER_MYPORT,; +select "Con1 is alive"; +Con1 is alive +Con1 is alive +select current_user(); +current_user() +root@localhost +disconnect con1; +connection default; +SET @saved_dbug = @@GLOBAL.debug_dbug; +set global debug_dbug= "+d,vio_peer_addr_fake_ipv6,getnameinfo_fake_ipv6,getaddrinfo_error_again"; +connect con2,"::1",root,,test,$MASTER_MYPORT,; +select "Con2 is alive"; +Con2 is alive +Con2 is alive +select current_user(); +current_user() +root@2001:db8::6:6 +disconnect con2; +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST NULL +HOST_VALIDATED NO +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 1 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +connect con3,"::1",root,,test,$MASTER_MYPORT,; +select "Con3 is alive"; +Con3 is alive +Con3 is alive +select current_user(); +current_user() +root@2001:db8::6:6 +disconnect con3; +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST NULL +HOST_VALIDATED NO +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 2 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +revoke select on test.* from 'root'@'2001:db8::6:6'; +drop user 'root'@'2001:db8::6:6'; +SET @@GLOBAL.debug_dbug = @saved_dbug; diff --git a/mysql-test/suite/perfschema/r/hostcache_ipv6_addrinfo_again_deny.result b/mysql-test/suite/perfschema/r/hostcache_ipv6_addrinfo_again_deny.result new file mode 100644 index 00000000..12b27c8e --- /dev/null +++ b/mysql-test/suite/perfschema/r/hostcache_ipv6_addrinfo_again_deny.result @@ -0,0 +1,85 @@ +call mtr.add_suppression("santa.claus.ipv6.example.com"); +flush status; +flush hosts; +flush user_resources; +flush privileges; +select `User`, `Host` from mysql.`user` where `host` like '%\\%%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '192.%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '2001:%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like 'santa.claus.%'; +User Host +connect con1,"::1",root,,test,$MASTER_MYPORT,; +select "Con1 is alive"; +Con1 is alive +Con1 is alive +select current_user(); +current_user() +root@localhost +disconnect con1; +connection default; +SET @saved_dbug = @@GLOBAL.debug_dbug; +set global debug_dbug= "+d,vio_peer_addr_fake_ipv6,getnameinfo_fake_ipv6,getaddrinfo_error_again"; +ERROR HY000: Host '2001:db8::6:6' is not allowed to connect to this MariaDB server +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST NULL +HOST_VALIDATED NO +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 1 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 1 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +ERROR HY000: Host '2001:db8::6:6' is not allowed to connect to this MariaDB server +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST NULL +HOST_VALIDATED NO +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 2 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 2 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +SET @@GLOBAL.debug_dbug = @saved_dbug; diff --git a/mysql-test/suite/perfschema/r/hostcache_ipv6_addrinfo_bad_allow.result b/mysql-test/suite/perfschema/r/hostcache_ipv6_addrinfo_bad_allow.result new file mode 100644 index 00000000..5d8d7fd3 --- /dev/null +++ b/mysql-test/suite/perfschema/r/hostcache_ipv6_addrinfo_bad_allow.result @@ -0,0 +1,103 @@ +call mtr.add_suppression("santa.claus.ipv6.example.com"); +flush status; +flush hosts; +flush user_resources; +flush privileges; +select `User`, `Host` from mysql.`user` where `host` like '%\\%%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '192.%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '2001:%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like 'santa.claus.%'; +User Host +create user 'root'@'2001:db8::6:6'; +grant select on test.* to 'root'@'2001:db8::6:6'; +connect con1,"::1",root,,test,$MASTER_MYPORT,; +select "Con1 is alive"; +Con1 is alive +Con1 is alive +select current_user(); +current_user() +root@localhost +disconnect con1; +connection default; +SET @saved_dbug = @@GLOBAL.debug_dbug; +set global debug_dbug= "+d,vio_peer_addr_fake_ipv6,getnameinfo_fake_ipv6,getaddrinfo_fake_bad_ipv6"; +connect con2,"::1",root,,test,$MASTER_MYPORT,; +select "Con2 is alive"; +Con2 is alive +Con2 is alive +select current_user(); +current_user() +root@2001:db8::6:6 +disconnect con2; +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST NULL +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 1 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +connect con3,"::1",root,,test,$MASTER_MYPORT,; +select "Con3 is alive"; +Con3 is alive +Con3 is alive +select current_user(); +current_user() +root@2001:db8::6:6 +disconnect con3; +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST NULL +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 1 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +revoke select on test.* from 'root'@'2001:db8::6:6'; +drop user 'root'@'2001:db8::6:6'; +SET @@GLOBAL.debug_dbug = @saved_dbug; diff --git a/mysql-test/suite/perfschema/r/hostcache_ipv6_addrinfo_bad_deny.result b/mysql-test/suite/perfschema/r/hostcache_ipv6_addrinfo_bad_deny.result new file mode 100644 index 00000000..c46ea3dc --- /dev/null +++ b/mysql-test/suite/perfschema/r/hostcache_ipv6_addrinfo_bad_deny.result @@ -0,0 +1,85 @@ +call mtr.add_suppression("santa.claus.ipv6.example.com"); +flush status; +flush hosts; +flush user_resources; +flush privileges; +select `User`, `Host` from mysql.`user` where `host` like '%\\%%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '192.%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '2001:%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like 'santa.claus.%'; +User Host +connect con1,"::1",root,,test,$MASTER_MYPORT,; +select "Con1 is alive"; +Con1 is alive +Con1 is alive +select current_user(); +current_user() +root@localhost +disconnect con1; +connection default; +SET @saved_dbug = @@GLOBAL.debug_dbug; +set global debug_dbug= "+d,vio_peer_addr_fake_ipv6,getnameinfo_fake_ipv6,getaddrinfo_fake_bad_ipv6"; +ERROR HY000: Host '2001:db8::6:6' is not allowed to connect to this MariaDB server +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST NULL +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 1 +COUNT_HOST_ACL_ERRORS 1 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +ERROR HY000: Host '2001:db8::6:6' is not allowed to connect to this MariaDB server +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST NULL +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 1 +COUNT_HOST_ACL_ERRORS 2 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +SET @@GLOBAL.debug_dbug = @saved_dbug; diff --git a/mysql-test/suite/perfschema/r/hostcache_ipv6_addrinfo_good_allow.result b/mysql-test/suite/perfschema/r/hostcache_ipv6_addrinfo_good_allow.result new file mode 100644 index 00000000..786f1b8a --- /dev/null +++ b/mysql-test/suite/perfschema/r/hostcache_ipv6_addrinfo_good_allow.result @@ -0,0 +1,103 @@ +call mtr.add_suppression("192.0.2.4"); +flush status; +flush hosts; +flush user_resources; +flush privileges; +select `User`, `Host` from mysql.`user` where `host` like '%\\%%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '192.%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '2001:%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like 'santa.claus.%'; +User Host +create user 'root'@'santa.claus.ipv6.example.com'; +grant select on test.* to 'root'@'santa.claus.ipv6.example.com'; +connect con1,"::1",root,,test,$MASTER_MYPORT,; +select "Con1 is alive"; +Con1 is alive +Con1 is alive +select current_user(); +current_user() +root@localhost +disconnect con1; +connection default; +SET @saved_dbug = @@GLOBAL.debug_dbug; +set global debug_dbug= "+d,vio_peer_addr_fake_ipv6,getnameinfo_fake_ipv6,getaddrinfo_fake_good_ipv6"; +connect con2,"::1",root,,test,$MASTER_MYPORT,; +select "Con2 is alive"; +Con2 is alive +Con2 is alive +select current_user(); +current_user() +root@santa.claus.ipv6.example.com +disconnect con2; +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST santa.claus.ipv6.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN null +LAST_ERROR_SEEN null +connect con3,"::1",root,,test,$MASTER_MYPORT,; +select "Con3 is alive"; +Con3 is alive +Con3 is alive +select current_user(); +current_user() +root@santa.claus.ipv6.example.com +disconnect con3; +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST santa.claus.ipv6.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN null +LAST_ERROR_SEEN null +revoke select on test.* from 'root'@'santa.claus.ipv6.example.com'; +drop user 'root'@'santa.claus.ipv6.example.com'; +SET @@GLOBAL.debug_dbug = @saved_dbug; diff --git a/mysql-test/suite/perfschema/r/hostcache_ipv6_addrinfo_good_deny.result b/mysql-test/suite/perfschema/r/hostcache_ipv6_addrinfo_good_deny.result new file mode 100644 index 00000000..8dfcdac1 --- /dev/null +++ b/mysql-test/suite/perfschema/r/hostcache_ipv6_addrinfo_good_deny.result @@ -0,0 +1,84 @@ +flush status; +flush hosts; +flush user_resources; +flush privileges; +select `User`, `Host` from mysql.`user` where `host` like '%\\%%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '192.%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '2001:%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like 'santa.claus.%'; +User Host +connect con1,"::1",root,,test,$MASTER_MYPORT,; +select "Con1 is alive"; +Con1 is alive +Con1 is alive +select current_user(); +current_user() +root@localhost +disconnect con1; +connection default; +SET @saved_dbug = @@GLOBAL.debug_dbug; +set global debug_dbug= "+d,vio_peer_addr_fake_ipv6,getnameinfo_fake_ipv6,getaddrinfo_fake_good_ipv6"; +ERROR HY000: Host 'santa.claus.ipv6.example.com' is not allowed to connect to this MariaDB server +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST santa.claus.ipv6.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 1 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +ERROR HY000: Host 'santa.claus.ipv6.example.com' is not allowed to connect to this MariaDB server +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST santa.claus.ipv6.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 2 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +SET @@GLOBAL.debug_dbug = @saved_dbug; diff --git a/mysql-test/suite/perfschema/r/hostcache_ipv6_addrinfo_noname_allow.result b/mysql-test/suite/perfschema/r/hostcache_ipv6_addrinfo_noname_allow.result new file mode 100644 index 00000000..f2aa7fe0 --- /dev/null +++ b/mysql-test/suite/perfschema/r/hostcache_ipv6_addrinfo_noname_allow.result @@ -0,0 +1,107 @@ +call mtr.add_suppression("santa.claus.ipv6.example.com"); +flush status; +flush hosts; +flush user_resources; +flush privileges; +select `User`, `Host` from mysql.`user` where `host` like '%\\%%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '192.%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '2001:%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like 'santa.claus.%'; +User Host +create user 'root'@'santa.claus.ipv6.example.com'; +grant select on test.* to 'root'@'santa.claus.ipv6.example.com'; +create user 'root'@'2001:db8::6:6'; +grant select on test.* to 'root'@'2001:db8::6:6'; +connect con1,"::1",root,,test,$MASTER_MYPORT,; +select "Con1 is alive"; +Con1 is alive +Con1 is alive +select current_user(); +current_user() +root@localhost +disconnect con1; +connection default; +SET @saved_dbug = @@GLOBAL.debug_dbug; +set global debug_dbug= "+d,vio_peer_addr_fake_ipv6,getnameinfo_fake_ipv6,getaddrinfo_error_noname"; +connect con2,"::1",root,,test,$MASTER_MYPORT,; +select "Con2 is alive"; +Con2 is alive +Con2 is alive +select current_user(); +current_user() +root@2001:db8::6:6 +disconnect con2; +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST NULL +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 1 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +connect con3,"::1",root,,test,$MASTER_MYPORT,; +select "Con3 is alive"; +Con3 is alive +Con3 is alive +select current_user(); +current_user() +root@2001:db8::6:6 +disconnect con3; +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST NULL +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 1 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +revoke select on test.* from 'root'@'santa.claus.ipv6.example.com'; +revoke select on test.* from 'root'@'2001:db8::6:6'; +drop user 'root'@'santa.claus.ipv6.example.com'; +drop user 'root'@'2001:db8::6:6'; +SET @@GLOBAL.debug_dbug = @saved_dbug; diff --git a/mysql-test/suite/perfschema/r/hostcache_ipv6_addrinfo_noname_deny.result b/mysql-test/suite/perfschema/r/hostcache_ipv6_addrinfo_noname_deny.result new file mode 100644 index 00000000..2fda71b3 --- /dev/null +++ b/mysql-test/suite/perfschema/r/hostcache_ipv6_addrinfo_noname_deny.result @@ -0,0 +1,85 @@ +call mtr.add_suppression("santa.claus.ipv6.example.com"); +flush status; +flush hosts; +flush user_resources; +flush privileges; +select `User`, `Host` from mysql.`user` where `host` like '%\\%%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '192.%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '2001:%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like 'santa.claus.%'; +User Host +connect con1,"::1",root,,test,$MASTER_MYPORT,; +select "Con1 is alive"; +Con1 is alive +Con1 is alive +select current_user(); +current_user() +root@localhost +disconnect con1; +connection default; +SET @saved_dbug = @@GLOBAL.debug_dbug; +set global debug_dbug= "+d,vio_peer_addr_fake_ipv6,getnameinfo_fake_ipv6,getaddrinfo_error_noname"; +ERROR HY000: Host '2001:db8::6:6' is not allowed to connect to this MariaDB server +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST NULL +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 1 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 1 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +ERROR HY000: Host '2001:db8::6:6' is not allowed to connect to this MariaDB server +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST NULL +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 1 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 2 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +SET @@GLOBAL.debug_dbug = @saved_dbug; diff --git a/mysql-test/suite/perfschema/r/hostcache_ipv6_auth_plugin.result b/mysql-test/suite/perfschema/r/hostcache_ipv6_auth_plugin.result new file mode 100644 index 00000000..09b965f4 --- /dev/null +++ b/mysql-test/suite/perfschema/r/hostcache_ipv6_auth_plugin.result @@ -0,0 +1,199 @@ +flush status; +flush hosts; +flush user_resources; +flush privileges; +select `User`, `Host` from mysql.`user` where `host` like '%\\%%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '192.%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '2001:%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like 'santa.claus.%'; +User Host +CREATE USER 'plug'@'santa.claus.ipv6.example.com' + IDENTIFIED WITH 'test_plugin_server' AS 'plug_dest'; +CREATE USER 'plug_dest'@'santa.claus.ipv6.example.com' + IDENTIFIED BY 'plug_test_passwd'; +GRANT SELECT ON test.* TO 'plug_dest'@'santa.claus.ipv6.example.com'; +connect con1,"::1",root,,test,$MASTER_MYPORT,; +select "Con1 is alive"; +Con1 is alive +Con1 is alive +select current_user(); +current_user() +root@localhost +disconnect con1; +connection default; +SET @saved_dbug = @@GLOBAL.debug_dbug; +set global debug_dbug= "+d,vio_peer_addr_fake_ipv6,getnameinfo_fake_ipv6,getaddrinfo_fake_good_ipv6"; +uninstall plugin test_plugin_server; +ERROR HY000: Plugin 'test_plugin_server' is not loaded +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST santa.claus.ipv6.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 1 +COUNT_AUTH_PLUGIN_ERRORS 1 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +ERROR HY000: Plugin 'test_plugin_server' is not loaded +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST santa.claus.ipv6.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 2 +COUNT_AUTH_PLUGIN_ERRORS 2 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +install plugin test_plugin_server soname 'PLUGIN_AUTH'; +ERROR 28000: Access denied for user 'plug'@'santa.claus.ipv6.example.com' (using password: YES) +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST santa.claus.ipv6.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 2 +COUNT_AUTH_PLUGIN_ERRORS 2 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 1 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +ERROR 28000: Access denied for user 'plug'@'santa.claus.ipv6.example.com' (using password: YES) +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST santa.claus.ipv6.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 2 +COUNT_AUTH_PLUGIN_ERRORS 2 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 2 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +GRANT PROXY ON 'plug_dest'@'santa.claus.ipv6.example.com' + TO 'plug'@'santa.claus.ipv6.example.com'; +connect con4,"::1",plug,plug_dest,test,$MASTER_MYPORT,,,auth_test_plugin; +select "Con4 is alive"; +Con4 is alive +Con4 is alive +select user(); +user() +plug@santa.claus.ipv6.example.com +select current_user(); +current_user() +plug_dest@santa.claus.ipv6.example.com +disconnect con4; +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST santa.claus.ipv6.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 2 +COUNT_AUTH_PLUGIN_ERRORS 2 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 2 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +REVOKE ALL PRIVILEGES ON *.* FROM 'plug_dest'@'santa.claus.ipv6.example.com'; +REVOKE PROXY ON 'plug_dest'@'santa.claus.ipv6.example.com' + FROM 'plug'@'santa.claus.ipv6.example.com'; +DROP USER 'plug'@'santa.claus.ipv6.example.com'; +DROP USER 'plug_dest'@'santa.claus.ipv6.example.com'; +SET @@GLOBAL.debug_dbug = @saved_dbug; +delete from mysql.plugin where name='test_plugin_server'; diff --git a/mysql-test/suite/perfschema/r/hostcache_ipv6_blocked.result b/mysql-test/suite/perfschema/r/hostcache_ipv6_blocked.result new file mode 100644 index 00000000..4cef13e0 --- /dev/null +++ b/mysql-test/suite/perfschema/r/hostcache_ipv6_blocked.result @@ -0,0 +1,431 @@ +flush status; +flush hosts; +flush user_resources; +flush privileges; +select `User`, `Host` from mysql.`user` where `host` like '%\\%%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '192.%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '2001:%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like 'santa.claus.%'; +User Host +select @@global.max_connect_errors into @saved_max_connect_errors; +set global max_connect_errors = 3; +create user 'root'@'santa.claus.ipv6.example.com'; +grant select on test.* to 'root'@'santa.claus.ipv6.example.com'; +create user 'quota'@'santa.claus.ipv6.example.com'; +grant select on test.* to 'quota'@'santa.claus.ipv6.example.com'; +connect con1,"::1",root,,test,$MASTER_MYPORT,; +select "Con1 is alive"; +Con1 is alive +Con1 is alive +select current_user(); +current_user() +root@localhost +disconnect con1; +connection default; +SET @saved_dbug = @@GLOBAL.debug_dbug; +set global debug_dbug= "+d,vio_peer_addr_fake_ipv6,getnameinfo_fake_ipv6,getaddrinfo_fake_good_ipv6,native_password_bad_reply"; +ERROR 08S01: Bad handshake +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST santa.claus.ipv6.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 1 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 1 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +ERROR 08S01: Bad handshake +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST santa.claus.ipv6.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 2 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 2 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +ERROR 08S01: Bad handshake +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST santa.claus.ipv6.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 3 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 3 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +ERROR HY000: Host '2001:db8::6:6' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts' +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST santa.claus.ipv6.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 3 +COUNT_HOST_BLOCKED_ERRORS 1 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 3 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +ERROR HY000: Host '2001:db8::6:6' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts' +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST santa.claus.ipv6.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 3 +COUNT_HOST_BLOCKED_ERRORS 2 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 3 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +flush hosts; +ERROR 08S01: Bad handshake +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST santa.claus.ipv6.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 1 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 1 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +ERROR 08S01: Bad handshake +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST santa.claus.ipv6.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 2 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 2 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +connection default; +set global debug_dbug= "-d,native_password_bad_reply"; +message +Valid connection should reset SUM_CONNECT_ERROR counter +connection default; +set global debug_dbug= "+d,native_password_bad_reply"; +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST santa.claus.ipv6.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 2 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +ERROR 08S01: Bad handshake +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST santa.claus.ipv6.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 1 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 3 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +ERROR 08S01: Bad handshake +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST santa.claus.ipv6.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 2 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 4 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +ERROR 08S01: Bad handshake +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST santa.claus.ipv6.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 3 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 5 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +ERROR HY000: Host '2001:db8::6:6' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts' +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST santa.claus.ipv6.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 3 +COUNT_HOST_BLOCKED_ERRORS 1 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 5 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +ERROR HY000: Host '2001:db8::6:6' is blocked because of many connection errors; unblock with 'mariadb-admin flush-hosts' +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST santa.claus.ipv6.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 3 +COUNT_HOST_BLOCKED_ERRORS 2 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 5 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +revoke select on test.* from 'root'@'santa.claus.ipv6.example.com'; +drop user 'root'@'santa.claus.ipv6.example.com'; +revoke select on test.* from 'quota'@'santa.claus.ipv6.example.com'; +drop user 'quota'@'santa.claus.ipv6.example.com'; +set global max_connect_errors = @saved_max_connect_errors; +SET @@GLOBAL.debug_dbug = @saved_dbug; diff --git a/mysql-test/suite/perfschema/r/hostcache_ipv6_max_con.result b/mysql-test/suite/perfschema/r/hostcache_ipv6_max_con.result new file mode 100644 index 00000000..c109fe8c --- /dev/null +++ b/mysql-test/suite/perfschema/r/hostcache_ipv6_max_con.result @@ -0,0 +1,706 @@ +flush status; +flush hosts; +flush user_resources; +flush privileges; +select `User`, `Host` from mysql.`user` where `host` like '%\\%%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '192.%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '2001:%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like 'santa.claus.%'; +User Host +SET @saved_max_connections=@@global.max_connections; +SET @saved_max_user_connections=@@global.max_user_connections; +create user 'quota'@'santa.claus.ipv6.example.com'; +grant select on test.* to 'quota'@'santa.claus.ipv6.example.com'; +grant usage on *.* to 'quota'@'santa.claus.ipv6.example.com' + with max_connections_per_hour 3; +connect con1,"::1",root,,test,$MASTER_MYPORT,; +select "Con1 is alive"; +Con1 is alive +Con1 is alive +select current_user(); +current_user() +root@localhost +disconnect con1; +connection default; +SET @saved_dbug = @@GLOBAL.debug_dbug; +set global debug_dbug= "+d,vio_peer_addr_fake_ipv6,getnameinfo_fake_ipv6,getaddrinfo_fake_good_ipv6"; +connect con2a,"::1",quota,,test,$MASTER_MYPORT,; +select "Con2a is alive"; +Con2a is alive +Con2a is alive +select current_user(); +current_user() +quota@santa.claus.ipv6.example.com +disconnect con2a; +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST santa.claus.ipv6.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN null +LAST_ERROR_SEEN null +connect con2b,"::1",quota,,test,$MASTER_MYPORT,; +select "Con2b is alive"; +Con2b is alive +Con2b is alive +select current_user(); +current_user() +quota@santa.claus.ipv6.example.com +disconnect con2b; +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST santa.claus.ipv6.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN null +LAST_ERROR_SEEN null +connect con2c,"::1",quota,,test,$MASTER_MYPORT,; +select "Con2c is alive"; +Con2c is alive +Con2c is alive +select current_user(); +current_user() +quota@santa.claus.ipv6.example.com +disconnect con2c; +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST santa.claus.ipv6.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN null +LAST_ERROR_SEEN null +ERROR 42000: User 'quota' has exceeded the 'max_connections_per_hour' resource (current value: 3) +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST santa.claus.ipv6.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 1 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +ERROR 42000: User 'quota' has exceeded the 'max_connections_per_hour' resource (current value: 3) +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST santa.claus.ipv6.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 2 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +grant usage on *.* to 'quota'@'santa.claus.ipv6.example.com' + with max_connections_per_hour 0; +grant usage on *.* to 'quota'@'santa.claus.ipv6.example.com' + with max_user_connections 3; +flush user_resources; +connect con3a,"::1",quota,,test,$MASTER_MYPORT,; +select "Con7 is alive"; +Con7 is alive +Con7 is alive +select current_user(); +current_user() +quota@santa.claus.ipv6.example.com +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST santa.claus.ipv6.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 2 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +connect con3b,"::1",quota,,test,$MASTER_MYPORT,; +select "Con3b is alive"; +Con3b is alive +Con3b is alive +select current_user(); +current_user() +quota@santa.claus.ipv6.example.com +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST santa.claus.ipv6.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 2 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +connect con3c,"::1",quota,,test,$MASTER_MYPORT,; +select "Con3c is alive"; +Con3c is alive +Con3c is alive +select current_user(); +current_user() +quota@santa.claus.ipv6.example.com +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST santa.claus.ipv6.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 2 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +ERROR 42000: User 'quota' has exceeded the 'max_user_connections' resource (current value: 3) +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST santa.claus.ipv6.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 1 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 2 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +ERROR 42000: User 'quota' has exceeded the 'max_user_connections' resource (current value: 3) +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST santa.claus.ipv6.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 2 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 2 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +disconnect con3a; +disconnect con3b; +disconnect con3c; +grant usage on *.* to 'quota'@'santa.claus.ipv6.example.com' + with max_user_connections 0; +flush user_resources; +set global max_user_connections = 3; +connect con4a,"::1",quota,,test,$MASTER_MYPORT,; +select "Con4a is alive"; +Con4a is alive +Con4a is alive +select current_user(); +current_user() +quota@santa.claus.ipv6.example.com +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST santa.claus.ipv6.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 2 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 2 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +connect con4b,"::1",quota,,test,$MASTER_MYPORT,; +select "Con4b is alive"; +Con4b is alive +Con4b is alive +select current_user(); +current_user() +quota@santa.claus.ipv6.example.com +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST santa.claus.ipv6.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 2 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 2 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +connect con4c,"::1",quota,,test,$MASTER_MYPORT,; +select "Con4c is alive"; +Con4c is alive +Con4c is alive +select current_user(); +current_user() +quota@santa.claus.ipv6.example.com +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST santa.claus.ipv6.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 2 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 2 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +ERROR 42000: User quota already has more than 'max_user_connections' active connections +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST santa.claus.ipv6.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 3 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 2 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +ERROR 42000: User quota already has more than 'max_user_connections' active connections +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST santa.claus.ipv6.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 4 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 2 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +disconnect con4a; +disconnect con4b; +disconnect con4c; +set global max_user_connections = 0; +set global max_connections = 10; +flush user_resources; +connect tmp_con1,"::1",quota,,test,$MASTER_MYPORT,; +connect tmp_con2,"::1",quota,,test,$MASTER_MYPORT,; +connect tmp_con3,"::1",quota,,test,$MASTER_MYPORT,; +connect tmp_con4,"::1",quota,,test,$MASTER_MYPORT,; +connect tmp_con5,"::1",quota,,test,$MASTER_MYPORT,; +connect tmp_con6,"::1",quota,,test,$MASTER_MYPORT,; +connect tmp_con7,"::1",quota,,test,$MASTER_MYPORT,; +connect con5a,"::1",quota,,test,$MASTER_MYPORT,; +select "Con4a is alive"; +Con4a is alive +Con4a is alive +select current_user(); +current_user() +quota@santa.claus.ipv6.example.com +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST santa.claus.ipv6.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 4 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 2 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +connect con5b,"::1",quota,,test,$MASTER_MYPORT,; +select "Con5b is alive"; +Con5b is alive +Con5b is alive +select current_user(); +current_user() +quota@santa.claus.ipv6.example.com +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST santa.claus.ipv6.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 4 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 2 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +Got one of the listed errors +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST santa.claus.ipv6.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 4 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 2 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +Got one of the listed errors +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST santa.claus.ipv6.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 4 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 2 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +disconnect con5a; +disconnect con5b; +disconnect tmp_con1; +disconnect tmp_con2; +disconnect tmp_con3; +disconnect tmp_con4; +disconnect tmp_con5; +disconnect tmp_con6; +disconnect tmp_con7; +set global max_connections = @saved_max_connections; +set global max_user_connections = @saved_max_user_connections; +drop user 'quota'@'santa.claus.ipv6.example.com'; +SET @@GLOBAL.debug_dbug = @saved_dbug; diff --git a/mysql-test/suite/perfschema/r/hostcache_ipv6_nameinfo_again_allow.result b/mysql-test/suite/perfschema/r/hostcache_ipv6_nameinfo_again_allow.result new file mode 100644 index 00000000..f9c1f736 --- /dev/null +++ b/mysql-test/suite/perfschema/r/hostcache_ipv6_nameinfo_again_allow.result @@ -0,0 +1,182 @@ +call mtr.add_suppression("2001:db8::6:6"); +flush status; +flush hosts; +flush user_resources; +flush privileges; +select `User`, `Host` from mysql.`user` where `host` like '%\\%%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '192.%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '2001:%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like 'santa.claus.%'; +User Host +create user 'root'@'2001:db8::6:6'; +grant select on test.* to 'root'@'2001:db8::6:6'; +create user 'root'@'santa.claus.ipv6.example.com'; +grant select on test.* to 'root'@'santa.claus.ipv6.example.com'; +connect con1,"::1",root,,test,$MASTER_MYPORT,; +select "Con1 is alive"; +Con1 is alive +Con1 is alive +select current_user(); +current_user() +root@localhost +disconnect con1; +connection default; +SET @saved_dbug = @@GLOBAL.debug_dbug; +set global debug_dbug= "+d,vio_peer_addr_fake_ipv6,getnameinfo_error_again"; +connect con2,"::1",root,,test,$MASTER_MYPORT,; +select "Con2 is alive"; +Con2 is alive +Con2 is alive +select current_user(); +current_user() +root@2001:db8::6:6 +disconnect con2; +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST NULL +HOST_VALIDATED NO +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 1 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +connect con3,"::1",root,,test,$MASTER_MYPORT,; +select "Con3 is alive"; +Con3 is alive +Con3 is alive +select current_user(); +current_user() +root@2001:db8::6:6 +disconnect con3; +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST NULL +HOST_VALIDATED NO +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 2 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +set global debug_dbug= "+d,vio_peer_addr_fake_ipv6,getnameinfo_fake_ipv6,getaddrinfo_fake_good_ipv6"; +connect con4,"::1",root,,test,$MASTER_MYPORT,; +select "Con4 is alive"; +Con4 is alive +Con4 is alive +select current_user(); +current_user() +root@santa.claus.ipv6.example.com +disconnect con4; +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST santa.claus.ipv6.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 2 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +connect con5,"::1",root,,test,$MASTER_MYPORT,; +select "Con5 is alive"; +Con5 is alive +Con5 is alive +select current_user(); +current_user() +root@santa.claus.ipv6.example.com +disconnect con5; +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST santa.claus.ipv6.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 2 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +revoke select on test.* from 'root'@'2001:db8::6:6'; +revoke select on test.* from 'root'@'santa.claus.ipv6.example.com'; +drop user 'root'@'2001:db8::6:6'; +drop user 'root'@'santa.claus.ipv6.example.com'; +SET @@GLOBAL.debug_dbug = @saved_dbug; diff --git a/mysql-test/suite/perfschema/r/hostcache_ipv6_nameinfo_again_deny.result b/mysql-test/suite/perfschema/r/hostcache_ipv6_nameinfo_again_deny.result new file mode 100644 index 00000000..675694d1 --- /dev/null +++ b/mysql-test/suite/perfschema/r/hostcache_ipv6_nameinfo_again_deny.result @@ -0,0 +1,146 @@ +call mtr.add_suppression("2001:db8::6:6"); +flush status; +flush hosts; +flush user_resources; +flush privileges; +select `User`, `Host` from mysql.`user` where `host` like '%\\%%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '192.%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '2001:%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like 'santa.claus.%'; +User Host +connect con1,"::1",root,,test,$MASTER_MYPORT,; +select "Con1 is alive"; +Con1 is alive +Con1 is alive +select current_user(); +current_user() +root@localhost +disconnect con1; +connection default; +SET @saved_dbug = @@GLOBAL.debug_dbug; +set global debug_dbug= "+d,vio_peer_addr_fake_ipv6,getnameinfo_error_again"; +ERROR HY000: Host '2001:db8::6:6' is not allowed to connect to this MariaDB server +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST NULL +HOST_VALIDATED NO +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 1 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 1 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +ERROR HY000: Host '2001:db8::6:6' is not allowed to connect to this MariaDB server +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST NULL +HOST_VALIDATED NO +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 2 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 2 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +set global debug_dbug= "+d,vio_peer_addr_fake_ipv6,getnameinfo_fake_ipv6,getaddrinfo_fake_good_ipv6"; +ERROR HY000: Host 'santa.claus.ipv6.example.com' is not allowed to connect to this MariaDB server +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST santa.claus.ipv6.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 2 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 3 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +ERROR HY000: Host 'santa.claus.ipv6.example.com' is not allowed to connect to this MariaDB server +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST santa.claus.ipv6.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 2 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 4 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +SET @@GLOBAL.debug_dbug = @saved_dbug; diff --git a/mysql-test/suite/perfschema/r/hostcache_ipv6_nameinfo_noname_allow.result b/mysql-test/suite/perfschema/r/hostcache_ipv6_nameinfo_noname_allow.result new file mode 100644 index 00000000..b8ae214f --- /dev/null +++ b/mysql-test/suite/perfschema/r/hostcache_ipv6_nameinfo_noname_allow.result @@ -0,0 +1,103 @@ +call mtr.add_suppression("2001:db8::6:6"); +flush status; +flush hosts; +flush user_resources; +flush privileges; +select `User`, `Host` from mysql.`user` where `host` like '%\\%%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '192.%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '2001:%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like 'santa.claus.%'; +User Host +create user 'root'@'2001:db8::6:6'; +grant select on test.* to 'root'@'2001:db8::6:6'; +connect con1,"::1",root,,test,$MASTER_MYPORT,; +select "Con1 is alive"; +Con1 is alive +Con1 is alive +select current_user(); +current_user() +root@localhost +disconnect con1; +connection default; +SET @saved_dbug = @@GLOBAL.debug_dbug; +set global debug_dbug= "+d,vio_peer_addr_fake_ipv6,getnameinfo_error_noname"; +connect con2,"::1",root,,test,$MASTER_MYPORT,; +select "Con2 is alive"; +Con2 is alive +Con2 is alive +select current_user(); +current_user() +root@2001:db8::6:6 +disconnect con2; +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST NULL +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 1 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +connect con3,"::1",root,,test,$MASTER_MYPORT,; +select "Con3 is alive"; +Con3 is alive +Con3 is alive +select current_user(); +current_user() +root@2001:db8::6:6 +disconnect con3; +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST NULL +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 1 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +revoke select on test.* from 'root'@'2001:db8::6:6'; +drop user 'root'@'2001:db8::6:6'; +SET @@GLOBAL.debug_dbug = @saved_dbug; diff --git a/mysql-test/suite/perfschema/r/hostcache_ipv6_nameinfo_noname_deny.result b/mysql-test/suite/perfschema/r/hostcache_ipv6_nameinfo_noname_deny.result new file mode 100644 index 00000000..b5f098a6 --- /dev/null +++ b/mysql-test/suite/perfschema/r/hostcache_ipv6_nameinfo_noname_deny.result @@ -0,0 +1,85 @@ +call mtr.add_suppression("2001:db8::6:6"); +flush status; +flush hosts; +flush user_resources; +flush privileges; +select `User`, `Host` from mysql.`user` where `host` like '%\\%%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '192.%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '2001:%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like 'santa.claus.%'; +User Host +connect con1,"::1",root,,test,$MASTER_MYPORT,; +select "Con1 is alive"; +Con1 is alive +Con1 is alive +select current_user(); +current_user() +root@localhost +disconnect con1; +connection default; +SET @saved_dbug = @@GLOBAL.debug_dbug; +set global debug_dbug= "+d,vio_peer_addr_fake_ipv6,getnameinfo_error_noname"; +ERROR HY000: Host '2001:db8::6:6' is not allowed to connect to this MariaDB server +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST NULL +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 1 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 1 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +ERROR HY000: Host '2001:db8::6:6' is not allowed to connect to this MariaDB server +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST NULL +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 1 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 2 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +SET @@GLOBAL.debug_dbug = @saved_dbug; diff --git a/mysql-test/suite/perfschema/r/hostcache_ipv6_passwd.result b/mysql-test/suite/perfschema/r/hostcache_ipv6_passwd.result new file mode 100644 index 00000000..a6f04e0c --- /dev/null +++ b/mysql-test/suite/perfschema/r/hostcache_ipv6_passwd.result @@ -0,0 +1,211 @@ +flush status; +flush hosts; +flush user_resources; +flush privileges; +select `User`, `Host` from mysql.`user` where `host` like '%\\%%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '192.%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '2001:%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like 'santa.claus.%'; +User Host +create user 'user_without'@'santa.claus.ipv6.example.com'; +create user 'user_with'@'santa.claus.ipv6.example.com' + identified by 'good_password'; +grant select on test.* to 'user_without'@'santa.claus.ipv6.example.com'; +grant select on test.* to 'user_with'@'santa.claus.ipv6.example.com'; +connect con1,"::1",root,,test,$MASTER_MYPORT,; +select "Con1 is alive"; +Con1 is alive +Con1 is alive +select current_user(); +current_user() +root@localhost +disconnect con1; +connection default; +SET @saved_dbug = @@GLOBAL.debug_dbug; +set global debug_dbug= "+d,vio_peer_addr_fake_ipv6,getnameinfo_fake_ipv6,getaddrinfo_fake_good_ipv6"; +ERROR 28000: Access denied for user 'user_without'@'santa.claus.ipv6.example.com' (using password: YES) +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST santa.claus.ipv6.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 1 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +ERROR 28000: Access denied for user 'user_without'@'santa.claus.ipv6.example.com' (using password: YES) +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST santa.claus.ipv6.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 2 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +ERROR 28000: Access denied for user 'user_with'@'santa.claus.ipv6.example.com' (using password: NO) +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST santa.claus.ipv6.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 3 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +ERROR 28000: Access denied for user 'user_with'@'santa.claus.ipv6.example.com' (using password: NO) +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST santa.claus.ipv6.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 4 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +ERROR 28000: Access denied for user 'user_with'@'santa.claus.ipv6.example.com' (using password: YES) +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST santa.claus.ipv6.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 5 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +ERROR 28000: Access denied for user 'user_with'@'santa.claus.ipv6.example.com' (using password: YES) +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST santa.claus.ipv6.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 6 +COUNT_SSL_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +drop user 'user_with'@'santa.claus.ipv6.example.com'; +drop user 'user_without'@'santa.claus.ipv6.example.com'; +SET @@GLOBAL.debug_dbug = @saved_dbug; diff --git a/mysql-test/suite/perfschema/r/hostcache_ipv6_ssl.result b/mysql-test/suite/perfschema/r/hostcache_ipv6_ssl.result new file mode 100644 index 00000000..90c8d9cc --- /dev/null +++ b/mysql-test/suite/perfschema/r/hostcache_ipv6_ssl.result @@ -0,0 +1,155 @@ +flush status; +flush hosts; +flush user_resources; +flush privileges; +select `User`, `Host` from mysql.`user` where `host` like '%\\%%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '192.%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '2001:%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like 'santa.claus.%'; +User Host +create user 'user_ssl'@'santa.claus.ipv6.example.com'; +create user 'user_ssl_x509'@'santa.claus.ipv6.example.com' + identified by 'good_password'; +grant select on test.* to 'user_ssl'@'santa.claus.ipv6.example.com' + REQUIRE SSL; +grant select on test.* to 'user_ssl_x509'@'santa.claus.ipv6.example.com' + REQUIRE SUBJECT '/C=??/ST=??/L=??/ + O=No such thing/ + CN=Santa Claus/emailAddress=santa.claus@example.com'; +connect con1,"::1",root,,test,$MASTER_MYPORT,; +select "Con1 is alive"; +Con1 is alive +Con1 is alive +select current_user(); +current_user() +root@localhost +disconnect con1; +connection default; +SET @saved_dbug = @@GLOBAL.debug_dbug; +set global debug_dbug= "+d,vio_peer_addr_fake_ipv6,getnameinfo_fake_ipv6,getaddrinfo_fake_good_ipv6"; +ERROR 28000: Access denied for user 'user_ssl'@'santa.claus.ipv6.example.com' (using password: NO) +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST santa.claus.ipv6.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 1 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +ERROR 28000: Access denied for user 'user_ssl'@'santa.claus.ipv6.example.com' (using password: NO) +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST santa.claus.ipv6.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 2 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +ERROR 28000: Access denied for user 'user_ssl_x509'@'santa.claus.ipv6.example.com' (using password: YES) +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST santa.claus.ipv6.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 3 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +ERROR 28000: Access denied for user 'user_ssl_x509'@'santa.claus.ipv6.example.com' (using password: YES) +connection default; +# Dumping performance_schema.host_cache +IP 2001:db8::6:6 +HOST santa.claus.ipv6.example.com +HOST_VALIDATED YES +SUM_CONNECT_ERRORS 0 +COUNT_HOST_BLOCKED_ERRORS 0 +COUNT_NAMEINFO_TRANSIENT_ERRORS 0 +COUNT_NAMEINFO_PERMANENT_ERRORS 0 +COUNT_FORMAT_ERRORS 0 +COUNT_ADDRINFO_TRANSIENT_ERRORS 0 +COUNT_ADDRINFO_PERMANENT_ERRORS 0 +COUNT_FCRDNS_ERRORS 0 +COUNT_HOST_ACL_ERRORS 0 +COUNT_NO_AUTH_PLUGIN_ERRORS 0 +COUNT_AUTH_PLUGIN_ERRORS 0 +COUNT_HANDSHAKE_ERRORS 0 +COUNT_PROXY_USER_ERRORS 0 +COUNT_PROXY_USER_ACL_ERRORS 0 +COUNT_AUTHENTICATION_ERRORS 0 +COUNT_SSL_ERRORS 4 +COUNT_MAX_USER_CONNECTIONS_ERRORS 0 +COUNT_MAX_USER_CONNECTIONS_PER_HOUR_ERRORS 0 +COUNT_DEFAULT_DATABASE_ERRORS 0 +COUNT_INIT_CONNECT_ERRORS 0 +COUNT_LOCAL_ERRORS 0 +COUNT_UNKNOWN_ERRORS 0 +FIRST_ERROR_SEEN set +LAST_ERROR_SEEN set +drop user 'user_ssl'@'santa.claus.ipv6.example.com'; +drop user 'user_ssl_x509'@'santa.claus.ipv6.example.com'; +SET @@GLOBAL.debug_dbug = @saved_dbug; diff --git a/mysql-test/suite/perfschema/r/hostcache_peer_addr.result b/mysql-test/suite/perfschema/r/hostcache_peer_addr.result new file mode 100644 index 00000000..6aad20ec --- /dev/null +++ b/mysql-test/suite/perfschema/r/hostcache_peer_addr.result @@ -0,0 +1,63 @@ +flush status; +flush hosts; +flush user_resources; +flush privileges; +select `User`, `Host` from mysql.`user` where `host` like '%\\%%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '192.%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like '2001:%'; +User Host +select `User`, `Host` from mysql.`user` where `user` like 'santa.claus.%'; +User Host +show global status like "connection_errors_%"; +Variable_name Value +Connection_errors_accept 0 +Connection_errors_internal 0 +Connection_errors_max_connections 0 +Connection_errors_peer_address 0 +Connection_errors_select 0 +Connection_errors_tcpwrap 0 +connect con1,"127.0.0.1",root,,test,$MASTER_MYPORT,; +select "Con1 is alive"; +Con1 is alive +Con1 is alive +select current_user(); +current_user() +root@localhost +disconnect con1; +connection default; +SET @saved_dbug = @@GLOBAL.debug_dbug; +set global debug_dbug= "+d,vio_peer_addr_error"; +ERROR HY000: Can't get hostname for your address +connection default; +show global status like "connection_errors_%"; +Variable_name Value +Connection_errors_accept 0 +Connection_errors_internal 0 +Connection_errors_max_connections 0 +Connection_errors_peer_address 1 +Connection_errors_select 0 +Connection_errors_tcpwrap 0 +# Dumping performance_schema.host_cache +ERROR HY000: Can't get hostname for your address +connection default; +show global status like "connection_errors_%"; +Variable_name Value +Connection_errors_accept 0 +Connection_errors_internal 0 +Connection_errors_max_connections 0 +Connection_errors_peer_address 2 +Connection_errors_select 0 +Connection_errors_tcpwrap 0 +# Dumping performance_schema.host_cache +SET @@GLOBAL.debug_dbug = @saved_dbug; +flush status; +show global status like "connection_errors_%"; +Variable_name Value +Connection_errors_accept 0 +Connection_errors_internal 0 +Connection_errors_max_connections 0 +Connection_errors_peer_address 0 +Connection_errors_select 0 +Connection_errors_tcpwrap 0 diff --git a/mysql-test/suite/perfschema/r/indexed_table_io.result b/mysql-test/suite/perfschema/r/indexed_table_io.result new file mode 100644 index 00000000..0f1d219c --- /dev/null +++ b/mysql-test/suite/perfschema/r/indexed_table_io.result @@ -0,0 +1,166 @@ +drop table if exists test.no_index_tab; +drop table if exists test.index_tab; +drop table if exists test.marker; +create table test.marker(a int); +update performance_schema.setup_consumers set enabled='NO'; +update performance_schema.setup_instruments set enabled='NO'; +update performance_schema.setup_instruments set enabled='YES' + where name like "wait/io/table/%"; +truncate table performance_schema.events_waits_history_long; +flush status; +flush tables; +create table test.no_index_tab +( a int, b char(30) default 'Default') engine = MyISAM; +create table test.index_tab +( a int, b char(30) default 'Default', unique key uidx(a)) engine = MyISAM; +show create table test.no_index_tab; +Table Create Table +no_index_tab CREATE TABLE `no_index_tab` ( + `a` int(11) DEFAULT NULL, + `b` char(30) DEFAULT 'Default' +) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci +show create table test.index_tab; +Table Create Table +index_tab CREATE TABLE `index_tab` ( + `a` int(11) DEFAULT NULL, + `b` char(30) DEFAULT 'Default', + UNIQUE KEY `uidx` (`a`) +) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci +truncate table performance_schema.events_waits_history_long; +update performance_schema.setup_consumers set enabled='YES'; +# Printing of 100 inserts per table is suppressed +update performance_schema.setup_consumers set enabled='NO'; +select SUM(NUMBER_OF_BYTES) +from performance_schema.events_waits_history_long +where event_name like 'wait/io/table/%' +and object_schema = 'test' +and object_name = 'no_index_tab'; +SUM(NUMBER_OF_BYTES) +100 +select SUM(NUMBER_OF_BYTES) +from performance_schema.events_waits_history_long +where event_name like 'wait/io/table/%' +and object_schema = 'test' +and object_name = 'index_tab'; +SUM(NUMBER_OF_BYTES) +100 +select count(*) from test.no_index_tab; +count(*) +100 +select count(*) from test.index_tab; +count(*) +100 +truncate table performance_schema.events_waits_history_long; +update performance_schema.setup_consumers set enabled='YES'; +select avg(a) from test.no_index_tab; +avg(a) +50.5000 +update performance_schema.setup_consumers set enabled='NO'; +select SUM(NUMBER_OF_BYTES) +from performance_schema.events_waits_history_long +where event_name like 'wait/io/table/%' +and object_schema = 'test' +and object_name = 'no_index_tab'; +SUM(NUMBER_OF_BYTES) +100 +truncate table performance_schema.events_waits_history_long; +update performance_schema.setup_consumers set enabled='YES'; +select avg(a) from test.index_tab; +avg(a) +50.5000 +update performance_schema.setup_consumers set enabled='NO'; +select SUM(NUMBER_OF_BYTES) +from performance_schema.events_waits_history_long +where event_name like 'wait/io/table/%' +and object_schema = 'test' +and object_name = 'index_tab'; +SUM(NUMBER_OF_BYTES) +100 +truncate table performance_schema.events_waits_history_long; +update performance_schema.setup_consumers set enabled='YES'; +select 1 as my_column from test.no_index_tab where a = 50; +my_column +1 +update performance_schema.setup_consumers set enabled='NO'; +select SUM(NUMBER_OF_BYTES) +from performance_schema.events_waits_history_long +where event_name like 'wait/io/table/%' +and object_schema = 'test' +and object_name = 'no_index_tab'; +SUM(NUMBER_OF_BYTES) +100 +truncate table performance_schema.events_waits_history_long; +update performance_schema.setup_consumers set enabled='YES'; +select 1 as my_column from test.index_tab where a = 50; +my_column +1 +update performance_schema.setup_consumers set enabled='NO'; +select SUM(NUMBER_OF_BYTES) +from performance_schema.events_waits_history_long +where event_name like 'wait/io/table/%' +and object_schema = 'test' +and object_name = 'index_tab'; +SUM(NUMBER_OF_BYTES) +1 +truncate table performance_schema.events_waits_history_long; +update performance_schema.setup_consumers set enabled='YES'; +delete from test.no_index_tab where a = 51; +update performance_schema.setup_consumers set enabled='NO'; +select SUM(NUMBER_OF_BYTES) +from performance_schema.events_waits_history_long +where event_name like 'wait/io/table/%' +and object_schema = 'test' +and object_name = 'no_index_tab'; +SUM(NUMBER_OF_BYTES) +102 +truncate table performance_schema.events_waits_history_long; +update performance_schema.setup_consumers set enabled='YES'; +delete from test.index_tab where a = 51; +update performance_schema.setup_consumers set enabled='NO'; +select SUM(NUMBER_OF_BYTES) +from performance_schema.events_waits_history_long +where event_name like 'wait/io/table/%' +and object_schema = 'test' +and object_name = 'index_tab'; +SUM(NUMBER_OF_BYTES) +2 +show global status like 'performance_schema_%'; +Variable_name Value +Performance_schema_accounts_lost 0 +Performance_schema_cond_classes_lost 0 +Performance_schema_cond_instances_lost 0 +Performance_schema_digest_lost 0 +Performance_schema_file_classes_lost 0 +Performance_schema_file_handles_lost 0 +Performance_schema_file_instances_lost 0 +Performance_schema_hosts_lost 0 +Performance_schema_index_stat_lost 0 +Performance_schema_locker_lost 0 +Performance_schema_memory_classes_lost 0 +Performance_schema_metadata_lock_lost 0 +Performance_schema_mutex_classes_lost 0 +Performance_schema_mutex_instances_lost 0 +Performance_schema_nested_statement_lost 0 +Performance_schema_prepared_statements_lost 0 +Performance_schema_program_lost 0 +Performance_schema_rwlock_classes_lost 0 +Performance_schema_rwlock_instances_lost 0 +Performance_schema_session_connect_attrs_lost 0 +Performance_schema_socket_classes_lost 0 +Performance_schema_socket_instances_lost 0 +Performance_schema_stage_classes_lost 0 +Performance_schema_statement_classes_lost 0 +Performance_schema_table_handles_lost 0 +Performance_schema_table_instances_lost 0 +Performance_schema_table_lock_stat_lost 0 +Performance_schema_thread_classes_lost 0 +Performance_schema_thread_instances_lost 0 +Performance_schema_users_lost 0 +drop table test.no_index_tab; +drop table test.index_tab; +update performance_schema.setup_consumers set enabled='NO'; +truncate performance_schema.events_waits_history_long; +drop table test.marker; +flush status; +update performance_schema.setup_instruments set enabled='YES'; +update performance_schema.setup_consumers set enabled='YES'; diff --git a/mysql-test/suite/perfschema/r/information_schema.result b/mysql-test/suite/perfschema/r/information_schema.result new file mode 100644 index 00000000..7c400ed0 --- /dev/null +++ b/mysql-test/suite/perfschema/r/information_schema.result @@ -0,0 +1,867 @@ +select TABLE_SCHEMA, lower(TABLE_NAME), TABLE_CATALOG +from information_schema.tables +where TABLE_SCHEMA='performance_schema' + order by table_name; +TABLE_SCHEMA lower(TABLE_NAME) TABLE_CATALOG +performance_schema accounts def +performance_schema cond_instances def +performance_schema events_stages_current def +performance_schema events_stages_history def +performance_schema events_stages_history_long def +performance_schema events_stages_summary_by_account_by_event_name def +performance_schema events_stages_summary_by_host_by_event_name def +performance_schema events_stages_summary_by_thread_by_event_name def +performance_schema events_stages_summary_by_user_by_event_name def +performance_schema events_stages_summary_global_by_event_name def +performance_schema events_statements_current def +performance_schema events_statements_history def +performance_schema events_statements_history_long def +performance_schema events_statements_summary_by_account_by_event_name def +performance_schema events_statements_summary_by_digest def +performance_schema events_statements_summary_by_host_by_event_name def +performance_schema events_statements_summary_by_program def +performance_schema events_statements_summary_by_thread_by_event_name def +performance_schema events_statements_summary_by_user_by_event_name def +performance_schema events_statements_summary_global_by_event_name def +performance_schema events_transactions_current def +performance_schema events_transactions_history def +performance_schema events_transactions_history_long def +performance_schema events_transactions_summary_by_account_by_event_name def +performance_schema events_transactions_summary_by_host_by_event_name def +performance_schema events_transactions_summary_by_thread_by_event_name def +performance_schema events_transactions_summary_by_user_by_event_name def +performance_schema events_transactions_summary_global_by_event_name def +performance_schema events_waits_current def +performance_schema events_waits_history def +performance_schema events_waits_history_long def +performance_schema events_waits_summary_by_account_by_event_name def +performance_schema events_waits_summary_by_host_by_event_name def +performance_schema events_waits_summary_by_instance def +performance_schema events_waits_summary_by_thread_by_event_name def +performance_schema events_waits_summary_by_user_by_event_name def +performance_schema events_waits_summary_global_by_event_name def +performance_schema file_instances def +performance_schema file_summary_by_event_name def +performance_schema file_summary_by_instance def +performance_schema global_status def +performance_schema hosts def +performance_schema host_cache def +performance_schema memory_summary_by_account_by_event_name def +performance_schema memory_summary_by_host_by_event_name def +performance_schema memory_summary_by_thread_by_event_name def +performance_schema memory_summary_by_user_by_event_name def +performance_schema memory_summary_global_by_event_name def +performance_schema metadata_locks def +performance_schema mutex_instances def +performance_schema objects_summary_global_by_type def +performance_schema performance_timers def +performance_schema prepared_statements_instances def +performance_schema replication_applier_configuration def +performance_schema replication_applier_status def +performance_schema replication_applier_status_by_coordinator def +performance_schema replication_applier_status_by_worker def +performance_schema replication_connection_configuration def +performance_schema rwlock_instances def +performance_schema session_account_connect_attrs def +performance_schema session_connect_attrs def +performance_schema session_status def +performance_schema setup_actors def +performance_schema setup_consumers def +performance_schema setup_instruments def +performance_schema setup_objects def +performance_schema setup_timers def +performance_schema socket_instances def +performance_schema socket_summary_by_event_name def +performance_schema socket_summary_by_instance def +performance_schema status_by_account def +performance_schema status_by_host def +performance_schema status_by_thread def +performance_schema status_by_user def +performance_schema table_handles def +performance_schema table_io_waits_summary_by_index_usage def +performance_schema table_io_waits_summary_by_table def +performance_schema table_lock_waits_summary_by_table def +performance_schema threads def +performance_schema users def +performance_schema user_variables_by_thread def +select lower(TABLE_NAME), TABLE_TYPE, ENGINE +from information_schema.tables +where TABLE_SCHEMA='performance_schema' + order by table_name; +lower(TABLE_NAME) TABLE_TYPE ENGINE +accounts BASE TABLE PERFORMANCE_SCHEMA +cond_instances BASE TABLE PERFORMANCE_SCHEMA +events_stages_current BASE TABLE PERFORMANCE_SCHEMA +events_stages_history BASE TABLE PERFORMANCE_SCHEMA +events_stages_history_long BASE TABLE PERFORMANCE_SCHEMA +events_stages_summary_by_account_by_event_name BASE TABLE PERFORMANCE_SCHEMA +events_stages_summary_by_host_by_event_name BASE TABLE PERFORMANCE_SCHEMA +events_stages_summary_by_thread_by_event_name BASE TABLE PERFORMANCE_SCHEMA +events_stages_summary_by_user_by_event_name BASE TABLE PERFORMANCE_SCHEMA +events_stages_summary_global_by_event_name BASE TABLE PERFORMANCE_SCHEMA +events_statements_current BASE TABLE PERFORMANCE_SCHEMA +events_statements_history BASE TABLE PERFORMANCE_SCHEMA +events_statements_history_long BASE TABLE PERFORMANCE_SCHEMA +events_statements_summary_by_account_by_event_name BASE TABLE PERFORMANCE_SCHEMA +events_statements_summary_by_digest BASE TABLE PERFORMANCE_SCHEMA +events_statements_summary_by_host_by_event_name BASE TABLE PERFORMANCE_SCHEMA +events_statements_summary_by_program BASE TABLE PERFORMANCE_SCHEMA +events_statements_summary_by_thread_by_event_name BASE TABLE PERFORMANCE_SCHEMA +events_statements_summary_by_user_by_event_name BASE TABLE PERFORMANCE_SCHEMA +events_statements_summary_global_by_event_name BASE TABLE PERFORMANCE_SCHEMA +events_transactions_current BASE TABLE PERFORMANCE_SCHEMA +events_transactions_history BASE TABLE PERFORMANCE_SCHEMA +events_transactions_history_long BASE TABLE PERFORMANCE_SCHEMA +events_transactions_summary_by_account_by_event_name BASE TABLE PERFORMANCE_SCHEMA +events_transactions_summary_by_host_by_event_name BASE TABLE PERFORMANCE_SCHEMA +events_transactions_summary_by_thread_by_event_name BASE TABLE PERFORMANCE_SCHEMA +events_transactions_summary_by_user_by_event_name BASE TABLE PERFORMANCE_SCHEMA +events_transactions_summary_global_by_event_name BASE TABLE PERFORMANCE_SCHEMA +events_waits_current BASE TABLE PERFORMANCE_SCHEMA +events_waits_history BASE TABLE PERFORMANCE_SCHEMA +events_waits_history_long BASE TABLE PERFORMANCE_SCHEMA +events_waits_summary_by_account_by_event_name BASE TABLE PERFORMANCE_SCHEMA +events_waits_summary_by_host_by_event_name BASE TABLE PERFORMANCE_SCHEMA +events_waits_summary_by_instance BASE TABLE PERFORMANCE_SCHEMA +events_waits_summary_by_thread_by_event_name BASE TABLE PERFORMANCE_SCHEMA +events_waits_summary_by_user_by_event_name BASE TABLE PERFORMANCE_SCHEMA +events_waits_summary_global_by_event_name BASE TABLE PERFORMANCE_SCHEMA +file_instances BASE TABLE PERFORMANCE_SCHEMA +file_summary_by_event_name BASE TABLE PERFORMANCE_SCHEMA +file_summary_by_instance BASE TABLE PERFORMANCE_SCHEMA +global_status BASE TABLE PERFORMANCE_SCHEMA +hosts BASE TABLE PERFORMANCE_SCHEMA +host_cache BASE TABLE PERFORMANCE_SCHEMA +memory_summary_by_account_by_event_name BASE TABLE PERFORMANCE_SCHEMA +memory_summary_by_host_by_event_name BASE TABLE PERFORMANCE_SCHEMA +memory_summary_by_thread_by_event_name BASE TABLE PERFORMANCE_SCHEMA +memory_summary_by_user_by_event_name BASE TABLE PERFORMANCE_SCHEMA +memory_summary_global_by_event_name BASE TABLE PERFORMANCE_SCHEMA +metadata_locks BASE TABLE PERFORMANCE_SCHEMA +mutex_instances BASE TABLE PERFORMANCE_SCHEMA +objects_summary_global_by_type BASE TABLE PERFORMANCE_SCHEMA +performance_timers BASE TABLE PERFORMANCE_SCHEMA +prepared_statements_instances BASE TABLE PERFORMANCE_SCHEMA +replication_applier_configuration BASE TABLE PERFORMANCE_SCHEMA +replication_applier_status BASE TABLE PERFORMANCE_SCHEMA +replication_applier_status_by_coordinator BASE TABLE PERFORMANCE_SCHEMA +replication_applier_status_by_worker BASE TABLE PERFORMANCE_SCHEMA +replication_connection_configuration BASE TABLE PERFORMANCE_SCHEMA +rwlock_instances BASE TABLE PERFORMANCE_SCHEMA +session_account_connect_attrs BASE TABLE PERFORMANCE_SCHEMA +session_connect_attrs BASE TABLE PERFORMANCE_SCHEMA +session_status BASE TABLE PERFORMANCE_SCHEMA +setup_actors BASE TABLE PERFORMANCE_SCHEMA +setup_consumers BASE TABLE PERFORMANCE_SCHEMA +setup_instruments BASE TABLE PERFORMANCE_SCHEMA +setup_objects BASE TABLE PERFORMANCE_SCHEMA +setup_timers BASE TABLE PERFORMANCE_SCHEMA +socket_instances BASE TABLE PERFORMANCE_SCHEMA +socket_summary_by_event_name BASE TABLE PERFORMANCE_SCHEMA +socket_summary_by_instance BASE TABLE PERFORMANCE_SCHEMA +status_by_account BASE TABLE PERFORMANCE_SCHEMA +status_by_host BASE TABLE PERFORMANCE_SCHEMA +status_by_thread BASE TABLE PERFORMANCE_SCHEMA +status_by_user BASE TABLE PERFORMANCE_SCHEMA +table_handles BASE TABLE PERFORMANCE_SCHEMA +table_io_waits_summary_by_index_usage BASE TABLE PERFORMANCE_SCHEMA +table_io_waits_summary_by_table BASE TABLE PERFORMANCE_SCHEMA +table_lock_waits_summary_by_table BASE TABLE PERFORMANCE_SCHEMA +threads BASE TABLE PERFORMANCE_SCHEMA +users BASE TABLE PERFORMANCE_SCHEMA +user_variables_by_thread BASE TABLE PERFORMANCE_SCHEMA +select lower(TABLE_NAME), VERSION, ROW_FORMAT +from information_schema.tables +where TABLE_SCHEMA='performance_schema' + order by table_name; +lower(TABLE_NAME) VERSION ROW_FORMAT +accounts 10 Fixed +cond_instances 10 Dynamic +events_stages_current 10 Dynamic +events_stages_history 10 Dynamic +events_stages_history_long 10 Dynamic +events_stages_summary_by_account_by_event_name 10 Dynamic +events_stages_summary_by_host_by_event_name 10 Dynamic +events_stages_summary_by_thread_by_event_name 10 Dynamic +events_stages_summary_by_user_by_event_name 10 Dynamic +events_stages_summary_global_by_event_name 10 Dynamic +events_statements_current 10 Dynamic +events_statements_history 10 Dynamic +events_statements_history_long 10 Dynamic +events_statements_summary_by_account_by_event_name 10 Dynamic +events_statements_summary_by_digest 10 Dynamic +events_statements_summary_by_host_by_event_name 10 Dynamic +events_statements_summary_by_program 10 Dynamic +events_statements_summary_by_thread_by_event_name 10 Dynamic +events_statements_summary_by_user_by_event_name 10 Dynamic +events_statements_summary_global_by_event_name 10 Dynamic +events_transactions_current 10 Dynamic +events_transactions_history 10 Dynamic +events_transactions_history_long 10 Dynamic +events_transactions_summary_by_account_by_event_name 10 Dynamic +events_transactions_summary_by_host_by_event_name 10 Dynamic +events_transactions_summary_by_thread_by_event_name 10 Dynamic +events_transactions_summary_by_user_by_event_name 10 Dynamic +events_transactions_summary_global_by_event_name 10 Dynamic +events_waits_current 10 Dynamic +events_waits_history 10 Dynamic +events_waits_history_long 10 Dynamic +events_waits_summary_by_account_by_event_name 10 Dynamic +events_waits_summary_by_host_by_event_name 10 Dynamic +events_waits_summary_by_instance 10 Dynamic +events_waits_summary_by_thread_by_event_name 10 Dynamic +events_waits_summary_by_user_by_event_name 10 Dynamic +events_waits_summary_global_by_event_name 10 Dynamic +file_instances 10 Dynamic +file_summary_by_event_name 10 Dynamic +file_summary_by_instance 10 Dynamic +global_status 10 Dynamic +hosts 10 Fixed +host_cache 10 Dynamic +memory_summary_by_account_by_event_name 10 Dynamic +memory_summary_by_host_by_event_name 10 Dynamic +memory_summary_by_thread_by_event_name 10 Dynamic +memory_summary_by_user_by_event_name 10 Dynamic +memory_summary_global_by_event_name 10 Dynamic +metadata_locks 10 Dynamic +mutex_instances 10 Dynamic +objects_summary_global_by_type 10 Dynamic +performance_timers 10 Fixed +prepared_statements_instances 10 Dynamic +replication_applier_configuration 10 Dynamic +replication_applier_status 10 Dynamic +replication_applier_status_by_coordinator 10 Dynamic +replication_applier_status_by_worker 10 Dynamic +replication_connection_configuration 10 Dynamic +rwlock_instances 10 Dynamic +session_account_connect_attrs 10 Dynamic +session_connect_attrs 10 Dynamic +session_status 10 Dynamic +setup_actors 10 Fixed +setup_consumers 10 Dynamic +setup_instruments 10 Dynamic +setup_objects 10 Dynamic +setup_timers 10 Dynamic +socket_instances 10 Dynamic +socket_summary_by_event_name 10 Dynamic +socket_summary_by_instance 10 Dynamic +status_by_account 10 Dynamic +status_by_host 10 Dynamic +status_by_thread 10 Dynamic +status_by_user 10 Dynamic +table_handles 10 Dynamic +table_io_waits_summary_by_index_usage 10 Dynamic +table_io_waits_summary_by_table 10 Dynamic +table_lock_waits_summary_by_table 10 Dynamic +threads 10 Dynamic +users 10 Fixed +user_variables_by_thread 10 Dynamic +select lower(TABLE_NAME), AVG_ROW_LENGTH +from information_schema.tables +where TABLE_SCHEMA='performance_schema' and +lower(TABLE_NAME) not regexp '^variables|variables$|^status|session_status|global_status' + order by table_name; +lower(TABLE_NAME) AVG_ROW_LENGTH +accounts 0 +cond_instances 0 +events_stages_current 0 +events_stages_history 0 +events_stages_history_long 0 +events_stages_summary_by_account_by_event_name 0 +events_stages_summary_by_host_by_event_name 0 +events_stages_summary_by_thread_by_event_name 0 +events_stages_summary_by_user_by_event_name 0 +events_stages_summary_global_by_event_name 0 +events_statements_current 0 +events_statements_history 0 +events_statements_history_long 0 +events_statements_summary_by_account_by_event_name 0 +events_statements_summary_by_digest 0 +events_statements_summary_by_host_by_event_name 0 +events_statements_summary_by_program 0 +events_statements_summary_by_thread_by_event_name 0 +events_statements_summary_by_user_by_event_name 0 +events_statements_summary_global_by_event_name 0 +events_transactions_current 0 +events_transactions_history 0 +events_transactions_history_long 0 +events_transactions_summary_by_account_by_event_name 0 +events_transactions_summary_by_host_by_event_name 0 +events_transactions_summary_by_thread_by_event_name 0 +events_transactions_summary_by_user_by_event_name 0 +events_transactions_summary_global_by_event_name 0 +events_waits_current 0 +events_waits_history 0 +events_waits_history_long 0 +events_waits_summary_by_account_by_event_name 0 +events_waits_summary_by_host_by_event_name 0 +events_waits_summary_by_instance 0 +events_waits_summary_by_thread_by_event_name 0 +events_waits_summary_by_user_by_event_name 0 +events_waits_summary_global_by_event_name 0 +file_instances 0 +file_summary_by_event_name 0 +file_summary_by_instance 0 +hosts 0 +host_cache 0 +memory_summary_by_account_by_event_name 0 +memory_summary_by_host_by_event_name 0 +memory_summary_by_thread_by_event_name 0 +memory_summary_by_user_by_event_name 0 +memory_summary_global_by_event_name 0 +metadata_locks 0 +mutex_instances 0 +objects_summary_global_by_type 0 +performance_timers 0 +prepared_statements_instances 0 +replication_applier_configuration 0 +replication_applier_status 0 +replication_applier_status_by_coordinator 0 +replication_applier_status_by_worker 0 +replication_connection_configuration 0 +rwlock_instances 0 +session_account_connect_attrs 0 +session_connect_attrs 0 +setup_actors 0 +setup_consumers 0 +setup_instruments 0 +setup_objects 0 +setup_timers 0 +socket_instances 0 +socket_summary_by_event_name 0 +socket_summary_by_instance 0 +table_handles 0 +table_io_waits_summary_by_index_usage 0 +table_io_waits_summary_by_table 0 +table_lock_waits_summary_by_table 0 +threads 0 +users 0 +user_variables_by_thread 0 +select lower(TABLE_NAME), TABLE_ROWS, AVG_ROW_LENGTH +from information_schema.tables +where TABLE_SCHEMA='performance_schema' and +lower(TABLE_NAME) regexp '^variables|variables$|^status|session_status|global_status' + order by table_name; +lower(TABLE_NAME) TABLE_ROWS AVG_ROW_LENGTH +global_status table_rows avg_row_len +session_status table_rows avg_row_len +status_by_account table_rows avg_row_len +status_by_host table_rows avg_row_len +status_by_thread table_rows avg_row_len +status_by_user table_rows avg_row_len +select lower(TABLE_NAME), DATA_LENGTH, MAX_DATA_LENGTH +from information_schema.tables +where TABLE_SCHEMA='performance_schema' + order by table_name; +lower(TABLE_NAME) DATA_LENGTH MAX_DATA_LENGTH +accounts 0 0 +cond_instances 0 0 +events_stages_current 0 0 +events_stages_history 0 0 +events_stages_history_long 0 0 +events_stages_summary_by_account_by_event_name 0 0 +events_stages_summary_by_host_by_event_name 0 0 +events_stages_summary_by_thread_by_event_name 0 0 +events_stages_summary_by_user_by_event_name 0 0 +events_stages_summary_global_by_event_name 0 0 +events_statements_current 0 0 +events_statements_history 0 0 +events_statements_history_long 0 0 +events_statements_summary_by_account_by_event_name 0 0 +events_statements_summary_by_digest 0 0 +events_statements_summary_by_host_by_event_name 0 0 +events_statements_summary_by_program 0 0 +events_statements_summary_by_thread_by_event_name 0 0 +events_statements_summary_by_user_by_event_name 0 0 +events_statements_summary_global_by_event_name 0 0 +events_transactions_current 0 0 +events_transactions_history 0 0 +events_transactions_history_long 0 0 +events_transactions_summary_by_account_by_event_name 0 0 +events_transactions_summary_by_host_by_event_name 0 0 +events_transactions_summary_by_thread_by_event_name 0 0 +events_transactions_summary_by_user_by_event_name 0 0 +events_transactions_summary_global_by_event_name 0 0 +events_waits_current 0 0 +events_waits_history 0 0 +events_waits_history_long 0 0 +events_waits_summary_by_account_by_event_name 0 0 +events_waits_summary_by_host_by_event_name 0 0 +events_waits_summary_by_instance 0 0 +events_waits_summary_by_thread_by_event_name 0 0 +events_waits_summary_by_user_by_event_name 0 0 +events_waits_summary_global_by_event_name 0 0 +file_instances 0 0 +file_summary_by_event_name 0 0 +file_summary_by_instance 0 0 +global_status 0 0 +hosts 0 0 +host_cache 0 0 +memory_summary_by_account_by_event_name 0 0 +memory_summary_by_host_by_event_name 0 0 +memory_summary_by_thread_by_event_name 0 0 +memory_summary_by_user_by_event_name 0 0 +memory_summary_global_by_event_name 0 0 +metadata_locks 0 0 +mutex_instances 0 0 +objects_summary_global_by_type 0 0 +performance_timers 0 0 +prepared_statements_instances 0 0 +replication_applier_configuration 0 0 +replication_applier_status 0 0 +replication_applier_status_by_coordinator 0 0 +replication_applier_status_by_worker 0 0 +replication_connection_configuration 0 0 +rwlock_instances 0 0 +session_account_connect_attrs 0 0 +session_connect_attrs 0 0 +session_status 0 0 +setup_actors 0 0 +setup_consumers 0 0 +setup_instruments 0 0 +setup_objects 0 0 +setup_timers 0 0 +socket_instances 0 0 +socket_summary_by_event_name 0 0 +socket_summary_by_instance 0 0 +status_by_account 0 0 +status_by_host 0 0 +status_by_thread 0 0 +status_by_user 0 0 +table_handles 0 0 +table_io_waits_summary_by_index_usage 0 0 +table_io_waits_summary_by_table 0 0 +table_lock_waits_summary_by_table 0 0 +threads 0 0 +users 0 0 +user_variables_by_thread 0 0 +select lower(TABLE_NAME), INDEX_LENGTH, DATA_FREE, AUTO_INCREMENT +from information_schema.tables +where TABLE_SCHEMA='performance_schema' + order by table_name; +lower(TABLE_NAME) INDEX_LENGTH DATA_FREE AUTO_INCREMENT +accounts 0 0 NULL +cond_instances 0 0 NULL +events_stages_current 0 0 NULL +events_stages_history 0 0 NULL +events_stages_history_long 0 0 NULL +events_stages_summary_by_account_by_event_name 0 0 NULL +events_stages_summary_by_host_by_event_name 0 0 NULL +events_stages_summary_by_thread_by_event_name 0 0 NULL +events_stages_summary_by_user_by_event_name 0 0 NULL +events_stages_summary_global_by_event_name 0 0 NULL +events_statements_current 0 0 NULL +events_statements_history 0 0 NULL +events_statements_history_long 0 0 NULL +events_statements_summary_by_account_by_event_name 0 0 NULL +events_statements_summary_by_digest 0 0 NULL +events_statements_summary_by_host_by_event_name 0 0 NULL +events_statements_summary_by_program 0 0 NULL +events_statements_summary_by_thread_by_event_name 0 0 NULL +events_statements_summary_by_user_by_event_name 0 0 NULL +events_statements_summary_global_by_event_name 0 0 NULL +events_transactions_current 0 0 NULL +events_transactions_history 0 0 NULL +events_transactions_history_long 0 0 NULL +events_transactions_summary_by_account_by_event_name 0 0 NULL +events_transactions_summary_by_host_by_event_name 0 0 NULL +events_transactions_summary_by_thread_by_event_name 0 0 NULL +events_transactions_summary_by_user_by_event_name 0 0 NULL +events_transactions_summary_global_by_event_name 0 0 NULL +events_waits_current 0 0 NULL +events_waits_history 0 0 NULL +events_waits_history_long 0 0 NULL +events_waits_summary_by_account_by_event_name 0 0 NULL +events_waits_summary_by_host_by_event_name 0 0 NULL +events_waits_summary_by_instance 0 0 NULL +events_waits_summary_by_thread_by_event_name 0 0 NULL +events_waits_summary_by_user_by_event_name 0 0 NULL +events_waits_summary_global_by_event_name 0 0 NULL +file_instances 0 0 NULL +file_summary_by_event_name 0 0 NULL +file_summary_by_instance 0 0 NULL +global_status 0 0 NULL +hosts 0 0 NULL +host_cache 0 0 NULL +memory_summary_by_account_by_event_name 0 0 NULL +memory_summary_by_host_by_event_name 0 0 NULL +memory_summary_by_thread_by_event_name 0 0 NULL +memory_summary_by_user_by_event_name 0 0 NULL +memory_summary_global_by_event_name 0 0 NULL +metadata_locks 0 0 NULL +mutex_instances 0 0 NULL +objects_summary_global_by_type 0 0 NULL +performance_timers 0 0 NULL +prepared_statements_instances 0 0 NULL +replication_applier_configuration 0 0 NULL +replication_applier_status 0 0 NULL +replication_applier_status_by_coordinator 0 0 NULL +replication_applier_status_by_worker 0 0 NULL +replication_connection_configuration 0 0 NULL +rwlock_instances 0 0 NULL +session_account_connect_attrs 0 0 NULL +session_connect_attrs 0 0 NULL +session_status 0 0 NULL +setup_actors 0 0 NULL +setup_consumers 0 0 NULL +setup_instruments 0 0 NULL +setup_objects 0 0 NULL +setup_timers 0 0 NULL +socket_instances 0 0 NULL +socket_summary_by_event_name 0 0 NULL +socket_summary_by_instance 0 0 NULL +status_by_account 0 0 NULL +status_by_host 0 0 NULL +status_by_thread 0 0 NULL +status_by_user 0 0 NULL +table_handles 0 0 NULL +table_io_waits_summary_by_index_usage 0 0 NULL +table_io_waits_summary_by_table 0 0 NULL +table_lock_waits_summary_by_table 0 0 NULL +threads 0 0 NULL +users 0 0 NULL +user_variables_by_thread 0 0 NULL +select lower(TABLE_NAME), CREATE_TIME, UPDATE_TIME, CHECK_TIME +from information_schema.tables +where TABLE_SCHEMA='performance_schema' + order by table_name; +lower(TABLE_NAME) CREATE_TIME UPDATE_TIME CHECK_TIME +accounts NULL NULL NULL +cond_instances NULL NULL NULL +events_stages_current NULL NULL NULL +events_stages_history NULL NULL NULL +events_stages_history_long NULL NULL NULL +events_stages_summary_by_account_by_event_name NULL NULL NULL +events_stages_summary_by_host_by_event_name NULL NULL NULL +events_stages_summary_by_thread_by_event_name NULL NULL NULL +events_stages_summary_by_user_by_event_name NULL NULL NULL +events_stages_summary_global_by_event_name NULL NULL NULL +events_statements_current NULL NULL NULL +events_statements_history NULL NULL NULL +events_statements_history_long NULL NULL NULL +events_statements_summary_by_account_by_event_name NULL NULL NULL +events_statements_summary_by_digest NULL NULL NULL +events_statements_summary_by_host_by_event_name NULL NULL NULL +events_statements_summary_by_program NULL NULL NULL +events_statements_summary_by_thread_by_event_name NULL NULL NULL +events_statements_summary_by_user_by_event_name NULL NULL NULL +events_statements_summary_global_by_event_name NULL NULL NULL +events_transactions_current NULL NULL NULL +events_transactions_history NULL NULL NULL +events_transactions_history_long NULL NULL NULL +events_transactions_summary_by_account_by_event_name NULL NULL NULL +events_transactions_summary_by_host_by_event_name NULL NULL NULL +events_transactions_summary_by_thread_by_event_name NULL NULL NULL +events_transactions_summary_by_user_by_event_name NULL NULL NULL +events_transactions_summary_global_by_event_name NULL NULL NULL +events_waits_current NULL NULL NULL +events_waits_history NULL NULL NULL +events_waits_history_long NULL NULL NULL +events_waits_summary_by_account_by_event_name NULL NULL NULL +events_waits_summary_by_host_by_event_name NULL NULL NULL +events_waits_summary_by_instance NULL NULL NULL +events_waits_summary_by_thread_by_event_name NULL NULL NULL +events_waits_summary_by_user_by_event_name NULL NULL NULL +events_waits_summary_global_by_event_name NULL NULL NULL +file_instances NULL NULL NULL +file_summary_by_event_name NULL NULL NULL +file_summary_by_instance NULL NULL NULL +global_status NULL NULL NULL +hosts NULL NULL NULL +host_cache NULL NULL NULL +memory_summary_by_account_by_event_name NULL NULL NULL +memory_summary_by_host_by_event_name NULL NULL NULL +memory_summary_by_thread_by_event_name NULL NULL NULL +memory_summary_by_user_by_event_name NULL NULL NULL +memory_summary_global_by_event_name NULL NULL NULL +metadata_locks NULL NULL NULL +mutex_instances NULL NULL NULL +objects_summary_global_by_type NULL NULL NULL +performance_timers NULL NULL NULL +prepared_statements_instances NULL NULL NULL +replication_applier_configuration NULL NULL NULL +replication_applier_status NULL NULL NULL +replication_applier_status_by_coordinator NULL NULL NULL +replication_applier_status_by_worker NULL NULL NULL +replication_connection_configuration NULL NULL NULL +rwlock_instances NULL NULL NULL +session_account_connect_attrs NULL NULL NULL +session_connect_attrs NULL NULL NULL +session_status NULL NULL NULL +setup_actors NULL NULL NULL +setup_consumers NULL NULL NULL +setup_instruments NULL NULL NULL +setup_objects NULL NULL NULL +setup_timers NULL NULL NULL +socket_instances NULL NULL NULL +socket_summary_by_event_name NULL NULL NULL +socket_summary_by_instance NULL NULL NULL +status_by_account NULL NULL NULL +status_by_host NULL NULL NULL +status_by_thread NULL NULL NULL +status_by_user NULL NULL NULL +table_handles NULL NULL NULL +table_io_waits_summary_by_index_usage NULL NULL NULL +table_io_waits_summary_by_table NULL NULL NULL +table_lock_waits_summary_by_table NULL NULL NULL +threads NULL NULL NULL +users NULL NULL NULL +user_variables_by_thread NULL NULL NULL +select lower(TABLE_NAME), TABLE_COLLATION, CHECKSUM +from information_schema.tables +where TABLE_SCHEMA='performance_schema' + order by table_name; +lower(TABLE_NAME) TABLE_COLLATION CHECKSUM +accounts utf8mb3_general_ci NULL +cond_instances utf8mb3_general_ci NULL +events_stages_current utf8mb3_general_ci NULL +events_stages_history utf8mb3_general_ci NULL +events_stages_history_long utf8mb3_general_ci NULL +events_stages_summary_by_account_by_event_name utf8mb3_general_ci NULL +events_stages_summary_by_host_by_event_name utf8mb3_general_ci NULL +events_stages_summary_by_thread_by_event_name utf8mb3_general_ci NULL +events_stages_summary_by_user_by_event_name utf8mb3_general_ci NULL +events_stages_summary_global_by_event_name utf8mb3_general_ci NULL +events_statements_current utf8mb3_general_ci NULL +events_statements_history utf8mb3_general_ci NULL +events_statements_history_long utf8mb3_general_ci NULL +events_statements_summary_by_account_by_event_name utf8mb3_general_ci NULL +events_statements_summary_by_digest utf8mb3_general_ci NULL +events_statements_summary_by_host_by_event_name utf8mb3_general_ci NULL +events_statements_summary_by_program utf8mb3_general_ci NULL +events_statements_summary_by_thread_by_event_name utf8mb3_general_ci NULL +events_statements_summary_by_user_by_event_name utf8mb3_general_ci NULL +events_statements_summary_global_by_event_name utf8mb3_general_ci NULL +events_transactions_current utf8mb3_general_ci NULL +events_transactions_history utf8mb3_general_ci NULL +events_transactions_history_long utf8mb3_general_ci NULL +events_transactions_summary_by_account_by_event_name utf8mb3_general_ci NULL +events_transactions_summary_by_host_by_event_name utf8mb3_general_ci NULL +events_transactions_summary_by_thread_by_event_name utf8mb3_general_ci NULL +events_transactions_summary_by_user_by_event_name utf8mb3_general_ci NULL +events_transactions_summary_global_by_event_name utf8mb3_general_ci NULL +events_waits_current utf8mb3_general_ci NULL +events_waits_history utf8mb3_general_ci NULL +events_waits_history_long utf8mb3_general_ci NULL +events_waits_summary_by_account_by_event_name utf8mb3_general_ci NULL +events_waits_summary_by_host_by_event_name utf8mb3_general_ci NULL +events_waits_summary_by_instance utf8mb3_general_ci NULL +events_waits_summary_by_thread_by_event_name utf8mb3_general_ci NULL +events_waits_summary_by_user_by_event_name utf8mb3_general_ci NULL +events_waits_summary_global_by_event_name utf8mb3_general_ci NULL +file_instances utf8mb3_general_ci NULL +file_summary_by_event_name utf8mb3_general_ci NULL +file_summary_by_instance utf8mb3_general_ci NULL +global_status utf8mb3_general_ci NULL +hosts utf8mb3_general_ci NULL +host_cache utf8mb3_general_ci NULL +memory_summary_by_account_by_event_name utf8mb3_general_ci NULL +memory_summary_by_host_by_event_name utf8mb3_general_ci NULL +memory_summary_by_thread_by_event_name utf8mb3_general_ci NULL +memory_summary_by_user_by_event_name utf8mb3_general_ci NULL +memory_summary_global_by_event_name utf8mb3_general_ci NULL +metadata_locks utf8mb3_general_ci NULL +mutex_instances utf8mb3_general_ci NULL +objects_summary_global_by_type utf8mb3_general_ci NULL +performance_timers utf8mb3_general_ci NULL +prepared_statements_instances utf8mb3_general_ci NULL +replication_applier_configuration utf8mb3_general_ci NULL +replication_applier_status utf8mb3_general_ci NULL +replication_applier_status_by_coordinator utf8mb3_general_ci NULL +replication_applier_status_by_worker utf8mb3_general_ci NULL +replication_connection_configuration utf8mb3_general_ci NULL +rwlock_instances utf8mb3_general_ci NULL +session_account_connect_attrs utf8mb3_bin NULL +session_connect_attrs utf8mb3_bin NULL +session_status utf8mb3_general_ci NULL +setup_actors utf8mb3_general_ci NULL +setup_consumers utf8mb3_general_ci NULL +setup_instruments utf8mb3_general_ci NULL +setup_objects utf8mb3_general_ci NULL +setup_timers utf8mb3_general_ci NULL +socket_instances utf8mb3_general_ci NULL +socket_summary_by_event_name utf8mb3_general_ci NULL +socket_summary_by_instance utf8mb3_general_ci NULL +status_by_account utf8mb3_general_ci NULL +status_by_host utf8mb3_general_ci NULL +status_by_thread utf8mb3_general_ci NULL +status_by_user utf8mb3_general_ci NULL +table_handles utf8mb3_general_ci NULL +table_io_waits_summary_by_index_usage utf8mb3_general_ci NULL +table_io_waits_summary_by_table utf8mb3_general_ci NULL +table_lock_waits_summary_by_table utf8mb3_general_ci NULL +threads utf8mb3_general_ci NULL +users utf8mb3_general_ci NULL +user_variables_by_thread utf8mb3_general_ci NULL +select lower(TABLE_NAME), CREATE_OPTIONS +from information_schema.tables +where TABLE_SCHEMA='performance_schema' + order by table_name; +lower(TABLE_NAME) CREATE_OPTIONS +accounts +cond_instances +events_stages_current +events_stages_history +events_stages_history_long +events_stages_summary_by_account_by_event_name +events_stages_summary_by_host_by_event_name +events_stages_summary_by_thread_by_event_name +events_stages_summary_by_user_by_event_name +events_stages_summary_global_by_event_name +events_statements_current +events_statements_history +events_statements_history_long +events_statements_summary_by_account_by_event_name +events_statements_summary_by_digest +events_statements_summary_by_host_by_event_name +events_statements_summary_by_program +events_statements_summary_by_thread_by_event_name +events_statements_summary_by_user_by_event_name +events_statements_summary_global_by_event_name +events_transactions_current +events_transactions_history +events_transactions_history_long +events_transactions_summary_by_account_by_event_name +events_transactions_summary_by_host_by_event_name +events_transactions_summary_by_thread_by_event_name +events_transactions_summary_by_user_by_event_name +events_transactions_summary_global_by_event_name +events_waits_current +events_waits_history +events_waits_history_long +events_waits_summary_by_account_by_event_name +events_waits_summary_by_host_by_event_name +events_waits_summary_by_instance +events_waits_summary_by_thread_by_event_name +events_waits_summary_by_user_by_event_name +events_waits_summary_global_by_event_name +file_instances +file_summary_by_event_name +file_summary_by_instance +global_status +hosts +host_cache +memory_summary_by_account_by_event_name +memory_summary_by_host_by_event_name +memory_summary_by_thread_by_event_name +memory_summary_by_user_by_event_name +memory_summary_global_by_event_name +metadata_locks +mutex_instances +objects_summary_global_by_type +performance_timers +prepared_statements_instances +replication_applier_configuration +replication_applier_status +replication_applier_status_by_coordinator +replication_applier_status_by_worker +replication_connection_configuration +rwlock_instances +session_account_connect_attrs +session_connect_attrs +session_status +setup_actors +setup_consumers +setup_instruments +setup_objects +setup_timers +socket_instances +socket_summary_by_event_name +socket_summary_by_instance +status_by_account +status_by_host +status_by_thread +status_by_user +table_handles +table_io_waits_summary_by_index_usage +table_io_waits_summary_by_table +table_lock_waits_summary_by_table +threads +users +user_variables_by_thread +select lower(TABLE_NAME), TABLE_COMMENT +from information_schema.tables +where TABLE_SCHEMA='performance_schema' + order by table_name; +lower(TABLE_NAME) TABLE_COMMENT +accounts +cond_instances +events_stages_current +events_stages_history +events_stages_history_long +events_stages_summary_by_account_by_event_name +events_stages_summary_by_host_by_event_name +events_stages_summary_by_thread_by_event_name +events_stages_summary_by_user_by_event_name +events_stages_summary_global_by_event_name +events_statements_current +events_statements_history +events_statements_history_long +events_statements_summary_by_account_by_event_name +events_statements_summary_by_digest +events_statements_summary_by_host_by_event_name +events_statements_summary_by_program +events_statements_summary_by_thread_by_event_name +events_statements_summary_by_user_by_event_name +events_statements_summary_global_by_event_name +events_transactions_current +events_transactions_history +events_transactions_history_long +events_transactions_summary_by_account_by_event_name +events_transactions_summary_by_host_by_event_name +events_transactions_summary_by_thread_by_event_name +events_transactions_summary_by_user_by_event_name +events_transactions_summary_global_by_event_name +events_waits_current +events_waits_history +events_waits_history_long +events_waits_summary_by_account_by_event_name +events_waits_summary_by_host_by_event_name +events_waits_summary_by_instance +events_waits_summary_by_thread_by_event_name +events_waits_summary_by_user_by_event_name +events_waits_summary_global_by_event_name +file_instances +file_summary_by_event_name +file_summary_by_instance +global_status +hosts +host_cache +memory_summary_by_account_by_event_name +memory_summary_by_host_by_event_name +memory_summary_by_thread_by_event_name +memory_summary_by_user_by_event_name +memory_summary_global_by_event_name +metadata_locks +mutex_instances +objects_summary_global_by_type +performance_timers +prepared_statements_instances +replication_applier_configuration +replication_applier_status +replication_applier_status_by_coordinator +replication_applier_status_by_worker +replication_connection_configuration +rwlock_instances +session_account_connect_attrs +session_connect_attrs +session_status +setup_actors +setup_consumers +setup_instruments +setup_objects +setup_timers +socket_instances +socket_summary_by_event_name +socket_summary_by_instance +status_by_account +status_by_host +status_by_thread +status_by_user +table_handles +table_io_waits_summary_by_index_usage +table_io_waits_summary_by_table +table_lock_waits_summary_by_table +threads +users +user_variables_by_thread diff --git a/mysql-test/suite/perfschema/r/innodb_events_transactions_history_long.result b/mysql-test/suite/perfschema/r/innodb_events_transactions_history_long.result new file mode 100644 index 00000000..1d8c372f --- /dev/null +++ b/mysql-test/suite/perfschema/r/innodb_events_transactions_history_long.result @@ -0,0 +1,16 @@ +# +# MDEV-24600 performance_schema.events_transactions_history_long.trx_id +# reports garbage +# +TRUNCATE performance_schema.events_transactions_history_long; +START TRANSACTION WITH CONSISTENT SNAPSHOT; +COMMIT; +BEGIN; +SELECT table_name FROM mysql.innodb_table_stats LIMIT 0 LOCK IN SHARE MODE; +table_name +COMMIT; +SELECT state,trx_id,gtid +FROM performance_schema.events_transactions_history_long; +state trx_id gtid +COMMITTED NULL 0-0-0 +COMMITTED NULL 0-0-0 diff --git a/mysql-test/suite/perfschema/r/innodb_table_io.result b/mysql-test/suite/perfschema/r/innodb_table_io.result new file mode 100644 index 00000000..2d178d9e --- /dev/null +++ b/mysql-test/suite/perfschema/r/innodb_table_io.result @@ -0,0 +1,146 @@ +drop table if exists test.marker; +create table test.marker(a int); +update performance_schema.setup_consumers set enabled='NO'; +update performance_schema.setup_instruments set enabled='NO'; +update performance_schema.setup_instruments set enabled='YES' + where name like "wait/io/table/%"; +truncate table performance_schema.events_waits_history_long; +flush status; +flush tables; +drop table if exists test.no_index_tab; +update performance_schema.setup_consumers set enabled='YES'; +insert into marker set a = 1; +create table test.no_index_tab +( a varchar(255) not null, b int not null) engine = InnoDB; +insert into marker set a = 1; +show create table test.no_index_tab; +Table Create Table +no_index_tab CREATE TABLE `no_index_tab` ( + `a` varchar(255) NOT NULL, + `b` int(11) NOT NULL +) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci +insert into marker set a = 1; +insert into test.no_index_tab set a = 'foo', b = 1; +insert into marker set a = 1; +insert into test.no_index_tab set a = 'foo', b = 2; +insert into marker set a = 1; +insert into test.no_index_tab set a = 'foo', b = 3; +insert into marker set a = 1; +select * from test.no_index_tab; +a b +foo 1 +foo 2 +foo 3 +insert into marker set a = 1; +update test.no_index_tab set a = 'bar'; +insert into marker set a = 1; +select * from test.no_index_tab limit 2; +a b +bar 1 +bar 2 +insert into marker set a = 1; +delete from test.no_index_tab where b = 3; +insert into marker set a = 1; +select * from test.no_index_tab; +a b +bar 1 +bar 2 +insert into marker set a = 1; +optimize table test.no_index_tab; +Table Op Msg_type Msg_text +test.no_index_tab optimize note Table does not support optimize, doing recreate + analyze instead +test.no_index_tab optimize status OK +insert into marker set a = 1; +select * from test.no_index_tab; +a b +bar 1 +bar 2 +insert into marker set a = 1; +truncate table test.no_index_tab; +insert into marker set a = 1; +drop table test.no_index_tab; +update performance_schema.setup_consumers set enabled='NO'; +select event_name, +left(source, locate(":", source)) as short_source, +object_type, object_schema, +if (locate("#sql-", object_name), "#sql-XXXX", object_name) +as pretty_name, +operation, number_of_bytes +from performance_schema.events_waits_history_long +where event_name like 'wait/io/table/%' + and object_schema in ("test") +order by thread_id, event_id; +event_name short_source object_type object_schema pretty_name operation number_of_bytes +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test no_index_tab insert 1 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test no_index_tab insert 1 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test no_index_tab insert 1 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 3 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 1 +wait/io/table/sql/handler TABLE test no_index_tab update 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 1 +wait/io/table/sql/handler TABLE test no_index_tab update 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 1 +wait/io/table/sql/handler TABLE test no_index_tab update 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 1 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 2 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 1 +wait/io/table/sql/handler TABLE test no_index_tab delete 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 1 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 2 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 2 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test marker insert 1 +show global status like 'performance_schema_%'; +Variable_name Value +Performance_schema_accounts_lost 0 +Performance_schema_cond_classes_lost 0 +Performance_schema_cond_instances_lost 0 +Performance_schema_digest_lost 0 +Performance_schema_file_classes_lost 0 +Performance_schema_file_handles_lost 0 +Performance_schema_file_instances_lost 0 +Performance_schema_hosts_lost 0 +Performance_schema_index_stat_lost 0 +Performance_schema_locker_lost 0 +Performance_schema_memory_classes_lost 0 +Performance_schema_metadata_lock_lost 0 +Performance_schema_mutex_classes_lost 0 +Performance_schema_mutex_instances_lost 0 +Performance_schema_nested_statement_lost 0 +Performance_schema_prepared_statements_lost 0 +Performance_schema_program_lost 0 +Performance_schema_rwlock_classes_lost 0 +Performance_schema_rwlock_instances_lost 0 +Performance_schema_session_connect_attrs_lost 0 +Performance_schema_socket_classes_lost 0 +Performance_schema_socket_instances_lost 0 +Performance_schema_stage_classes_lost 0 +Performance_schema_statement_classes_lost 0 +Performance_schema_table_handles_lost 0 +Performance_schema_table_instances_lost 0 +Performance_schema_table_lock_stat_lost 0 +Performance_schema_thread_classes_lost 0 +Performance_schema_thread_instances_lost 0 +Performance_schema_users_lost 0 +truncate performance_schema.events_waits_history_long; +flush status; +update performance_schema.setup_consumers set enabled='NO'; +truncate performance_schema.events_waits_history_long; +drop table test.marker; +flush status; +update performance_schema.setup_instruments set enabled='YES'; +update performance_schema.setup_consumers set enabled='YES'; diff --git a/mysql-test/suite/perfschema/r/io_cache.result b/mysql-test/suite/perfschema/r/io_cache.result new file mode 100644 index 00000000..9a7f04da --- /dev/null +++ b/mysql-test/suite/perfschema/r/io_cache.result @@ -0,0 +1,96 @@ +# +## Connection default +# +connection default; +USE test; +DROP TABLE IF EXISTS t1; +SELECT @@global.binlog_cache_size; +@@global.binlog_cache_size +4096 +SELECT @@global.binlog_stmt_cache_size; +@@global.binlog_stmt_cache_size +4096 +SELECT * FROM performance_schema.setup_instruments WHERE name LIKE "%file/sql/io_cache%"; +NAME ENABLED TIMED +wait/io/file/sql/io_cache YES YES +# +## Connection con1 +# +connect con1, localhost, root,,; +USE test; +CREATE TABLE t1 (s1 INT, s2 VARCHAR(4096)); +SET SESSION AUTOCOMMIT = 0; +START TRANSACTION; +INSERT INTO t1 VALUES (1,' +aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa +aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa +aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa +aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa +aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa +'); +INSERT INTO t1 VALUES (2,' +bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb +bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb +bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb +bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb +bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb +'); +INSERT INTO t1 VALUES (3,' +cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc +cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc +cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc +cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc +cccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc +'); +INSERT INTO t1 VALUES (4,' +dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd +dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd +dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd +dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd +dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd +'); +INSERT INTO t1 VALUES (5,' +eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee +eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee +eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee +eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee +eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee +'); +INSERT INTO t1 VALUES (6,' +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff +'); +INSERT INTO t1 VALUES (7,' +gggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg +gggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg +gggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg +gggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg +gggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg +'); +INSERT INTO t1 VALUES (8,' +hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh +hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh +hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh +hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh +hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh +'); +COMMIT; +SELECT COUNT(*) FROM t1; +COUNT(*) +8 +disconnect con1; +# +## Connection default +# +connection default; +SELECT COUNT(*) FROM test.t1; +COUNT(*) +8 +SELECT COUNT(*) FROM performance_schema.file_summary_by_event_name WHERE event_name LIKE "%io_cache%"; +COUNT(*) +1 +connection default; +DROP TABLE t1; diff --git a/mysql-test/suite/perfschema/r/max_program_zero.result b/mysql-test/suite/perfschema/r/max_program_zero.result new file mode 100644 index 00000000..5435efb3 --- /dev/null +++ b/mysql-test/suite/perfschema/r/max_program_zero.result @@ -0,0 +1,314 @@ +show databases; +Database +information_schema +mtr +mysql +performance_schema +sys +test +select count(*) from performance_schema.performance_timers; +count(*) +5 +select count(*) from performance_schema.setup_consumers; +count(*) +15 +select count(*) > 4 from performance_schema.setup_instruments; +count(*) > 4 +1 +select count(*) from performance_schema.setup_timers; +count(*) +5 +Warnings: +Warning 1681 'performance_schema.setup_timers' is deprecated and will be removed in a future release +select * from performance_schema.accounts; +select * from performance_schema.cond_instances; +select * from performance_schema.events_stages_current; +select * from performance_schema.events_stages_history; +select * from performance_schema.events_stages_history_long; +select * from performance_schema.events_stages_summary_by_account_by_event_name; +select * from performance_schema.events_stages_summary_by_host_by_event_name; +select * from performance_schema.events_stages_summary_by_thread_by_event_name; +select * from performance_schema.events_stages_summary_by_user_by_event_name; +select * from performance_schema.events_stages_summary_global_by_event_name; +select * from performance_schema.events_statements_current; +select * from performance_schema.events_statements_history; +select * from performance_schema.events_statements_history_long; +select * from performance_schema.events_statements_summary_by_account_by_event_name; +select * from performance_schema.events_statements_summary_by_digest; +select * from performance_schema.events_statements_summary_by_host_by_event_name; +select * from performance_schema.events_statements_summary_by_thread_by_event_name; +select * from performance_schema.events_statements_summary_by_user_by_event_name; +select * from performance_schema.events_statements_summary_global_by_event_name; +select * from performance_schema.events_transactions_current; +select * from performance_schema.events_transactions_history; +select * from performance_schema.events_transactions_history_long; +select * from performance_schema.events_transactions_summary_by_account_by_event_name; +select * from performance_schema.events_transactions_summary_by_host_by_event_name; +select * from performance_schema.events_transactions_summary_by_thread_by_event_name; +select * from performance_schema.events_transactions_summary_by_user_by_event_name; +select * from performance_schema.events_transactions_summary_global_by_event_name; +select * from performance_schema.events_waits_current; +select * from performance_schema.events_waits_history; +select * from performance_schema.events_waits_history_long; +select * from performance_schema.events_waits_summary_by_account_by_event_name; +select * from performance_schema.events_waits_summary_by_host_by_event_name; +select * from performance_schema.events_waits_summary_by_instance; +select * from performance_schema.events_waits_summary_by_thread_by_event_name; +select * from performance_schema.events_waits_summary_by_user_by_event_name; +select * from performance_schema.events_waits_summary_global_by_event_name; +select * from performance_schema.memory_summary_by_account_by_event_name; +select * from performance_schema.memory_summary_by_host_by_event_name; +select * from performance_schema.memory_summary_by_thread_by_event_name; +select * from performance_schema.memory_summary_by_user_by_event_name; +select * from performance_schema.memory_summary_global_by_event_name; +select * from performance_schema.file_instances; +select * from performance_schema.file_summary_by_event_name; +select * from performance_schema.file_summary_by_instance; +select * from performance_schema.host_cache; +select * from performance_schema.hosts; +select * from performance_schema.memory_summary_by_account_by_event_name; +select * from performance_schema.memory_summary_by_host_by_event_name; +select * from performance_schema.memory_summary_by_thread_by_event_name; +select * from performance_schema.memory_summary_by_user_by_event_name; +select * from performance_schema.memory_summary_global_by_event_name; +select * from performance_schema.metadata_locks; +select * from performance_schema.mutex_instances; +select * from performance_schema.objects_summary_global_by_type; +select * from performance_schema.performance_timers; +select * from performance_schema.rwlock_instances; +select * from performance_schema.session_account_connect_attrs; +select * from performance_schema.session_connect_attrs; +select * from performance_schema.setup_actors; +select * from performance_schema.setup_consumers; +select * from performance_schema.setup_instruments; +select * from performance_schema.setup_objects; +select * from performance_schema.setup_timers; +select * from performance_schema.socket_instances; +select * from performance_schema.socket_summary_by_instance; +select * from performance_schema.socket_summary_by_event_name; +select * from performance_schema.table_handles; +select * from performance_schema.table_io_waits_summary_by_index_usage; +select * from performance_schema.table_io_waits_summary_by_table; +select * from performance_schema.table_lock_waits_summary_by_table; +select * from performance_schema.threads; +select * from performance_schema.users; +select * from performance_schema.replication_connection_configuration; +select * from performance_schema.replication_applier_configuration; +select * from performance_schema.replication_applier_status; +select * from performance_schema.replication_applier_status_by_coordinator; +select * from performance_schema.global_status; +select * from performance_schema.status_by_thread; +select * from performance_schema.status_by_user; +select * from performance_schema.status_by_host; +select * from performance_schema.status_by_account; +select * from performance_schema.session_status; +show global variables like "performance_schema%"; +Variable_name Value +performance_schema ON +performance_schema_accounts_size 100 +performance_schema_digests_size 200 +performance_schema_events_stages_history_long_size 1000 +performance_schema_events_stages_history_size 10 +performance_schema_events_statements_history_long_size 1000 +performance_schema_events_statements_history_size 10 +performance_schema_events_transactions_history_long_size 1000 +performance_schema_events_transactions_history_size 10 +performance_schema_events_waits_history_long_size 10000 +performance_schema_events_waits_history_size 10 +performance_schema_hosts_size 100 +performance_schema_max_cond_classes 90 +performance_schema_max_cond_instances 1000 +performance_schema_max_digest_length 1024 +performance_schema_max_file_classes 80 +performance_schema_max_file_handles 32768 +performance_schema_max_file_instances 10000 +performance_schema_max_index_stat 5000 +performance_schema_max_memory_classes 320 +performance_schema_max_metadata_locks 10000 +performance_schema_max_mutex_classes 210 +performance_schema_max_mutex_instances 5000 +performance_schema_max_prepared_statements_instances 100 +performance_schema_max_program_instances 0 +performance_schema_max_rwlock_classes 50 +performance_schema_max_rwlock_instances 5000 +performance_schema_max_socket_classes 10 +performance_schema_max_socket_instances 1000 +performance_schema_max_sql_text_length 1024 +performance_schema_max_stage_classes 160 +performance_schema_max_statement_classes 222 +performance_schema_max_statement_stack 1 +performance_schema_max_table_handles 1000 +performance_schema_max_table_instances 500 +performance_schema_max_table_lock_stat 500 +performance_schema_max_thread_classes 50 +performance_schema_max_thread_instances 200 +performance_schema_session_connect_attrs_size 2048 +performance_schema_setup_actors_size 100 +performance_schema_setup_objects_size 100 +performance_schema_users_size 100 +show engine PERFORMANCE_SCHEMA status; +show global status like "performance_schema%"; +show global variables like "performance_schema_max_program_instances"; +Variable_name Value +performance_schema_max_program_instances 0 +show global variables like "performance_schema_max_statement_stack"; +Variable_name Value +performance_schema_max_statement_stack 1 +##################### +# Setup +##################### +# SET-UP +CREATE DATABASE nested_sp; +USE nested_sp; +CREATE TABLE t1( +id CHAR(16) NOT NULL DEFAULT '', +data INT NOT NULL +); +CREATE TABLE t2( +n INT UNSIGNED NOT NULL, +f BIGINT UNSIGNED +); +############################ +# Creating Stored Programs # +############################ +CREATE PROCEDURE c1(x INT) +CALL c2("c", x)| +CREATE PROCEDURE c2(s CHAR(16), x INT) +CALL c3(x, s)| +CREATE PROCEDURE c3(x INT, s CHAR(16)) +CALL c4("level", x, s)| +CREATE PROCEDURE c4(l CHAR(8), x INT, s CHAR(16)) +INSERT INTO t1 VALUES (concat(l,s), x)| +CREATE PROCEDURE iotest(x1 CHAR(16), x2 CHAR(16), y INT) +BEGIN +CALL inc2(x2, y); +INSERT INTO t1 VALUES (x1, y); +END| +CREATE PROCEDURE inc2(x CHAR(16), y INT) +BEGIN +CALL inc(y); +INSERT INTO t1 VALUES (x, y); +END| +CREATE PROCEDURE inc(inout io INT) +SET io = io + 1| +CREATE FUNCTION mul(x INT, y INT) RETURNS INT +RETURN x*y| +CREATE FUNCTION inc(i INT) RETURNS INT +RETURN i+1| +CREATE FUNCTION fac(n INT UNSIGNED) RETURNS BIGINT UNSIGNED +BEGIN +DECLARE f BIGINT UNSIGNED DEFAULT 1; +WHILE n > 1 DO +SET f = f * n; +SET n = n - 1; +END WHILE; +RETURN f; +END| +CREATE FUNCTION fun(i INT, u INT UNSIGNED) RETURNS DOUBLE +RETURN mul(inc(i), fac(u))| +CREATE PROCEDURE ifac(n INT UNSIGNED) +BEGIN +DECLARE i BIGINT UNSIGNED DEFAULT 1; +IF n > 20 THEN +SET n = 20; # bigint overflow otherwise +END IF; +WHILE i <= n DO +BEGIN +INSERT INTO t2 VALUES (i, fac(i)); +SET i = i + 1; +END; +END WHILE; +END| +CREATE TRIGGER trg AFTER INSERT ON t1 FOR EACH ROW +CALL ifac(10)| +TRUNCATE performance_schema.events_statements_summary_by_program; +##################### +# Executing Queries +##################### +##################### +# Executing queries # +##################### +CALL c1(42); +SELECT * FROM t1; +id data +levelc 42 +DELETE FROM t1; +CALL iotest("io1", "io2", 1); +SELECT * FROM t1 ORDER BY data DESC; +id data +io2 2 +io1 1 +DELETE FROM t1; +SELECT fun(6,10); +fun(6,10) +25401600 +INSERT INTO t1 VALUES (20,13); +SELECT * FROM t2; +n f +1 1 +2 2 +3 6 +4 24 +5 120 +6 720 +7 5040 +8 40320 +9 362880 +10 3628800 +1 1 +2 2 +3 6 +4 24 +5 120 +6 720 +7 5040 +8 40320 +9 362880 +10 3628800 +1 1 +2 2 +3 6 +4 24 +5 120 +6 720 +7 5040 +8 40320 +9 362880 +10 3628800 +1 1 +2 2 +3 6 +4 24 +5 120 +6 720 +7 5040 +8 40320 +9 362880 +10 3628800 +########################################### +# Quering PS statement summary table # +########################################### +SELECT OBJECT_TYPE, OBJECT_NAME, OBJECT_SCHEMA +FROM performance_schema.events_statements_summary_by_program; +OBJECT_TYPE OBJECT_NAME OBJECT_SCHEMA +SELECT COUNT(*) FROM performance_schema.events_statements_summary_by_program; +COUNT(*) +0 +##################### +# Cleanup +##################### +DROP PROCEDURE c4; +DROP PROCEDURE c3; +DROP PROCEDURE c2; +DROP PROCEDURE c1; +DROP PROCEDURE inc; +DROP PROCEDURE inc2; +DROP PROCEDURE iotest; +DROP FUNCTION mul; +DROP FUNCTION inc; +DROP FUNCTION fac; +DROP FUNCTION fun; +DROP PROCEDURE ifac; +DROP TRIGGER trg; +DROP TABLE t1,t2; +DROP DATABASE nested_sp; diff --git a/mysql-test/suite/perfschema/r/mdl_func.result b/mysql-test/suite/perfschema/r/mdl_func.result new file mode 100644 index 00000000..4887b15e --- /dev/null +++ b/mysql-test/suite/perfschema/r/mdl_func.result @@ -0,0 +1,920 @@ +UPDATE performance_schema.setup_instruments SET enabled = 'NO', timed = 'YES'; +UPDATE performance_schema.setup_instruments SET enabled = 'YES' +WHERE name in ('wait/io/table/sql/handler', +'wait/lock/table/sql/handler', +'wait/lock/metadata/sql/mdl'); +set @orig_sql_mode= @@sql_mode; +set sql_mode= (select replace(@@sql_mode,'NO_AUTO_CREATE_USER','')); +grant ALL on *.* to user1@localhost; +grant ALL on *.* to user2@localhost; +set sql_mode= @orig_sql_mode; +insert into performance_schema.setup_objects (object_type, object_schema, object_name, enabled, timed) +values ('TABLE', 'mtr', '%', 'NO', 'NO'); +# Switch to (con1, localhost, user1, , ) +connect con1, localhost, user1, , ; +# Switch to (con2, localhost, user2, , ) +connect con2, localhost, user2, , ; +connection default; +drop function if exists thread_id_name; +create function thread_id_name(THREAD_ID int) +returns varchar(16) +begin +if (THREAD_ID IS NULL) +then +return NULL; +end if; +if (THREAD_ID = @user1_tid) +then +return "USER1"; +end if; +if (THREAD_ID = @user2_tid) +then +return "USER2"; +end if; +return "OTHER"; +end; +// +select thread_id_name(NULL); +thread_id_name(NULL) +NULL +select thread_id_name(@user1_tid); +thread_id_name(@user1_tid) +USER1 +select thread_id_name(@user2_tid); +thread_id_name(@user2_tid) +USER2 +prepare dump_metadata_locks from +"select OBJECT_TYPE, OBJECT_SCHEMA, OBJECT_NAME, + LOCK_TYPE, LOCK_DURATION, LOCK_STATUS, + thread_id_name(OWNER_THREAD_ID) as OWNER_THREAD_ID + from performance_schema.metadata_locks + order by OBJECT_TYPE, OBJECT_SCHEMA, OBJECT_NAME, + LOCK_TYPE, LOCK_DURATION, LOCK_STATUS, OWNER_THREAD_ID;"; +prepare dump_table_handles from +"select OBJECT_TYPE, OBJECT_SCHEMA, OBJECT_NAME, + INTERNAL_LOCK, EXTERNAL_LOCK, + thread_id_name(OWNER_THREAD_ID) as OWNER_THREAD_ID + from performance_schema.table_handles + order by OBJECT_TYPE, OBJECT_SCHEMA, OBJECT_NAME, + INTERNAL_LOCK, EXTERNAL_LOCK, OWNER_THREAD_ID;"; +prepare dump_waits_current from +"select thread_id_name(THREAD_ID) as THREAD_ID, + EVENT_NAME, + TIMER_START is not NULL as TIMER_START_SET, + TIMER_END is not NULL as TIMER_END_SET, + OBJECT_TYPE, OBJECT_SCHEMA, OBJECT_NAME, INDEX_NAME, + OPERATION + from performance_schema.events_waits_current + where event_name = \'wait/lock/metadata/sql/mdl\';"; +prepare dump_waits_history_long from +"select thread_id_name(THREAD_ID) as THREAD_ID, + EVENT_NAME, + TIMER_START is not NULL as TIMER_START_SET, + TIMER_END is not NULL as TIMER_END_SET, + OBJECT_TYPE, OBJECT_SCHEMA, OBJECT_NAME, INDEX_NAME, + OPERATION + from performance_schema.events_waits_history_long + where event_name = \'wait/lock/metadata/sql/mdl\';"; +truncate table performance_schema.events_statements_summary_by_digest; +flush status; +flush tables; +DROP TABLE IF EXISTS t1; +CREATE TABLE t1 (id INT PRIMARY KEY, b CHAR(100) DEFAULT 'initial value'); +INSERT INTO t1 (id) VALUES (1), (2), (3), (4), (5), (6), (7), (8); +TRUNCATE TABLE performance_schema.events_waits_history_long; +TRUNCATE TABLE performance_schema.events_waits_history; +TRUNCATE TABLE performance_schema.events_waits_current; +connection con1; +BEGIN; +SELECT * from t1 where id=1; +id b +1 initial value +connection default; +"---- Marker 1 ----" +execute dump_metadata_locks; +OBJECT_TYPE FUNCTION +OBJECT_SCHEMA test +OBJECT_NAME thread_id_name +LOCK_TYPE SHARED +LOCK_DURATION TRANSACTION +LOCK_STATUS GRANTED +OWNER_THREAD_ID OTHER +OBJECT_TYPE TABLE +OBJECT_SCHEMA performance_schema +OBJECT_NAME metadata_locks +LOCK_TYPE SHARED_READ +LOCK_DURATION TRANSACTION +LOCK_STATUS GRANTED +OWNER_THREAD_ID OTHER +OBJECT_TYPE TABLE +OBJECT_SCHEMA test +OBJECT_NAME t1 +LOCK_TYPE SHARED_READ +LOCK_DURATION TRANSACTION +LOCK_STATUS GRANTED +OWNER_THREAD_ID USER1 +execute dump_table_handles; +OBJECT_TYPE TABLE +OBJECT_SCHEMA test +OBJECT_NAME t1 +INTERNAL_LOCK READ +EXTERNAL_LOCK NULL +OWNER_THREAD_ID OTHER +execute dump_waits_current; +execute dump_waits_history_long; +connection con1; +COMMIT; +connection default; +"---- Marker 2 ----" +execute dump_metadata_locks; +OBJECT_TYPE FUNCTION +OBJECT_SCHEMA test +OBJECT_NAME thread_id_name +LOCK_TYPE SHARED +LOCK_DURATION TRANSACTION +LOCK_STATUS GRANTED +OWNER_THREAD_ID OTHER +OBJECT_TYPE TABLE +OBJECT_SCHEMA performance_schema +OBJECT_NAME metadata_locks +LOCK_TYPE SHARED_READ +LOCK_DURATION TRANSACTION +LOCK_STATUS GRANTED +OWNER_THREAD_ID OTHER +execute dump_table_handles; +OBJECT_TYPE TABLE +OBJECT_SCHEMA test +OBJECT_NAME t1 +INTERNAL_LOCK READ +EXTERNAL_LOCK NULL +OWNER_THREAD_ID OTHER +execute dump_waits_current; +execute dump_waits_history_long; +connection con1; +BEGIN; +UPDATE t1 set b="new value" where id=2; +connection default; +"---- Marker 3 ----" +execute dump_metadata_locks; +OBJECT_TYPE FUNCTION +OBJECT_SCHEMA test +OBJECT_NAME thread_id_name +LOCK_TYPE SHARED +LOCK_DURATION TRANSACTION +LOCK_STATUS GRANTED +OWNER_THREAD_ID OTHER +OBJECT_TYPE TABLE +OBJECT_SCHEMA performance_schema +OBJECT_NAME metadata_locks +LOCK_TYPE SHARED_READ +LOCK_DURATION TRANSACTION +LOCK_STATUS GRANTED +OWNER_THREAD_ID OTHER +OBJECT_TYPE TABLE +OBJECT_SCHEMA test +OBJECT_NAME t1 +LOCK_TYPE SHARED_WRITE +LOCK_DURATION TRANSACTION +LOCK_STATUS GRANTED +OWNER_THREAD_ID USER1 +execute dump_table_handles; +OBJECT_TYPE TABLE +OBJECT_SCHEMA test +OBJECT_NAME t1 +INTERNAL_LOCK WRITE +EXTERNAL_LOCK NULL +OWNER_THREAD_ID OTHER +execute dump_waits_current; +execute dump_waits_history_long; +connection con2; +BEGIN; +DROP TABLE t1;; +connection default; +"---- Marker 4 ----" +execute dump_metadata_locks; +OBJECT_TYPE FUNCTION +OBJECT_SCHEMA test +OBJECT_NAME thread_id_name +LOCK_TYPE SHARED +LOCK_DURATION TRANSACTION +LOCK_STATUS GRANTED +OWNER_THREAD_ID OTHER +OBJECT_TYPE SCHEMA +OBJECT_SCHEMA test +OBJECT_NAME NULL +LOCK_TYPE INTENTION_EXCLUSIVE +LOCK_DURATION TRANSACTION +LOCK_STATUS GRANTED +OWNER_THREAD_ID USER2 +OBJECT_TYPE TABLE +OBJECT_SCHEMA performance_schema +OBJECT_NAME metadata_locks +LOCK_TYPE SHARED_READ +LOCK_DURATION TRANSACTION +LOCK_STATUS GRANTED +OWNER_THREAD_ID OTHER +OBJECT_TYPE TABLE +OBJECT_SCHEMA test +OBJECT_NAME t1 +LOCK_TYPE EXCLUSIVE +LOCK_DURATION TRANSACTION +LOCK_STATUS PENDING +OWNER_THREAD_ID USER2 +OBJECT_TYPE TABLE +OBJECT_SCHEMA test +OBJECT_NAME t1 +LOCK_TYPE SHARED_WRITE +LOCK_DURATION TRANSACTION +LOCK_STATUS GRANTED +OWNER_THREAD_ID USER1 +execute dump_table_handles; +OBJECT_TYPE TABLE +OBJECT_SCHEMA test +OBJECT_NAME t1 +INTERNAL_LOCK WRITE +EXTERNAL_LOCK NULL +OWNER_THREAD_ID OTHER +execute dump_waits_current; +THREAD_ID USER2 +EVENT_NAME wait/lock/metadata/sql/mdl +TIMER_START_SET 1 +TIMER_END_SET 1 +OBJECT_TYPE TABLE +OBJECT_SCHEMA test +OBJECT_NAME t1 +INDEX_NAME NULL +OPERATION metadata lock +execute dump_waits_history_long; +connection con1; +COMMIT; +connection con2; +connection default; +"---- Marker 5 ----" +execute dump_metadata_locks; +OBJECT_TYPE FUNCTION +OBJECT_SCHEMA test +OBJECT_NAME thread_id_name +LOCK_TYPE SHARED +LOCK_DURATION TRANSACTION +LOCK_STATUS GRANTED +OWNER_THREAD_ID OTHER +OBJECT_TYPE TABLE +OBJECT_SCHEMA performance_schema +OBJECT_NAME metadata_locks +LOCK_TYPE SHARED_READ +LOCK_DURATION TRANSACTION +LOCK_STATUS GRANTED +OWNER_THREAD_ID OTHER +execute dump_table_handles; +execute dump_waits_current; +THREAD_ID USER2 +EVENT_NAME wait/lock/metadata/sql/mdl +TIMER_START_SET 1 +TIMER_END_SET 1 +OBJECT_TYPE TABLE +OBJECT_SCHEMA test +OBJECT_NAME t1 +INDEX_NAME NULL +OPERATION metadata lock +execute dump_waits_history_long; +THREAD_ID USER2 +EVENT_NAME wait/lock/metadata/sql/mdl +TIMER_START_SET 1 +TIMER_END_SET 1 +OBJECT_TYPE TABLE +OBJECT_SCHEMA test +OBJECT_NAME t1 +INDEX_NAME NULL +OPERATION metadata lock +connection default; +TRUNCATE TABLE performance_schema.events_waits_history_long; +TRUNCATE TABLE performance_schema.events_waits_history; +TRUNCATE TABLE performance_schema.events_waits_current; +create table t1 (a int); +connection con1; +LOCK TABLE t1 READ; +connection default; +"---- Marker 6 ----" +execute dump_metadata_locks; +OBJECT_TYPE FUNCTION +OBJECT_SCHEMA test +OBJECT_NAME thread_id_name +LOCK_TYPE SHARED +LOCK_DURATION TRANSACTION +LOCK_STATUS GRANTED +OWNER_THREAD_ID OTHER +OBJECT_TYPE TABLE +OBJECT_SCHEMA performance_schema +OBJECT_NAME metadata_locks +LOCK_TYPE SHARED_READ +LOCK_DURATION TRANSACTION +LOCK_STATUS GRANTED +OWNER_THREAD_ID OTHER +OBJECT_TYPE TABLE +OBJECT_SCHEMA test +OBJECT_NAME t1 +LOCK_TYPE SHARED_READ +LOCK_DURATION TRANSACTION +LOCK_STATUS GRANTED +OWNER_THREAD_ID USER1 +execute dump_table_handles; +OBJECT_TYPE TABLE +OBJECT_SCHEMA test +OBJECT_NAME t1 +INTERNAL_LOCK READ NO INSERT +EXTERNAL_LOCK READ EXTERNAL +OWNER_THREAD_ID USER1 +execute dump_waits_current; +execute dump_waits_history_long; +connection con2; +LOCK TABLE t1 write;; +connection default; +"---- Marker 7 ----" +execute dump_metadata_locks; +OBJECT_TYPE FUNCTION +OBJECT_SCHEMA test +OBJECT_NAME thread_id_name +LOCK_TYPE SHARED +LOCK_DURATION TRANSACTION +LOCK_STATUS GRANTED +OWNER_THREAD_ID OTHER +OBJECT_TYPE SCHEMA +OBJECT_SCHEMA test +OBJECT_NAME NULL +LOCK_TYPE INTENTION_EXCLUSIVE +LOCK_DURATION TRANSACTION +LOCK_STATUS GRANTED +OWNER_THREAD_ID USER2 +OBJECT_TYPE TABLE +OBJECT_SCHEMA performance_schema +OBJECT_NAME metadata_locks +LOCK_TYPE SHARED_READ +LOCK_DURATION TRANSACTION +LOCK_STATUS GRANTED +OWNER_THREAD_ID OTHER +OBJECT_TYPE TABLE +OBJECT_SCHEMA test +OBJECT_NAME t1 +LOCK_TYPE SHARED_NO_READ_WRITE +LOCK_DURATION TRANSACTION +LOCK_STATUS PENDING +OWNER_THREAD_ID USER2 +OBJECT_TYPE TABLE +OBJECT_SCHEMA test +OBJECT_NAME t1 +LOCK_TYPE SHARED_READ +LOCK_DURATION TRANSACTION +LOCK_STATUS GRANTED +OWNER_THREAD_ID USER1 +execute dump_table_handles; +OBJECT_TYPE TABLE +OBJECT_SCHEMA test +OBJECT_NAME t1 +INTERNAL_LOCK READ NO INSERT +EXTERNAL_LOCK READ EXTERNAL +OWNER_THREAD_ID USER1 +execute dump_waits_current; +THREAD_ID USER2 +EVENT_NAME wait/lock/metadata/sql/mdl +TIMER_START_SET 1 +TIMER_END_SET 1 +OBJECT_TYPE TABLE +OBJECT_SCHEMA test +OBJECT_NAME t1 +INDEX_NAME NULL +OPERATION metadata lock +execute dump_waits_history_long; +connection con1; +UNLOCK TABLES; +connection con2; +connection default; +"---- Marker 8 ----" +execute dump_metadata_locks; +OBJECT_TYPE BACKUP +OBJECT_SCHEMA NULL +OBJECT_NAME NULL +LOCK_TYPE BACKUP_DDL +LOCK_DURATION STATEMENT +LOCK_STATUS GRANTED +OWNER_THREAD_ID USER2 +OBJECT_TYPE BACKUP +OBJECT_SCHEMA NULL +OBJECT_NAME NULL +LOCK_TYPE BACKUP_DML +LOCK_DURATION STATEMENT +LOCK_STATUS GRANTED +OWNER_THREAD_ID USER2 +OBJECT_TYPE FUNCTION +OBJECT_SCHEMA test +OBJECT_NAME thread_id_name +LOCK_TYPE SHARED +LOCK_DURATION TRANSACTION +LOCK_STATUS GRANTED +OWNER_THREAD_ID OTHER +OBJECT_TYPE SCHEMA +OBJECT_SCHEMA test +OBJECT_NAME NULL +LOCK_TYPE INTENTION_EXCLUSIVE +LOCK_DURATION TRANSACTION +LOCK_STATUS GRANTED +OWNER_THREAD_ID USER2 +OBJECT_TYPE TABLE +OBJECT_SCHEMA performance_schema +OBJECT_NAME metadata_locks +LOCK_TYPE SHARED_READ +LOCK_DURATION TRANSACTION +LOCK_STATUS GRANTED +OWNER_THREAD_ID OTHER +OBJECT_TYPE TABLE +OBJECT_SCHEMA test +OBJECT_NAME t1 +LOCK_TYPE SHARED_NO_READ_WRITE +LOCK_DURATION TRANSACTION +LOCK_STATUS GRANTED +OWNER_THREAD_ID USER2 +execute dump_table_handles; +OBJECT_TYPE TABLE +OBJECT_SCHEMA test +OBJECT_NAME t1 +INTERNAL_LOCK WRITE +EXTERNAL_LOCK WRITE EXTERNAL +OWNER_THREAD_ID USER2 +execute dump_waits_current; +execute dump_waits_history_long; +THREAD_ID USER2 +EVENT_NAME wait/lock/metadata/sql/mdl +TIMER_START_SET 1 +TIMER_END_SET 1 +OBJECT_TYPE TABLE +OBJECT_SCHEMA test +OBJECT_NAME t1 +INDEX_NAME NULL +OPERATION metadata lock +connection con1; +LOCK TABLES t1 read;; +connection default; +"---- Marker 9 ----" +execute dump_metadata_locks; +OBJECT_TYPE BACKUP +OBJECT_SCHEMA NULL +OBJECT_NAME NULL +LOCK_TYPE BACKUP_DDL +LOCK_DURATION STATEMENT +LOCK_STATUS GRANTED +OWNER_THREAD_ID USER2 +OBJECT_TYPE BACKUP +OBJECT_SCHEMA NULL +OBJECT_NAME NULL +LOCK_TYPE BACKUP_DML +LOCK_DURATION STATEMENT +LOCK_STATUS GRANTED +OWNER_THREAD_ID USER2 +OBJECT_TYPE FUNCTION +OBJECT_SCHEMA test +OBJECT_NAME thread_id_name +LOCK_TYPE SHARED +LOCK_DURATION TRANSACTION +LOCK_STATUS GRANTED +OWNER_THREAD_ID OTHER +OBJECT_TYPE SCHEMA +OBJECT_SCHEMA test +OBJECT_NAME NULL +LOCK_TYPE INTENTION_EXCLUSIVE +LOCK_DURATION TRANSACTION +LOCK_STATUS GRANTED +OWNER_THREAD_ID USER2 +OBJECT_TYPE TABLE +OBJECT_SCHEMA performance_schema +OBJECT_NAME metadata_locks +LOCK_TYPE SHARED_READ +LOCK_DURATION TRANSACTION +LOCK_STATUS GRANTED +OWNER_THREAD_ID OTHER +OBJECT_TYPE TABLE +OBJECT_SCHEMA test +OBJECT_NAME t1 +LOCK_TYPE SHARED_NO_READ_WRITE +LOCK_DURATION TRANSACTION +LOCK_STATUS GRANTED +OWNER_THREAD_ID USER2 +OBJECT_TYPE TABLE +OBJECT_SCHEMA test +OBJECT_NAME t1 +LOCK_TYPE SHARED_READ +LOCK_DURATION TRANSACTION +LOCK_STATUS PENDING +OWNER_THREAD_ID USER1 +execute dump_table_handles; +OBJECT_TYPE TABLE +OBJECT_SCHEMA test +OBJECT_NAME t1 +INTERNAL_LOCK WRITE +EXTERNAL_LOCK WRITE EXTERNAL +OWNER_THREAD_ID USER2 +execute dump_waits_current; +THREAD_ID USER1 +EVENT_NAME wait/lock/metadata/sql/mdl +TIMER_START_SET 1 +TIMER_END_SET 1 +OBJECT_TYPE TABLE +OBJECT_SCHEMA test +OBJECT_NAME t1 +INDEX_NAME NULL +OPERATION metadata lock +execute dump_waits_history_long; +THREAD_ID USER2 +EVENT_NAME wait/lock/metadata/sql/mdl +TIMER_START_SET 1 +TIMER_END_SET 1 +OBJECT_TYPE TABLE +OBJECT_SCHEMA test +OBJECT_NAME t1 +INDEX_NAME NULL +OPERATION metadata lock +connection con2; +UNLOCK TABLES; +connection con1; +connection default; +"---- Marker 10 ----" +execute dump_metadata_locks; +OBJECT_TYPE FUNCTION +OBJECT_SCHEMA test +OBJECT_NAME thread_id_name +LOCK_TYPE SHARED +LOCK_DURATION TRANSACTION +LOCK_STATUS GRANTED +OWNER_THREAD_ID OTHER +OBJECT_TYPE TABLE +OBJECT_SCHEMA performance_schema +OBJECT_NAME metadata_locks +LOCK_TYPE SHARED_READ +LOCK_DURATION TRANSACTION +LOCK_STATUS GRANTED +OWNER_THREAD_ID OTHER +OBJECT_TYPE TABLE +OBJECT_SCHEMA test +OBJECT_NAME t1 +LOCK_TYPE SHARED_READ +LOCK_DURATION TRANSACTION +LOCK_STATUS GRANTED +OWNER_THREAD_ID USER1 +execute dump_table_handles; +OBJECT_TYPE TABLE +OBJECT_SCHEMA test +OBJECT_NAME t1 +INTERNAL_LOCK READ NO INSERT +EXTERNAL_LOCK READ EXTERNAL +OWNER_THREAD_ID USER1 +execute dump_waits_current; +execute dump_waits_history_long; +THREAD_ID USER2 +EVENT_NAME wait/lock/metadata/sql/mdl +TIMER_START_SET 1 +TIMER_END_SET 1 +OBJECT_TYPE TABLE +OBJECT_SCHEMA test +OBJECT_NAME t1 +INDEX_NAME NULL +OPERATION metadata lock +THREAD_ID USER1 +EVENT_NAME wait/lock/metadata/sql/mdl +TIMER_START_SET 1 +TIMER_END_SET 1 +OBJECT_TYPE TABLE +OBJECT_SCHEMA test +OBJECT_NAME t1 +INDEX_NAME NULL +OPERATION metadata lock +connection con1; +UNLOCK TABLES; +connection default; +"---- Marker 11 ----" +execute dump_metadata_locks; +OBJECT_TYPE FUNCTION +OBJECT_SCHEMA test +OBJECT_NAME thread_id_name +LOCK_TYPE SHARED +LOCK_DURATION TRANSACTION +LOCK_STATUS GRANTED +OWNER_THREAD_ID OTHER +OBJECT_TYPE TABLE +OBJECT_SCHEMA performance_schema +OBJECT_NAME metadata_locks +LOCK_TYPE SHARED_READ +LOCK_DURATION TRANSACTION +LOCK_STATUS GRANTED +OWNER_THREAD_ID OTHER +execute dump_table_handles; +OBJECT_TYPE TABLE +OBJECT_SCHEMA test +OBJECT_NAME t1 +INTERNAL_LOCK READ NO INSERT +EXTERNAL_LOCK NULL +OWNER_THREAD_ID OTHER +execute dump_waits_current; +execute dump_waits_history_long; +THREAD_ID USER2 +EVENT_NAME wait/lock/metadata/sql/mdl +TIMER_START_SET 1 +TIMER_END_SET 1 +OBJECT_TYPE TABLE +OBJECT_SCHEMA test +OBJECT_NAME t1 +INDEX_NAME NULL +OPERATION metadata lock +THREAD_ID USER1 +EVENT_NAME wait/lock/metadata/sql/mdl +TIMER_START_SET 1 +TIMER_END_SET 1 +OBJECT_TYPE TABLE +OBJECT_SCHEMA test +OBJECT_NAME t1 +INDEX_NAME NULL +OPERATION metadata lock +TRUNCATE TABLE performance_schema.events_waits_history_long; +TRUNCATE TABLE performance_schema.events_waits_history; +TRUNCATE TABLE performance_schema.events_waits_current; +connection con1; +BEGIN; +UPDATE LOW_PRIORITY t1 SET a=8; +connection default; +"---- Marker 12 ----" +execute dump_metadata_locks; +OBJECT_TYPE FUNCTION +OBJECT_SCHEMA test +OBJECT_NAME thread_id_name +LOCK_TYPE SHARED +LOCK_DURATION TRANSACTION +LOCK_STATUS GRANTED +OWNER_THREAD_ID OTHER +OBJECT_TYPE TABLE +OBJECT_SCHEMA performance_schema +OBJECT_NAME metadata_locks +LOCK_TYPE SHARED_READ +LOCK_DURATION TRANSACTION +LOCK_STATUS GRANTED +OWNER_THREAD_ID OTHER +OBJECT_TYPE TABLE +OBJECT_SCHEMA test +OBJECT_NAME t1 +LOCK_TYPE SHARED_WRITE +LOCK_DURATION TRANSACTION +LOCK_STATUS GRANTED +OWNER_THREAD_ID USER1 +execute dump_table_handles; +OBJECT_TYPE TABLE +OBJECT_SCHEMA test +OBJECT_NAME t1 +INTERNAL_LOCK WRITE LOW PRIORITY +EXTERNAL_LOCK NULL +OWNER_THREAD_ID OTHER +execute dump_waits_current; +execute dump_waits_history_long; +connection con1; +COMMIT; +connection default; +TRUNCATE TABLE performance_schema.events_waits_history_long; +TRUNCATE TABLE performance_schema.events_waits_history; +TRUNCATE TABLE performance_schema.events_waits_current; +connection con1; +SELECT GET_LOCK('test', 0); +GET_LOCK('test', 0) +1 +connection default; +"---- Marker 13 ----" +execute dump_metadata_locks; +OBJECT_TYPE FUNCTION +OBJECT_SCHEMA test +OBJECT_NAME thread_id_name +LOCK_TYPE SHARED +LOCK_DURATION TRANSACTION +LOCK_STATUS GRANTED +OWNER_THREAD_ID OTHER +OBJECT_TYPE TABLE +OBJECT_SCHEMA performance_schema +OBJECT_NAME metadata_locks +LOCK_TYPE SHARED_READ +LOCK_DURATION TRANSACTION +LOCK_STATUS GRANTED +OWNER_THREAD_ID OTHER +OBJECT_TYPE USER LEVEL LOCK +OBJECT_SCHEMA NULL +OBJECT_NAME test +LOCK_TYPE SHARED_NO_WRITE +LOCK_DURATION EXPLICIT +LOCK_STATUS GRANTED +OWNER_THREAD_ID USER1 +execute dump_table_handles; +OBJECT_TYPE TABLE +OBJECT_SCHEMA test +OBJECT_NAME t1 +INTERNAL_LOCK WRITE LOW PRIORITY +EXTERNAL_LOCK NULL +OWNER_THREAD_ID OTHER +execute dump_waits_current; +execute dump_waits_history_long; +connection con2; +SELECT GET_LOCK('test', 120);; +connection default; +"---- Marker 14 ----" +execute dump_metadata_locks; +OBJECT_TYPE FUNCTION +OBJECT_SCHEMA test +OBJECT_NAME thread_id_name +LOCK_TYPE SHARED +LOCK_DURATION TRANSACTION +LOCK_STATUS GRANTED +OWNER_THREAD_ID OTHER +OBJECT_TYPE TABLE +OBJECT_SCHEMA performance_schema +OBJECT_NAME metadata_locks +LOCK_TYPE SHARED_READ +LOCK_DURATION TRANSACTION +LOCK_STATUS GRANTED +OWNER_THREAD_ID OTHER +OBJECT_TYPE USER LEVEL LOCK +OBJECT_SCHEMA NULL +OBJECT_NAME test +LOCK_TYPE SHARED_NO_WRITE +LOCK_DURATION EXPLICIT +LOCK_STATUS GRANTED +OWNER_THREAD_ID USER1 +OBJECT_TYPE USER LEVEL LOCK +OBJECT_SCHEMA NULL +OBJECT_NAME test +LOCK_TYPE SHARED_NO_WRITE +LOCK_DURATION EXPLICIT +LOCK_STATUS PENDING +OWNER_THREAD_ID USER2 +execute dump_table_handles; +OBJECT_TYPE TABLE +OBJECT_SCHEMA test +OBJECT_NAME t1 +INTERNAL_LOCK WRITE LOW PRIORITY +EXTERNAL_LOCK NULL +OWNER_THREAD_ID OTHER +execute dump_waits_current; +THREAD_ID USER2 +EVENT_NAME wait/lock/metadata/sql/mdl +TIMER_START_SET 1 +TIMER_END_SET 1 +OBJECT_TYPE USER LEVEL LOCK +OBJECT_SCHEMA NULL +OBJECT_NAME test +INDEX_NAME NULL +OPERATION metadata lock +execute dump_waits_history_long; +connection con1; +SELECT RELEASE_LOCK('test'); +RELEASE_LOCK('test') +1 +connection con2; +GET_LOCK('test', 120) +1 +connection default; +"---- Marker 15 ----" +execute dump_metadata_locks; +OBJECT_TYPE FUNCTION +OBJECT_SCHEMA test +OBJECT_NAME thread_id_name +LOCK_TYPE SHARED +LOCK_DURATION TRANSACTION +LOCK_STATUS GRANTED +OWNER_THREAD_ID OTHER +OBJECT_TYPE TABLE +OBJECT_SCHEMA performance_schema +OBJECT_NAME metadata_locks +LOCK_TYPE SHARED_READ +LOCK_DURATION TRANSACTION +LOCK_STATUS GRANTED +OWNER_THREAD_ID OTHER +OBJECT_TYPE USER LEVEL LOCK +OBJECT_SCHEMA NULL +OBJECT_NAME test +LOCK_TYPE SHARED_NO_WRITE +LOCK_DURATION EXPLICIT +LOCK_STATUS GRANTED +OWNER_THREAD_ID USER2 +execute dump_table_handles; +OBJECT_TYPE TABLE +OBJECT_SCHEMA test +OBJECT_NAME t1 +INTERNAL_LOCK WRITE LOW PRIORITY +EXTERNAL_LOCK NULL +OWNER_THREAD_ID OTHER +execute dump_waits_current; +THREAD_ID USER2 +EVENT_NAME wait/lock/metadata/sql/mdl +TIMER_START_SET 1 +TIMER_END_SET 1 +OBJECT_TYPE USER LEVEL LOCK +OBJECT_SCHEMA NULL +OBJECT_NAME test +INDEX_NAME NULL +OPERATION metadata lock +execute dump_waits_history_long; +THREAD_ID USER2 +EVENT_NAME wait/lock/metadata/sql/mdl +TIMER_START_SET 1 +TIMER_END_SET 1 +OBJECT_TYPE USER LEVEL LOCK +OBJECT_SCHEMA NULL +OBJECT_NAME test +INDEX_NAME NULL +OPERATION metadata lock +connection con2; +SELECT RELEASE_LOCK('test'); +RELEASE_LOCK('test') +1 +connection default; +"---- Marker 16 ----" +execute dump_metadata_locks; +OBJECT_TYPE FUNCTION +OBJECT_SCHEMA test +OBJECT_NAME thread_id_name +LOCK_TYPE SHARED +LOCK_DURATION TRANSACTION +LOCK_STATUS GRANTED +OWNER_THREAD_ID OTHER +OBJECT_TYPE TABLE +OBJECT_SCHEMA performance_schema +OBJECT_NAME metadata_locks +LOCK_TYPE SHARED_READ +LOCK_DURATION TRANSACTION +LOCK_STATUS GRANTED +OWNER_THREAD_ID OTHER +execute dump_table_handles; +OBJECT_TYPE TABLE +OBJECT_SCHEMA test +OBJECT_NAME t1 +INTERNAL_LOCK WRITE LOW PRIORITY +EXTERNAL_LOCK NULL +OWNER_THREAD_ID OTHER +execute dump_waits_current; +THREAD_ID USER2 +EVENT_NAME wait/lock/metadata/sql/mdl +TIMER_START_SET 1 +TIMER_END_SET 1 +OBJECT_TYPE USER LEVEL LOCK +OBJECT_SCHEMA NULL +OBJECT_NAME test +INDEX_NAME NULL +OPERATION metadata lock +execute dump_waits_history_long; +THREAD_ID USER2 +EVENT_NAME wait/lock/metadata/sql/mdl +TIMER_START_SET 1 +TIMER_END_SET 1 +OBJECT_TYPE USER LEVEL LOCK +OBJECT_SCHEMA NULL +OBJECT_NAME test +INDEX_NAME NULL +OPERATION metadata lock +disconnect con1; +disconnect con2; +connection default; +drop table t1; +UPDATE performance_schema.setup_instruments SET enabled = 'YES', timed = 'YES'; +revoke all privileges, grant option from user1@localhost; +revoke all privileges, grant option from user2@localhost; +drop user user1@localhost; +drop user user2@localhost; +drop function thread_id_name; +drop prepare dump_metadata_locks; +drop prepare dump_table_handles; +drop prepare dump_waits_current; +drop prepare dump_waits_history_long; +delete from performance_schema.setup_objects +where object_schema='mtr'; +show global status like "performance_schema%"; +Variable_name Value +Performance_schema_accounts_lost 0 +Performance_schema_cond_classes_lost 0 +Performance_schema_cond_instances_lost 0 +Performance_schema_digest_lost 0 +Performance_schema_file_classes_lost 0 +Performance_schema_file_handles_lost 0 +Performance_schema_file_instances_lost 0 +Performance_schema_hosts_lost 0 +Performance_schema_index_stat_lost 0 +Performance_schema_locker_lost 0 +Performance_schema_memory_classes_lost 0 +Performance_schema_metadata_lock_lost 0 +Performance_schema_mutex_classes_lost 0 +Performance_schema_mutex_instances_lost 0 +Performance_schema_nested_statement_lost 0 +Performance_schema_prepared_statements_lost 0 +Performance_schema_program_lost 0 +Performance_schema_rwlock_classes_lost 0 +Performance_schema_rwlock_instances_lost 0 +Performance_schema_session_connect_attrs_lost 0 +Performance_schema_socket_classes_lost 0 +Performance_schema_socket_instances_lost 0 +Performance_schema_stage_classes_lost 0 +Performance_schema_statement_classes_lost 0 +Performance_schema_table_handles_lost 0 +Performance_schema_table_instances_lost 0 +Performance_schema_table_lock_stat_lost 0 +Performance_schema_thread_classes_lost 0 +Performance_schema_thread_instances_lost 0 +Performance_schema_users_lost 0 diff --git a/mysql-test/suite/perfschema/r/memory_aggregate.result b/mysql-test/suite/perfschema/r/memory_aggregate.result new file mode 100644 index 00000000..69eb033e --- /dev/null +++ b/mysql-test/suite/perfschema/r/memory_aggregate.result @@ -0,0 +1,5602 @@ +show global status like "performance_schema_memory_classes_lost"; +Variable_name Value +Performance_schema_memory_classes_lost 0 +"================== Step 1 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 1 +connect con1, localhost, user1, , ; +"================== con1 connected ==================" +connection default; +"================== Step 2 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 2 2 +connection con1; +set GLOBAL query_cache_size=1000*1024; +select get_lock("marker_1", 10); +get_lock("marker_1", 10) +1 +select release_lock("marker_1"); +release_lock("marker_1") +1 +set @v1 = repeat("a", 1000); +set @v2 = repeat("b", 2000); +set @v3 = repeat("c", 4000); +"================== con1 marker ==================" +connection default; +"================== Step 3 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 4 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7120 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 4 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 7120 +HIGH_NUMBER_OF_BYTES_USED 7120 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 2 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 32768 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 4 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7120 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 4 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 7120 +HIGH_NUMBER_OF_BYTES_USED 7120 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 2 2 +connect con2, localhost, user2, , ; +"================== con2 connected ==================" +connection default; +"================== Step 4 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 4 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7120 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 4 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 7120 +HIGH_NUMBER_OF_BYTES_USED 7120 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 2 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 32768 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 4 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7120 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 4 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 7120 +HIGH_NUMBER_OF_BYTES_USED 7120 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +user2 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +user2 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 3 3 +connection con2; +set GLOBAL query_cache_size=2000*1024; +select get_lock("marker_2", 10); +get_lock("marker_2", 10) +1 +select release_lock("marker_2"); +release_lock("marker_2") +1 +set @v1 = repeat("a", 1000); +set @v2 = repeat("b", 2000); +set @v3 = repeat("c", 4000); +"================== con2 marker ==================" +connection default; +"================== Step 5 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 32 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 512 +HIGH_NUMBER_OF_BYTES_USED 544 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 7 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 14144 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 7 +HIGH_COUNT_USED 7 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 14144 +HIGH_NUMBER_OF_BYTES_USED 14144 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 65536 +SUM_NUMBER_OF_BYTES_FREE 32768 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 32 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 512 +HIGH_NUMBER_OF_BYTES_USED 544 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 7 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 14144 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 7 +HIGH_COUNT_USED 7 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 14144 +HIGH_NUMBER_OF_BYTES_USED 14144 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +user2 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +user2 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 3 3 +truncate table performance_schema.memory_summary_by_thread_by_event_name; +"================== MEMORY_BY_THREAD truncated ==================" +"================== Step 5b ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 32 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 512 +HIGH_NUMBER_OF_BYTES_USED 544 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 7 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 14144 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 7 +HIGH_COUNT_USED 7 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 14144 +HIGH_NUMBER_OF_BYTES_USED 14144 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 65536 +SUM_NUMBER_OF_BYTES_FREE 32768 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 32 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 512 +HIGH_NUMBER_OF_BYTES_USED 544 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 7 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 14144 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 7 +HIGH_COUNT_USED 7 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 14144 +HIGH_NUMBER_OF_BYTES_USED 14144 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +user2 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +user2 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 3 3 +connect con3, localhost, user3, , ; +"================== con3 connected ==================" +connection default; +"================== Step 6 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +username user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +username user4 +status not found +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 32 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 512 +HIGH_NUMBER_OF_BYTES_USED 544 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 7 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 14144 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 7 +HIGH_COUNT_USED 7 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 14144 +HIGH_NUMBER_OF_BYTES_USED 14144 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 65536 +SUM_NUMBER_OF_BYTES_FREE 32768 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 32 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 512 +HIGH_NUMBER_OF_BYTES_USED 544 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 7 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 14144 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 7 +HIGH_COUNT_USED 7 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 14144 +HIGH_NUMBER_OF_BYTES_USED 14144 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +user2 localhost 1 1 +user3 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +user2 1 1 +user3 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 4 4 +connection con3; +set GLOBAL query_cache_size=500*1024; +select get_lock("marker_3", 10); +get_lock("marker_3", 10) +1 +select release_lock("marker_3"); +release_lock("marker_3") +1 +set @v1 = repeat("a", 1000); +set @v2 = repeat("b", 2000); +set @v3 = repeat("c", 4000); +"================== con3 marker ==================" +connection default; +"================== Step 7 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user4 +status not found +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user3 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 6 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 816 +SUM_NUMBER_OF_BYTES_FREE 48 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 768 +HIGH_NUMBER_OF_BYTES_USED 816 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 10 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 21168 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 10 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 21168 +HIGH_NUMBER_OF_BYTES_USED 21168 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 6 +COUNT_FREE 4 +SUM_NUMBER_OF_BYTES_ALLOC 98304 +SUM_NUMBER_OF_BYTES_FREE 65536 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 6 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 816 +SUM_NUMBER_OF_BYTES_FREE 48 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 768 +HIGH_NUMBER_OF_BYTES_USED 816 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 10 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 21168 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 10 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 21168 +HIGH_NUMBER_OF_BYTES_USED 21168 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +user2 localhost 1 1 +user3 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +user2 1 1 +user3 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 4 4 +connect con4, localhost, user4, , ; +connect con5, localhost, user4, , ; +"================== con4/con5 (both user4) connected ==================" +connection default; +"================== Step 8 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +username user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user3 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 6 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 816 +SUM_NUMBER_OF_BYTES_FREE 48 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 768 +HIGH_NUMBER_OF_BYTES_USED 816 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 10 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 21168 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 10 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 21168 +HIGH_NUMBER_OF_BYTES_USED 21168 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 6 +COUNT_FREE 4 +SUM_NUMBER_OF_BYTES_ALLOC 98304 +SUM_NUMBER_OF_BYTES_FREE 65536 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 6 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 816 +SUM_NUMBER_OF_BYTES_FREE 48 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 768 +HIGH_NUMBER_OF_BYTES_USED 816 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 10 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 21168 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 10 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 21168 +HIGH_NUMBER_OF_BYTES_USED 21168 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +user2 localhost 1 1 +user3 localhost 1 1 +user4 localhost 2 2 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +user2 1 1 +user3 1 1 +user4 2 2 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 6 6 +connection con4; +set GLOBAL query_cache_size=4000*1024; +select get_lock("marker_4", 10); +get_lock("marker_4", 10) +1 +select release_lock("marker_4"); +release_lock("marker_4") +1 +set @v1 = repeat("a", 1000); +set @v2 = repeat("b", 2000); +set @v3 = repeat("c", 4000); +connection con5; +select get_lock("marker_5", 10); +get_lock("marker_5", 10) +1 +select release_lock("marker_5"); +release_lock("marker_5") +1 +set @v1 = repeat("a", 1000); +set @v2 = repeat("b", 2000); +set @v3 = repeat("c", 4000); +"================== con4/con5 marker ==================" +connection default; +"================== Step 9 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user3 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 32 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 512 +HIGH_NUMBER_OF_BYTES_USED 544 +USER user4 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 6 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 14048 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 6 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 14048 +HIGH_NUMBER_OF_BYTES_USED 14048 +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 32 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 512 +HIGH_NUMBER_OF_BYTES_USED 544 +USER user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 6 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 14048 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 6 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 14048 +HIGH_NUMBER_OF_BYTES_USED 14048 +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 5 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 80 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 5 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 1280 +HIGH_NUMBER_OF_BYTES_USED 1360 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 16 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 35216 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 5 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 80 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 5 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 1280 +HIGH_NUMBER_OF_BYTES_USED 1360 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 16 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 35216 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +user2 localhost 1 1 +user3 localhost 1 1 +user4 localhost 2 2 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +user2 1 1 +user3 1 1 +user4 2 2 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 6 6 +disconnect con1; +disconnect con5; +connection default; +"================== con1/con5 disconnected ==================" +"================== Step 10 ==================" +call dump_thread(); +username user1 +status not found +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user3 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 288 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 544 +USER user4 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 6 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 14048 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 14048 +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 288 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 544 +USER user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 6 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 14048 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 14048 +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 7 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 592 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 768 +HIGH_NUMBER_OF_BYTES_USED 1360 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 14048 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 10 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 21168 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 7 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 592 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 768 +HIGH_NUMBER_OF_BYTES_USED 1360 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 14048 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 10 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 21168 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 1 1 +user3 localhost 1 1 +user4 localhost 1 2 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 1 1 +user3 1 1 +user4 1 2 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 4 6 +disconnect con2; +connection default; +"================== con2 disconnected ==================" +"================== Step 11 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user3 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 288 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 544 +USER user4 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 6 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 14048 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 14048 +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 288 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 544 +USER user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 6 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 14048 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 14048 +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 8 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 848 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 512 +HIGH_NUMBER_OF_BYTES_USED 1360 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 9 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 21072 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 7 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 14144 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 8 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 848 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 512 +HIGH_NUMBER_OF_BYTES_USED 1360 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 9 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 21072 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 7 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 14144 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 1 1 +user4 localhost 1 2 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 1 1 +user4 1 2 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 3 6 +disconnect con3; +connection default; +"================== con3 disconnected ==================" +"================== Step 12 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user3 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 288 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 544 +USER user4 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 6 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 14048 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 14048 +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 288 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 544 +USER user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 6 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 14048 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 14048 +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 9 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 1104 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 1360 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 12 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 28096 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 4 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 7120 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 9 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 1104 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 1360 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 12 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 28096 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 4 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 7120 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 1 2 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 1 2 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 2 6 +disconnect con4; +connection default; +"================== con4 disconnected ==================" +"================== Step 13 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user3 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 4 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 544 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 544 +USER user4 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 6 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 14048 +SUM_NUMBER_OF_BYTES_FREE 14048 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 14048 +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 4 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 544 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 544 +USER user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 6 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 14048 +SUM_NUMBER_OF_BYTES_FREE 14048 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 14048 +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 10 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 1360 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 1360 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 15 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 35120 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 10 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 1360 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 1360 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 15 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 35120 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 2 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 2 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 6 +connection default; +truncate performance_schema.memory_summary_by_thread_by_event_name; +"================== MEMORY_BY_THREAD truncated ==================" +"================== Step 14 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user3 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 4 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 544 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 544 +USER user4 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 6 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 14048 +SUM_NUMBER_OF_BYTES_FREE 14048 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 14048 +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 4 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 544 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 544 +USER user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 6 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 14048 +SUM_NUMBER_OF_BYTES_FREE 14048 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 14048 +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 10 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 1360 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 1360 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 15 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 35120 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 10 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 1360 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 1360 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 15 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 35120 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 2 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 2 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 6 +truncate performance_schema.memory_summary_by_account_by_event_name; +"================== MEMORY_BY_ACCOUNT truncated ==================" +"================== Step 15 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 4 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 544 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 544 +USER user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 6 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 14048 +SUM_NUMBER_OF_BYTES_FREE 14048 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 14048 +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 10 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 1360 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 1360 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 15 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 35120 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 10 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 1360 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 1360 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 15 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 35120 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 2 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 2 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 6 +truncate performance_schema.memory_summary_by_user_by_event_name; +"================== MEMORY_BY_USER truncated ==================" +"================== Step 16 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 10 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 1360 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 1360 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 15 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 35120 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 10 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 1360 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 1360 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 15 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 35120 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 2 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 2 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 6 +truncate performance_schema.memory_summary_by_host_by_event_name; +"================== MEMORY_BY_HOST truncated ==================" +"================== Step 17 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 10 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 1360 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 1360 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 15 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 35120 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 2 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 2 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 6 +truncate performance_schema.memory_summary_global_by_event_name; +"================== MEMORY_GLOBAL truncated ==================" +"================== Step 18 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 2 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 32768 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 2 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 32768 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 2 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 2 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 6 +truncate performance_schema.accounts; +"================== ACCOUNTS truncated ==================" +"================== Step 19 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 2 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 32768 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 2 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 32768 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 2 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 6 +truncate performance_schema.users; +"================== USERS truncated ==================" +"================== Step 20 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 2 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 32768 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 2 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 32768 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 6 +truncate performance_schema.hosts; +"================== HOSTS truncated ==================" +"================== Step 21 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 2 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 32768 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 2 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 32768 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 1 diff --git a/mysql-test/suite/perfschema/r/memory_aggregate_32bit.result b/mysql-test/suite/perfschema/r/memory_aggregate_32bit.result new file mode 100644 index 00000000..2b8ee675 --- /dev/null +++ b/mysql-test/suite/perfschema/r/memory_aggregate_32bit.result @@ -0,0 +1,5602 @@ +show global status like "performance_schema_memory_classes_lost"; +Variable_name Value +Performance_schema_memory_classes_lost 0 +"================== Step 1 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 1 +connect con1, localhost, user1, , ; +"================== con1 connected ==================" +connection default; +"================== Step 2 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 2 2 +connection con1; +set GLOBAL query_cache_size=1000*1024; +select get_lock("marker_1", 10); +get_lock("marker_1", 10) +1 +select release_lock("marker_1"); +release_lock("marker_1") +1 +set @v1 = repeat("a", 1000); +set @v2 = repeat("b", 2000); +set @v3 = repeat("c", 4000); +"================== con1 marker ==================" +connection default; +"================== Step 3 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 8 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 200 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 8 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 200 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 8 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 200 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 8 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 200 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 4 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7120 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 4 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 7120 +HIGH_NUMBER_OF_BYTES_USED 7120 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 2 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 24576 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 24576 +HIGH_NUMBER_OF_BYTES_USED 24576 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 8 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 200 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 4 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7120 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 4 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 7120 +HIGH_NUMBER_OF_BYTES_USED 7120 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 2 2 +connect con2, localhost, user2, , ; +"================== con2 connected ==================" +connection default; +"================== Step 4 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 8 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 200 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 8 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 200 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 8 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 200 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 8 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 200 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 4 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7120 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 4 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 7120 +HIGH_NUMBER_OF_BYTES_USED 7120 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 2 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 24576 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 24576 +HIGH_NUMBER_OF_BYTES_USED 24576 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 8 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 200 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 4 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7120 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 4 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 7120 +HIGH_NUMBER_OF_BYTES_USED 7120 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +user2 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +user2 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 3 3 +connection con2; +set GLOBAL query_cache_size=2000*1024; +select get_lock("marker_2", 10); +get_lock("marker_2", 10) +1 +select release_lock("marker_2"); +release_lock("marker_2") +1 +set @v1 = repeat("a", 1000); +set @v2 = repeat("b", 2000); +set @v3 = repeat("c", 4000); +"================== con2 marker ==================" +connection default; +"================== Step 5 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 8 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 200 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 8 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 200 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 8 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 200 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 8 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 200 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 8 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 200 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 8 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 200 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 400 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 384 +HIGH_NUMBER_OF_BYTES_USED 400 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 7 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 14144 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 7 +HIGH_COUNT_USED 7 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 14144 +HIGH_NUMBER_OF_BYTES_USED 14144 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 49152 +SUM_NUMBER_OF_BYTES_FREE 24576 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 24576 +HIGH_NUMBER_OF_BYTES_USED 24576 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 400 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 384 +HIGH_NUMBER_OF_BYTES_USED 400 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 7 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 14144 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 7 +HIGH_COUNT_USED 7 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 14144 +HIGH_NUMBER_OF_BYTES_USED 14144 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +user2 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +user2 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 3 3 +truncate table performance_schema.memory_summary_by_thread_by_event_name; +"================== MEMORY_BY_THREAD truncated ==================" +"================== Step 5b ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 192 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 192 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 192 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 192 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 192 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 192 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 8 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 200 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 8 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 200 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 8 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 200 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 8 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 200 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 400 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 384 +HIGH_NUMBER_OF_BYTES_USED 400 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 7 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 14144 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 7 +HIGH_COUNT_USED 7 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 14144 +HIGH_NUMBER_OF_BYTES_USED 14144 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 49152 +SUM_NUMBER_OF_BYTES_FREE 24576 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 24576 +HIGH_NUMBER_OF_BYTES_USED 24576 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 400 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 384 +HIGH_NUMBER_OF_BYTES_USED 400 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 7 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 14144 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 7 +HIGH_COUNT_USED 7 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 14144 +HIGH_NUMBER_OF_BYTES_USED 14144 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +user2 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +user2 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 3 3 +connect con3, localhost, user3, , ; +"================== con3 connected ==================" +connection default; +"================== Step 6 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 192 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 192 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 192 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 192 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 192 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 192 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +username user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +username user4 +status not found +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 8 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 200 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 8 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 200 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 8 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 200 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 8 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 200 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 400 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 384 +HIGH_NUMBER_OF_BYTES_USED 400 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 7 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 14144 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 7 +HIGH_COUNT_USED 7 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 14144 +HIGH_NUMBER_OF_BYTES_USED 14144 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 49152 +SUM_NUMBER_OF_BYTES_FREE 24576 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 24576 +HIGH_NUMBER_OF_BYTES_USED 24576 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 400 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 384 +HIGH_NUMBER_OF_BYTES_USED 400 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 7 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 14144 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 7 +HIGH_COUNT_USED 7 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 14144 +HIGH_NUMBER_OF_BYTES_USED 14144 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +user2 localhost 1 1 +user3 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +user2 1 1 +user3 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 4 4 +connection con3; +set GLOBAL query_cache_size=500*1024; +select get_lock("marker_3", 10); +get_lock("marker_3", 10) +1 +select release_lock("marker_3"); +release_lock("marker_3") +1 +set @v1 = repeat("a", 1000); +set @v2 = repeat("b", 2000); +set @v3 = repeat("c", 4000); +"================== con3 marker ==================" +connection default; +"================== Step 7 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 192 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 192 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 192 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 192 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 192 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 192 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 8 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 200 +username user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user4 +status not found +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 8 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 200 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 8 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 200 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 8 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 200 +USER user3 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 8 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 200 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 8 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 200 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 8 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 200 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 6 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 600 +SUM_NUMBER_OF_BYTES_FREE 24 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 576 +HIGH_NUMBER_OF_BYTES_USED 600 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 10 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 21168 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 10 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 21168 +HIGH_NUMBER_OF_BYTES_USED 21168 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 6 +COUNT_FREE 4 +SUM_NUMBER_OF_BYTES_ALLOC 73728 +SUM_NUMBER_OF_BYTES_FREE 49152 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 24576 +HIGH_NUMBER_OF_BYTES_USED 24576 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 6 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 600 +SUM_NUMBER_OF_BYTES_FREE 24 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 576 +HIGH_NUMBER_OF_BYTES_USED 600 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 10 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 21168 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 10 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 21168 +HIGH_NUMBER_OF_BYTES_USED 21168 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +user2 localhost 1 1 +user3 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +user2 1 1 +user3 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 4 4 +connect con4, localhost, user4, , ; +connect con5, localhost, user4, , ; +"================== con4/con5 (both user4) connected ==================" +connection default; +"================== Step 8 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 192 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 192 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 192 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 192 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 192 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 192 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 8 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 200 +username user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +username user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 8 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 200 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 8 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 200 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 8 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 200 +USER user3 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 8 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 200 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 8 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 200 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 8 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 200 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 6 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 600 +SUM_NUMBER_OF_BYTES_FREE 24 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 576 +HIGH_NUMBER_OF_BYTES_USED 600 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 10 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 21168 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 10 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 21168 +HIGH_NUMBER_OF_BYTES_USED 21168 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 6 +COUNT_FREE 4 +SUM_NUMBER_OF_BYTES_ALLOC 73728 +SUM_NUMBER_OF_BYTES_FREE 49152 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 24576 +HIGH_NUMBER_OF_BYTES_USED 24576 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 6 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 600 +SUM_NUMBER_OF_BYTES_FREE 24 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 576 +HIGH_NUMBER_OF_BYTES_USED 600 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 10 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 21168 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 10 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 21168 +HIGH_NUMBER_OF_BYTES_USED 21168 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +user2 localhost 1 1 +user3 localhost 1 1 +user4 localhost 2 2 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +user2 1 1 +user3 1 1 +user4 2 2 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 6 6 +connection con4; +set GLOBAL query_cache_size=4000*1024; +select get_lock("marker_4", 10); +get_lock("marker_4", 10) +1 +select release_lock("marker_4"); +release_lock("marker_4") +1 +set @v1 = repeat("a", 1000); +set @v2 = repeat("b", 2000); +set @v3 = repeat("c", 4000); +connection con5; +select get_lock("marker_5", 10); +get_lock("marker_5", 10) +1 +select release_lock("marker_5"); +release_lock("marker_5") +1 +set @v1 = repeat("a", 1000); +set @v2 = repeat("b", 2000); +set @v3 = repeat("c", 4000); +"================== con4/con5 marker ==================" +connection default; +"================== Step 9 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 192 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 192 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 192 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 192 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 192 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 192 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 8 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 200 +username user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 8 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 200 +username user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 8 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 200 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 8 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 200 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 8 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 200 +USER user3 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 400 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 384 +HIGH_NUMBER_OF_BYTES_USED 400 +USER user4 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 6 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 14048 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 6 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 14048 +HIGH_NUMBER_OF_BYTES_USED 14048 +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 8 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 200 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 8 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 200 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 8 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 200 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 400 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 384 +HIGH_NUMBER_OF_BYTES_USED 400 +USER user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 6 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 14048 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 6 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 14048 +HIGH_NUMBER_OF_BYTES_USED 14048 +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 5 +SUM_NUMBER_OF_BYTES_ALLOC 1000 +SUM_NUMBER_OF_BYTES_FREE 40 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 5 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 960 +HIGH_NUMBER_OF_BYTES_USED 1000 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 16 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 35216 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 98304 +SUM_NUMBER_OF_BYTES_FREE 73728 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 24576 +HIGH_NUMBER_OF_BYTES_USED 24576 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 5 +SUM_NUMBER_OF_BYTES_ALLOC 1000 +SUM_NUMBER_OF_BYTES_FREE 40 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 5 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 960 +HIGH_NUMBER_OF_BYTES_USED 1000 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 16 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 35216 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +user2 localhost 1 1 +user3 localhost 1 1 +user4 localhost 2 2 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +user2 1 1 +user3 1 1 +user4 2 2 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 6 6 +disconnect con1; +disconnect con5; +connection default; +"================== con1/con5 disconnected ==================" +"================== Step 10 ==================" +call dump_thread(); +username user1 +status not found +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 192 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 192 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 192 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 8 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 200 +username user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 8 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 200 +username user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 200 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 200 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 8 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 200 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 8 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 200 +USER user3 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 400 +SUM_NUMBER_OF_BYTES_FREE 208 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 400 +USER user4 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 6 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 14048 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 14048 +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 200 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 200 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 8 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 200 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 8 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 200 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 400 +SUM_NUMBER_OF_BYTES_FREE 208 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 400 +USER user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 6 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 14048 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 14048 +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 7 +SUM_NUMBER_OF_BYTES_ALLOC 1000 +SUM_NUMBER_OF_BYTES_FREE 424 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 576 +HIGH_NUMBER_OF_BYTES_USED 1000 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 14048 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 10 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 21168 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 98304 +SUM_NUMBER_OF_BYTES_FREE 73728 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 24576 +HIGH_NUMBER_OF_BYTES_USED 24576 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 7 +SUM_NUMBER_OF_BYTES_ALLOC 1000 +SUM_NUMBER_OF_BYTES_FREE 424 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 576 +HIGH_NUMBER_OF_BYTES_USED 1000 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 14048 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 10 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 21168 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 1 1 +user3 localhost 1 1 +user4 localhost 1 2 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 1 1 +user3 1 1 +user4 1 2 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 4 6 +disconnect con2; +connection default; +"================== con2 disconnected ==================" +"================== Step 11 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 8 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 200 +username user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 8 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 200 +username user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 200 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 200 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 200 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 200 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 8 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 200 +USER user3 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 400 +SUM_NUMBER_OF_BYTES_FREE 208 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 400 +USER user4 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 6 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 14048 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 14048 +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 200 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 200 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 200 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 200 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 8 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 200 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 400 +SUM_NUMBER_OF_BYTES_FREE 208 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 400 +USER user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 6 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 14048 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 14048 +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 8 +SUM_NUMBER_OF_BYTES_ALLOC 1000 +SUM_NUMBER_OF_BYTES_FREE 616 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 384 +HIGH_NUMBER_OF_BYTES_USED 1000 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 9 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 21072 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 7 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 14144 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 98304 +SUM_NUMBER_OF_BYTES_FREE 73728 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 24576 +HIGH_NUMBER_OF_BYTES_USED 24576 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 8 +SUM_NUMBER_OF_BYTES_ALLOC 1000 +SUM_NUMBER_OF_BYTES_FREE 616 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 384 +HIGH_NUMBER_OF_BYTES_USED 1000 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 9 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 21072 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 7 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 14144 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 1 1 +user4 localhost 1 2 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 1 1 +user4 1 2 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 3 6 +disconnect con3; +connection default; +"================== con3 disconnected ==================" +"================== Step 12 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 8 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 200 +username user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 200 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 200 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 200 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 200 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 200 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 200 +USER user3 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 400 +SUM_NUMBER_OF_BYTES_FREE 208 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 400 +USER user4 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 6 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 14048 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 14048 +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 200 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 200 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 200 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 200 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 200 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 200 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 400 +SUM_NUMBER_OF_BYTES_FREE 208 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 400 +USER user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 6 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 14048 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 14048 +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 9 +SUM_NUMBER_OF_BYTES_ALLOC 1000 +SUM_NUMBER_OF_BYTES_FREE 808 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 1000 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 12 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 28096 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 4 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 7120 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 98304 +SUM_NUMBER_OF_BYTES_FREE 73728 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 24576 +HIGH_NUMBER_OF_BYTES_USED 24576 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 9 +SUM_NUMBER_OF_BYTES_ALLOC 1000 +SUM_NUMBER_OF_BYTES_FREE 808 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 192 +HIGH_NUMBER_OF_BYTES_USED 1000 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 12 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 28096 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 4 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 7120 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 1 2 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 1 2 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 2 6 +disconnect con4; +connection default; +"================== con4 disconnected ==================" +"================== Step 13 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 200 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 200 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 200 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 200 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 200 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 200 +USER user3 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 4 +SUM_NUMBER_OF_BYTES_ALLOC 400 +SUM_NUMBER_OF_BYTES_FREE 400 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 400 +USER user4 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 6 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 14048 +SUM_NUMBER_OF_BYTES_FREE 14048 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 14048 +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 200 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 200 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 200 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 200 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 200 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 200 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 4 +SUM_NUMBER_OF_BYTES_ALLOC 400 +SUM_NUMBER_OF_BYTES_FREE 400 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 400 +USER user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 6 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 14048 +SUM_NUMBER_OF_BYTES_FREE 14048 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 14048 +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 10 +SUM_NUMBER_OF_BYTES_ALLOC 1000 +SUM_NUMBER_OF_BYTES_FREE 1000 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 1000 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 15 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 35120 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 98304 +SUM_NUMBER_OF_BYTES_FREE 73728 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 24576 +HIGH_NUMBER_OF_BYTES_USED 24576 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 10 +SUM_NUMBER_OF_BYTES_ALLOC 1000 +SUM_NUMBER_OF_BYTES_FREE 1000 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 1000 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 15 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 35120 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 2 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 2 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 6 +connection default; +truncate performance_schema.memory_summary_by_thread_by_event_name; +"================== MEMORY_BY_THREAD truncated ==================" +"================== Step 14 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 200 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 200 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 200 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 200 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 200 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 200 +USER user3 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 4 +SUM_NUMBER_OF_BYTES_ALLOC 400 +SUM_NUMBER_OF_BYTES_FREE 400 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 400 +USER user4 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 6 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 14048 +SUM_NUMBER_OF_BYTES_FREE 14048 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 14048 +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 200 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 200 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 200 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 200 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 200 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 200 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 4 +SUM_NUMBER_OF_BYTES_ALLOC 400 +SUM_NUMBER_OF_BYTES_FREE 400 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 400 +USER user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 6 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 14048 +SUM_NUMBER_OF_BYTES_FREE 14048 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 14048 +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 10 +SUM_NUMBER_OF_BYTES_ALLOC 1000 +SUM_NUMBER_OF_BYTES_FREE 1000 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 1000 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 15 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 35120 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 98304 +SUM_NUMBER_OF_BYTES_FREE 73728 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 24576 +HIGH_NUMBER_OF_BYTES_USED 24576 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 10 +SUM_NUMBER_OF_BYTES_ALLOC 1000 +SUM_NUMBER_OF_BYTES_FREE 1000 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 1000 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 15 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 35120 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 2 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 2 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 6 +truncate performance_schema.memory_summary_by_account_by_event_name; +"================== MEMORY_BY_ACCOUNT truncated ==================" +"================== Step 15 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 200 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 200 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 200 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 200 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 200 +SUM_NUMBER_OF_BYTES_FREE 200 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 200 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 4 +SUM_NUMBER_OF_BYTES_ALLOC 400 +SUM_NUMBER_OF_BYTES_FREE 400 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 400 +USER user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 6 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 14048 +SUM_NUMBER_OF_BYTES_FREE 14048 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 14048 +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 10 +SUM_NUMBER_OF_BYTES_ALLOC 1000 +SUM_NUMBER_OF_BYTES_FREE 1000 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 1000 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 15 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 35120 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 98304 +SUM_NUMBER_OF_BYTES_FREE 73728 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 24576 +HIGH_NUMBER_OF_BYTES_USED 24576 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 10 +SUM_NUMBER_OF_BYTES_ALLOC 1000 +SUM_NUMBER_OF_BYTES_FREE 1000 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 1000 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 15 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 35120 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 2 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 2 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 6 +truncate performance_schema.memory_summary_by_user_by_event_name; +"================== MEMORY_BY_USER truncated ==================" +"================== Step 16 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 10 +SUM_NUMBER_OF_BYTES_ALLOC 1000 +SUM_NUMBER_OF_BYTES_FREE 1000 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 1000 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 15 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 35120 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 98304 +SUM_NUMBER_OF_BYTES_FREE 73728 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 24576 +HIGH_NUMBER_OF_BYTES_USED 24576 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 10 +SUM_NUMBER_OF_BYTES_ALLOC 1000 +SUM_NUMBER_OF_BYTES_FREE 1000 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 1000 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 15 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 35120 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 2 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 2 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 6 +truncate performance_schema.memory_summary_by_host_by_event_name; +"================== MEMORY_BY_HOST truncated ==================" +"================== Step 17 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 98304 +SUM_NUMBER_OF_BYTES_FREE 73728 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 24576 +HIGH_NUMBER_OF_BYTES_USED 24576 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 10 +SUM_NUMBER_OF_BYTES_ALLOC 1000 +SUM_NUMBER_OF_BYTES_FREE 1000 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 1000 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 15 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 35120 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 2 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 2 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 6 +truncate performance_schema.memory_summary_global_by_event_name; +"================== MEMORY_GLOBAL truncated ==================" +"================== Step 18 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 2 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 24576 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 2 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 24576 +CURRENT_NUMBER_OF_BYTES_USED 24576 +HIGH_NUMBER_OF_BYTES_USED 24576 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 2 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 2 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 6 +truncate performance_schema.accounts; +"================== ACCOUNTS truncated ==================" +"================== Step 19 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 2 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 24576 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 2 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 24576 +CURRENT_NUMBER_OF_BYTES_USED 24576 +HIGH_NUMBER_OF_BYTES_USED 24576 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 2 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 6 +truncate performance_schema.users; +"================== USERS truncated ==================" +"================== Step 20 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 2 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 24576 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 2 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 24576 +CURRENT_NUMBER_OF_BYTES_USED 24576 +HIGH_NUMBER_OF_BYTES_USED 24576 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 6 +truncate performance_schema.hosts; +"================== HOSTS truncated ==================" +"================== Step 21 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 2 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 24576 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 2 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 24576 +CURRENT_NUMBER_OF_BYTES_USED 24576 +HIGH_NUMBER_OF_BYTES_USED 24576 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 1 diff --git a/mysql-test/suite/perfschema/r/memory_aggregate_no_a.result b/mysql-test/suite/perfschema/r/memory_aggregate_no_a.result new file mode 100644 index 00000000..b5c8e1cd --- /dev/null +++ b/mysql-test/suite/perfschema/r/memory_aggregate_no_a.result @@ -0,0 +1,4014 @@ +show global status like "performance_schema_memory_classes_lost"; +Variable_name Value +Performance_schema_memory_classes_lost 0 +"================== Step 1 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 1 +connect con1, localhost, user1, , ; +"================== con1 connected ==================" +connection default; +"================== Step 2 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 2 2 +connection con1; +set GLOBAL query_cache_size=1000*1024; +select get_lock("marker_1", 10); +get_lock("marker_1", 10) +1 +select release_lock("marker_1"); +release_lock("marker_1") +1 +set @v1 = repeat("a", 1000); +set @v2 = repeat("b", 2000); +set @v3 = repeat("c", 4000); +"================== con1 marker ==================" +connection default; +"================== Step 3 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 4 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7120 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 4 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 7120 +HIGH_NUMBER_OF_BYTES_USED 7120 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 2 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 32768 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 4 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7120 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 4 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 7120 +HIGH_NUMBER_OF_BYTES_USED 7120 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 2 2 +connect con2, localhost, user2, , ; +"================== con2 connected ==================" +connection default; +"================== Step 4 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 4 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7120 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 4 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 7120 +HIGH_NUMBER_OF_BYTES_USED 7120 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 2 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 32768 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 4 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7120 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 4 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 7120 +HIGH_NUMBER_OF_BYTES_USED 7120 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +user2 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 3 3 +connection con2; +set GLOBAL query_cache_size=2000*1024; +select get_lock("marker_2", 10); +get_lock("marker_2", 10) +1 +select release_lock("marker_2"); +release_lock("marker_2") +1 +set @v1 = repeat("a", 1000); +set @v2 = repeat("b", 2000); +set @v3 = repeat("c", 4000); +"================== con2 marker ==================" +connection default; +"================== Step 5 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 32 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 512 +HIGH_NUMBER_OF_BYTES_USED 544 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 7 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 14144 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 7 +HIGH_COUNT_USED 7 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 14144 +HIGH_NUMBER_OF_BYTES_USED 14144 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 65536 +SUM_NUMBER_OF_BYTES_FREE 32768 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 32 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 512 +HIGH_NUMBER_OF_BYTES_USED 544 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 7 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 14144 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 7 +HIGH_COUNT_USED 7 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 14144 +HIGH_NUMBER_OF_BYTES_USED 14144 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +user2 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 3 3 +truncate table performance_schema.memory_summary_by_thread_by_event_name; +"================== MEMORY_BY_THREAD truncated ==================" +"================== Step 5b ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 32 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 512 +HIGH_NUMBER_OF_BYTES_USED 544 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 7 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 14144 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 7 +HIGH_COUNT_USED 7 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 14144 +HIGH_NUMBER_OF_BYTES_USED 14144 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 65536 +SUM_NUMBER_OF_BYTES_FREE 32768 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 32 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 512 +HIGH_NUMBER_OF_BYTES_USED 544 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 7 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 14144 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 7 +HIGH_COUNT_USED 7 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 14144 +HIGH_NUMBER_OF_BYTES_USED 14144 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +user2 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 3 3 +connect con3, localhost, user3, , ; +"================== con3 connected ==================" +connection default; +"================== Step 6 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +username user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 32 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 512 +HIGH_NUMBER_OF_BYTES_USED 544 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 7 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 14144 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 7 +HIGH_COUNT_USED 7 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 14144 +HIGH_NUMBER_OF_BYTES_USED 14144 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 65536 +SUM_NUMBER_OF_BYTES_FREE 32768 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 32 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 512 +HIGH_NUMBER_OF_BYTES_USED 544 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 7 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 14144 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 7 +HIGH_COUNT_USED 7 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 14144 +HIGH_NUMBER_OF_BYTES_USED 14144 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +user2 1 1 +user3 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 4 4 +connection con3; +set GLOBAL query_cache_size=500*1024; +select get_lock("marker_3", 10); +get_lock("marker_3", 10) +1 +select release_lock("marker_3"); +release_lock("marker_3") +1 +set @v1 = repeat("a", 1000); +set @v2 = repeat("b", 2000); +set @v3 = repeat("c", 4000); +"================== con3 marker ==================" +connection default; +"================== Step 7 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 6 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 816 +SUM_NUMBER_OF_BYTES_FREE 48 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 768 +HIGH_NUMBER_OF_BYTES_USED 784 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 10 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 21168 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 10 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 21168 +HIGH_NUMBER_OF_BYTES_USED 21168 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 6 +COUNT_FREE 4 +SUM_NUMBER_OF_BYTES_ALLOC 98304 +SUM_NUMBER_OF_BYTES_FREE 65536 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 6 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 816 +SUM_NUMBER_OF_BYTES_FREE 48 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 768 +HIGH_NUMBER_OF_BYTES_USED 784 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 10 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 21168 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 10 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 21168 +HIGH_NUMBER_OF_BYTES_USED 21168 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +user2 1 1 +user3 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 4 4 +connect con4, localhost, user4, , ; +connect con5, localhost, user4, , ; +"================== con4/con5 (both user4) connected ==================" +connection default; +"================== Step 8 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +username user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_account; +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 6 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 816 +SUM_NUMBER_OF_BYTES_FREE 48 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 768 +HIGH_NUMBER_OF_BYTES_USED 784 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 10 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 21168 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 10 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 21168 +HIGH_NUMBER_OF_BYTES_USED 21168 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 6 +COUNT_FREE 4 +SUM_NUMBER_OF_BYTES_ALLOC 98304 +SUM_NUMBER_OF_BYTES_FREE 65536 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 6 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 816 +SUM_NUMBER_OF_BYTES_FREE 48 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 768 +HIGH_NUMBER_OF_BYTES_USED 784 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 10 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 21168 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 10 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 21168 +HIGH_NUMBER_OF_BYTES_USED 21168 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +user2 1 1 +user3 1 1 +user4 2 2 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 6 6 +connection con4; +set GLOBAL query_cache_size=4000*1024; +select get_lock("marker_4", 10); +get_lock("marker_4", 10) +1 +select release_lock("marker_4"); +release_lock("marker_4") +1 +set @v1 = repeat("a", 1000); +set @v2 = repeat("b", 2000); +set @v3 = repeat("c", 4000); +connection con5; +select get_lock("marker_5", 10); +get_lock("marker_5", 10) +1 +select release_lock("marker_5"); +release_lock("marker_5") +1 +set @v1 = repeat("a", 1000); +set @v2 = repeat("b", 2000); +set @v3 = repeat("c", 4000); +"================== con4/con5 marker ==================" +connection default; +"================== Step 9 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_account; +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 32 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 512 +HIGH_NUMBER_OF_BYTES_USED 544 +USER user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 6 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 14048 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 6 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 14048 +HIGH_NUMBER_OF_BYTES_USED 14048 +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 5 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 80 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 5 +HIGH_COUNT_USED 8 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 1280 +HIGH_NUMBER_OF_BYTES_USED 1328 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 16 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 35216 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 5 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 80 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 5 +HIGH_COUNT_USED 8 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 1280 +HIGH_NUMBER_OF_BYTES_USED 1328 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 16 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 35216 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +user2 1 1 +user3 1 1 +user4 2 2 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 6 6 +disconnect con1; +disconnect con5; +connection default; +"================== con1/con5 disconnected ==================" +"================== Step 10 ==================" +call dump_thread(); +username user1 +status not found +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_account; +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 288 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 544 +USER user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 6 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 14048 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 14048 +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 7 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 592 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 8 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 768 +HIGH_NUMBER_OF_BYTES_USED 1328 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 14048 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 10 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 21168 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 7 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 592 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 8 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 768 +HIGH_NUMBER_OF_BYTES_USED 1328 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 14048 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 10 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 21168 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 1 1 +user3 1 1 +user4 1 2 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 4 6 +disconnect con2; +connection default; +"================== con2 disconnected ==================" +"================== Step 11 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_account; +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 288 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 544 +USER user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 6 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 14048 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 14048 +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 8 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 848 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 8 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 512 +HIGH_NUMBER_OF_BYTES_USED 1328 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 9 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 21072 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 7 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 14144 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 8 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 848 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 8 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 512 +HIGH_NUMBER_OF_BYTES_USED 1328 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 9 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 21072 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 7 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 14144 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 1 1 +user4 1 2 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 3 6 +disconnect con3; +connection default; +"================== con3 disconnected ==================" +"================== Step 12 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_account; +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 288 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 544 +USER user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 6 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 14048 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 14048 +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 9 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 1104 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 8 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 1328 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 12 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 28096 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 4 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 7120 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 9 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 1104 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 8 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 1328 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 12 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 28096 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 4 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 7120 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 1 2 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 2 6 +disconnect con4; +connection default; +"================== con4 disconnected ==================" +"================== Step 13 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 4 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 544 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 544 +USER user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 6 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 14048 +SUM_NUMBER_OF_BYTES_FREE 14048 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 14048 +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 10 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 1360 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 8 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 1328 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 15 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 35120 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 10 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 1360 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 8 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 1328 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 15 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 35120 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 2 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 6 +connection default; +truncate performance_schema.memory_summary_by_thread_by_event_name; +"================== MEMORY_BY_THREAD truncated ==================" +"================== Step 14 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 4 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 544 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 544 +USER user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 6 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 14048 +SUM_NUMBER_OF_BYTES_FREE 14048 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 14048 +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 10 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 1360 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 8 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 1328 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 15 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 35120 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 10 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 1360 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 8 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 1328 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 15 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 35120 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 2 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 6 +truncate performance_schema.memory_summary_by_account_by_event_name; +"================== MEMORY_BY_ACCOUNT truncated ==================" +"================== Step 15 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 4 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 544 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 544 +USER user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 6 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 14048 +SUM_NUMBER_OF_BYTES_FREE 14048 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 14048 +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 10 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 1360 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 8 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 1328 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 15 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 35120 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 10 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 1360 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 8 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 1328 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 15 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 35120 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 2 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 6 +truncate performance_schema.memory_summary_by_user_by_event_name; +"================== MEMORY_BY_USER truncated ==================" +"================== Step 16 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 10 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 1360 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 8 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 1328 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 15 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 35120 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 10 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 1360 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 8 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 1328 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 15 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 35120 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 2 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 6 +truncate performance_schema.memory_summary_by_host_by_event_name; +"================== MEMORY_BY_HOST truncated ==================" +"================== Step 17 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 10 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 1360 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 8 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 1328 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 15 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 35120 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 2 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 6 +truncate performance_schema.memory_summary_global_by_event_name; +"================== MEMORY_GLOBAL truncated ==================" +"================== Step 18 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 2 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 32768 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 2 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 32768 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 2 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 6 +truncate performance_schema.accounts; +"================== ACCOUNTS truncated ==================" +"================== Step 19 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 2 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 32768 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 2 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 32768 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 2 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 6 +truncate performance_schema.users; +"================== USERS truncated ==================" +"================== Step 20 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 2 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 32768 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 2 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 32768 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 6 +truncate performance_schema.hosts; +"================== HOSTS truncated ==================" +"================== Step 21 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 2 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 32768 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 2 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 32768 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 1 diff --git a/mysql-test/suite/perfschema/r/memory_aggregate_no_a_no_h.result b/mysql-test/suite/perfschema/r/memory_aggregate_no_a_no_h.result new file mode 100644 index 00000000..cc0e0c03 --- /dev/null +++ b/mysql-test/suite/perfschema/r/memory_aggregate_no_a_no_h.result @@ -0,0 +1,3464 @@ +show global status like "performance_schema_memory_classes_lost"; +Variable_name Value +Performance_schema_memory_classes_lost 0 +"================== Step 1 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connect con1, localhost, user1, , ; +"================== con1 connected ==================" +connection default; +"================== Step 2 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connection con1; +set GLOBAL query_cache_size=1000*1024; +select get_lock("marker_1", 10); +get_lock("marker_1", 10) +1 +select release_lock("marker_1"); +release_lock("marker_1") +1 +set @v1 = repeat("a", 1000); +set @v2 = repeat("b", 2000); +set @v3 = repeat("c", 4000); +"================== con1 marker ==================" +connection default; +"================== Step 3 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 2 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 32768 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 4 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7120 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 4 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 7120 +HIGH_NUMBER_OF_BYTES_USED 7120 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connect con2, localhost, user2, , ; +"================== con2 connected ==================" +connection default; +"================== Step 4 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 2 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 32768 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 4 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7120 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 4 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 7120 +HIGH_NUMBER_OF_BYTES_USED 7120 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +user2 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connection con2; +set GLOBAL query_cache_size=2000*1024; +select get_lock("marker_2", 10); +get_lock("marker_2", 10) +1 +select release_lock("marker_2"); +release_lock("marker_2") +1 +set @v1 = repeat("a", 1000); +set @v2 = repeat("b", 2000); +set @v3 = repeat("c", 4000); +"================== con2 marker ==================" +connection default; +"================== Step 5 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 65536 +SUM_NUMBER_OF_BYTES_FREE 32768 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 32 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 512 +HIGH_NUMBER_OF_BYTES_USED 544 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 7 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 14144 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 7 +HIGH_COUNT_USED 7 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 14144 +HIGH_NUMBER_OF_BYTES_USED 14144 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +user2 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate table performance_schema.memory_summary_by_thread_by_event_name; +"================== MEMORY_BY_THREAD truncated ==================" +"================== Step 5b ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 65536 +SUM_NUMBER_OF_BYTES_FREE 32768 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 32 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 512 +HIGH_NUMBER_OF_BYTES_USED 544 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 7 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 14144 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 7 +HIGH_COUNT_USED 7 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 14144 +HIGH_NUMBER_OF_BYTES_USED 14144 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +user2 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connect con3, localhost, user3, , ; +"================== con3 connected ==================" +connection default; +"================== Step 6 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +username user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 65536 +SUM_NUMBER_OF_BYTES_FREE 32768 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 32 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 512 +HIGH_NUMBER_OF_BYTES_USED 544 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 7 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 14144 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 7 +HIGH_COUNT_USED 7 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 14144 +HIGH_NUMBER_OF_BYTES_USED 14144 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +user2 1 1 +user3 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connection con3; +set GLOBAL query_cache_size=500*1024; +select get_lock("marker_3", 10); +get_lock("marker_3", 10) +1 +select release_lock("marker_3"); +release_lock("marker_3") +1 +set @v1 = repeat("a", 1000); +set @v2 = repeat("b", 2000); +set @v3 = repeat("c", 4000); +"================== con3 marker ==================" +connection default; +"================== Step 7 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 6 +COUNT_FREE 4 +SUM_NUMBER_OF_BYTES_ALLOC 98304 +SUM_NUMBER_OF_BYTES_FREE 65536 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 6 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 816 +SUM_NUMBER_OF_BYTES_FREE 48 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 768 +HIGH_NUMBER_OF_BYTES_USED 784 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 10 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 21168 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 10 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 21168 +HIGH_NUMBER_OF_BYTES_USED 21168 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +user2 1 1 +user3 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connect con4, localhost, user4, , ; +connect con5, localhost, user4, , ; +"================== con4/con5 (both user4) connected ==================" +connection default; +"================== Step 8 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +username user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_account; +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 6 +COUNT_FREE 4 +SUM_NUMBER_OF_BYTES_ALLOC 98304 +SUM_NUMBER_OF_BYTES_FREE 65536 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 6 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 816 +SUM_NUMBER_OF_BYTES_FREE 48 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 768 +HIGH_NUMBER_OF_BYTES_USED 784 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 10 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 21168 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 10 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 21168 +HIGH_NUMBER_OF_BYTES_USED 21168 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +user2 1 1 +user3 1 1 +user4 2 2 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connection con4; +set GLOBAL query_cache_size=4000*1024; +select get_lock("marker_4", 10); +get_lock("marker_4", 10) +1 +select release_lock("marker_4"); +release_lock("marker_4") +1 +set @v1 = repeat("a", 1000); +set @v2 = repeat("b", 2000); +set @v3 = repeat("c", 4000); +connection con5; +select get_lock("marker_5", 10); +get_lock("marker_5", 10) +1 +select release_lock("marker_5"); +release_lock("marker_5") +1 +set @v1 = repeat("a", 1000); +set @v2 = repeat("b", 2000); +set @v3 = repeat("c", 4000); +"================== con4/con5 marker ==================" +connection default; +"================== Step 9 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_account; +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 32 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 512 +HIGH_NUMBER_OF_BYTES_USED 544 +USER user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 6 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 14048 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 6 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 14048 +HIGH_NUMBER_OF_BYTES_USED 14048 +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 5 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 80 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 5 +HIGH_COUNT_USED 8 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 1280 +HIGH_NUMBER_OF_BYTES_USED 1328 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 16 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 35216 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +user2 1 1 +user3 1 1 +user4 2 2 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +disconnect con1; +disconnect con5; +connection default; +"================== con1/con5 disconnected ==================" +"================== Step 10 ==================" +call dump_thread(); +username user1 +status not found +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_account; +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 288 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 544 +USER user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 6 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 14048 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 14048 +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 7 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 592 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 8 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 768 +HIGH_NUMBER_OF_BYTES_USED 1328 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 14048 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 10 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 21168 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 1 1 +user3 1 1 +user4 1 2 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +disconnect con2; +connection default; +"================== con2 disconnected ==================" +"================== Step 11 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_account; +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 288 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 544 +USER user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 6 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 14048 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 14048 +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 8 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 848 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 8 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 512 +HIGH_NUMBER_OF_BYTES_USED 1328 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 9 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 21072 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 7 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 14144 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 1 1 +user4 1 2 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +disconnect con3; +connection default; +"================== con3 disconnected ==================" +"================== Step 12 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_account; +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 288 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 544 +USER user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 6 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 14048 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 14048 +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 9 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 1104 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 8 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 1328 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 12 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 28096 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 4 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 7120 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 1 2 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +disconnect con4; +connection default; +"================== con4 disconnected ==================" +"================== Step 13 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 4 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 544 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 544 +USER user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 6 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 14048 +SUM_NUMBER_OF_BYTES_FREE 14048 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 14048 +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 10 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 1360 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 8 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 1328 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 15 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 35120 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 2 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connection default; +truncate performance_schema.memory_summary_by_thread_by_event_name; +"================== MEMORY_BY_THREAD truncated ==================" +"================== Step 14 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 4 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 544 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 544 +USER user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 6 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 14048 +SUM_NUMBER_OF_BYTES_FREE 14048 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 14048 +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 10 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 1360 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 8 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 1328 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 15 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 35120 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 2 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.memory_summary_by_account_by_event_name; +"================== MEMORY_BY_ACCOUNT truncated ==================" +"================== Step 15 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 4 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 544 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 544 +USER user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 6 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 14048 +SUM_NUMBER_OF_BYTES_FREE 14048 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 14048 +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 10 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 1360 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 8 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 1328 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 15 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 35120 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 2 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.memory_summary_by_user_by_event_name; +"================== MEMORY_BY_USER truncated ==================" +"================== Step 16 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 10 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 1360 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 8 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 1328 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 15 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 35120 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 2 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.memory_summary_by_host_by_event_name; +"================== MEMORY_BY_HOST truncated ==================" +"================== Step 17 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 10 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 1360 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 8 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 1328 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 15 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 35120 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 2 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.memory_summary_global_by_event_name; +"================== MEMORY_GLOBAL truncated ==================" +"================== Step 18 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 2 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 32768 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 2 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 32768 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 2 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.accounts; +"================== ACCOUNTS truncated ==================" +"================== Step 19 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 2 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 32768 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 2 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 32768 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 2 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.users; +"================== USERS truncated ==================" +"================== Step 20 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 2 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 32768 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 2 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 32768 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.hosts; +"================== HOSTS truncated ==================" +"================== Step 21 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 2 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 32768 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 2 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 32768 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS diff --git a/mysql-test/suite/perfschema/r/memory_aggregate_no_a_no_u.result b/mysql-test/suite/perfschema/r/memory_aggregate_no_a_no_u.result new file mode 100644 index 00000000..8b24b5b5 --- /dev/null +++ b/mysql-test/suite/perfschema/r/memory_aggregate_no_a_no_u.result @@ -0,0 +1,2442 @@ +show global status like "performance_schema_memory_classes_lost"; +Variable_name Value +Performance_schema_memory_classes_lost 0 +"================== Step 1 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 1 +connect con1, localhost, user1, , ; +"================== con1 connected ==================" +connection default; +"================== Step 2 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 2 2 +connection con1; +set GLOBAL query_cache_size=1000*1024; +select get_lock("marker_1", 10); +get_lock("marker_1", 10) +1 +select release_lock("marker_1"); +release_lock("marker_1") +1 +set @v1 = repeat("a", 1000); +set @v2 = repeat("b", 2000); +set @v3 = repeat("c", 4000); +"================== con1 marker ==================" +connection default; +"================== Step 3 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 4 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7120 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 4 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 7120 +HIGH_NUMBER_OF_BYTES_USED 7120 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 2 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 32768 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 4 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7120 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 4 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 7120 +HIGH_NUMBER_OF_BYTES_USED 7120 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 2 2 +connect con2, localhost, user2, , ; +"================== con2 connected ==================" +connection default; +"================== Step 4 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 4 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7120 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 4 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 7120 +HIGH_NUMBER_OF_BYTES_USED 7120 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 2 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 32768 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 4 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7120 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 4 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 7120 +HIGH_NUMBER_OF_BYTES_USED 7120 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 3 3 +connection con2; +set GLOBAL query_cache_size=2000*1024; +select get_lock("marker_2", 10); +get_lock("marker_2", 10) +1 +select release_lock("marker_2"); +release_lock("marker_2") +1 +set @v1 = repeat("a", 1000); +set @v2 = repeat("b", 2000); +set @v3 = repeat("c", 4000); +"================== con2 marker ==================" +connection default; +"================== Step 5 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 32 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 512 +HIGH_NUMBER_OF_BYTES_USED 544 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 7 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 14144 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 7 +HIGH_COUNT_USED 7 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 14144 +HIGH_NUMBER_OF_BYTES_USED 14144 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 65536 +SUM_NUMBER_OF_BYTES_FREE 32768 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 32 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 512 +HIGH_NUMBER_OF_BYTES_USED 544 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 7 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 14144 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 7 +HIGH_COUNT_USED 7 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 14144 +HIGH_NUMBER_OF_BYTES_USED 14144 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 3 3 +truncate table performance_schema.memory_summary_by_thread_by_event_name; +"================== MEMORY_BY_THREAD truncated ==================" +"================== Step 5b ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 32 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 512 +HIGH_NUMBER_OF_BYTES_USED 544 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 7 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 14144 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 7 +HIGH_COUNT_USED 7 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 14144 +HIGH_NUMBER_OF_BYTES_USED 14144 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 65536 +SUM_NUMBER_OF_BYTES_FREE 32768 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 32 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 512 +HIGH_NUMBER_OF_BYTES_USED 544 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 7 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 14144 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 7 +HIGH_COUNT_USED 7 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 14144 +HIGH_NUMBER_OF_BYTES_USED 14144 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 3 3 +connect con3, localhost, user3, , ; +"================== con3 connected ==================" +connection default; +"================== Step 6 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +username user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 32 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 512 +HIGH_NUMBER_OF_BYTES_USED 544 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 7 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 14144 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 7 +HIGH_COUNT_USED 7 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 14144 +HIGH_NUMBER_OF_BYTES_USED 14144 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 65536 +SUM_NUMBER_OF_BYTES_FREE 32768 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 32 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 512 +HIGH_NUMBER_OF_BYTES_USED 544 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 7 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 14144 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 7 +HIGH_COUNT_USED 7 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 14144 +HIGH_NUMBER_OF_BYTES_USED 14144 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 4 4 +connection con3; +set GLOBAL query_cache_size=500*1024; +select get_lock("marker_3", 10); +get_lock("marker_3", 10) +1 +select release_lock("marker_3"); +release_lock("marker_3") +1 +set @v1 = repeat("a", 1000); +set @v2 = repeat("b", 2000); +set @v3 = repeat("c", 4000); +"================== con3 marker ==================" +connection default; +"================== Step 7 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 6 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 816 +SUM_NUMBER_OF_BYTES_FREE 48 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 768 +HIGH_NUMBER_OF_BYTES_USED 784 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 10 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 21168 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 10 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 21168 +HIGH_NUMBER_OF_BYTES_USED 21168 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 6 +COUNT_FREE 4 +SUM_NUMBER_OF_BYTES_ALLOC 98304 +SUM_NUMBER_OF_BYTES_FREE 65536 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 6 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 816 +SUM_NUMBER_OF_BYTES_FREE 48 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 768 +HIGH_NUMBER_OF_BYTES_USED 784 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 10 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 21168 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 10 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 21168 +HIGH_NUMBER_OF_BYTES_USED 21168 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 4 4 +connect con4, localhost, user4, , ; +connect con5, localhost, user4, , ; +"================== con4/con5 (both user4) connected ==================" +connection default; +"================== Step 8 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +username user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_account; +execute dump_memory_user; +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 6 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 816 +SUM_NUMBER_OF_BYTES_FREE 48 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 768 +HIGH_NUMBER_OF_BYTES_USED 784 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 10 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 21168 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 10 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 21168 +HIGH_NUMBER_OF_BYTES_USED 21168 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 6 +COUNT_FREE 4 +SUM_NUMBER_OF_BYTES_ALLOC 98304 +SUM_NUMBER_OF_BYTES_FREE 65536 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 6 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 816 +SUM_NUMBER_OF_BYTES_FREE 48 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 768 +HIGH_NUMBER_OF_BYTES_USED 784 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 10 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 21168 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 10 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 21168 +HIGH_NUMBER_OF_BYTES_USED 21168 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 6 6 +connection con4; +set GLOBAL query_cache_size=4000*1024; +select get_lock("marker_4", 10); +get_lock("marker_4", 10) +1 +select release_lock("marker_4"); +release_lock("marker_4") +1 +set @v1 = repeat("a", 1000); +set @v2 = repeat("b", 2000); +set @v3 = repeat("c", 4000); +connection con5; +select get_lock("marker_5", 10); +get_lock("marker_5", 10) +1 +select release_lock("marker_5"); +release_lock("marker_5") +1 +set @v1 = repeat("a", 1000); +set @v2 = repeat("b", 2000); +set @v3 = repeat("c", 4000); +"================== con4/con5 marker ==================" +connection default; +"================== Step 9 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_account; +execute dump_memory_user; +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 5 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 80 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 5 +HIGH_COUNT_USED 8 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 1280 +HIGH_NUMBER_OF_BYTES_USED 1328 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 16 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 35216 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 5 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 80 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 5 +HIGH_COUNT_USED 8 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 1280 +HIGH_NUMBER_OF_BYTES_USED 1328 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 16 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 35216 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 6 6 +disconnect con1; +disconnect con5; +connection default; +"================== con1/con5 disconnected ==================" +"================== Step 10 ==================" +call dump_thread(); +username user1 +status not found +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_account; +execute dump_memory_user; +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 7 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 592 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 8 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 768 +HIGH_NUMBER_OF_BYTES_USED 1328 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 14048 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 10 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 21168 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 7 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 592 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 8 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 768 +HIGH_NUMBER_OF_BYTES_USED 1328 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 14048 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 10 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 21168 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 4 6 +disconnect con2; +connection default; +"================== con2 disconnected ==================" +"================== Step 11 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_account; +execute dump_memory_user; +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 8 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 848 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 8 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 512 +HIGH_NUMBER_OF_BYTES_USED 1328 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 9 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 21072 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 7 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 14144 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 8 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 848 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 8 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 512 +HIGH_NUMBER_OF_BYTES_USED 1328 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 9 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 21072 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 7 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 14144 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 3 6 +disconnect con3; +connection default; +"================== con3 disconnected ==================" +"================== Step 12 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_account; +execute dump_memory_user; +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 9 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 1104 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 8 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 1328 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 12 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 28096 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 4 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 7120 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 9 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 1104 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 8 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 1328 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 12 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 28096 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 4 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 7120 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 2 6 +disconnect con4; +connection default; +"================== con4 disconnected ==================" +"================== Step 13 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 10 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 1360 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 8 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 1328 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 15 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 35120 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 10 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 1360 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 8 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 1328 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 15 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 35120 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 6 +connection default; +truncate performance_schema.memory_summary_by_thread_by_event_name; +"================== MEMORY_BY_THREAD truncated ==================" +"================== Step 14 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 10 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 1360 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 8 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 1328 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 15 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 35120 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 10 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 1360 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 8 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 1328 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 15 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 35120 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 6 +truncate performance_schema.memory_summary_by_account_by_event_name; +"================== MEMORY_BY_ACCOUNT truncated ==================" +"================== Step 15 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 10 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 1360 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 8 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 1328 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 15 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 35120 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 10 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 1360 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 8 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 1328 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 15 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 35120 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 6 +truncate performance_schema.memory_summary_by_user_by_event_name; +"================== MEMORY_BY_USER truncated ==================" +"================== Step 16 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 10 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 1360 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 8 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 1328 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 15 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 35120 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 10 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 1360 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 8 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 1328 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 15 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 35120 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 6 +truncate performance_schema.memory_summary_by_host_by_event_name; +"================== MEMORY_BY_HOST truncated ==================" +"================== Step 17 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 10 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 1360 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 8 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 1328 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 15 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 35120 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 6 +truncate performance_schema.memory_summary_global_by_event_name; +"================== MEMORY_GLOBAL truncated ==================" +"================== Step 18 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 2 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 32768 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 2 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 32768 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 6 +truncate performance_schema.accounts; +"================== ACCOUNTS truncated ==================" +"================== Step 19 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 2 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 32768 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 2 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 32768 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 6 +truncate performance_schema.users; +"================== USERS truncated ==================" +"================== Step 20 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 2 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 32768 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 2 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 32768 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 6 +truncate performance_schema.hosts; +"================== HOSTS truncated ==================" +"================== Step 21 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 2 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 32768 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 2 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 32768 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 1 diff --git a/mysql-test/suite/perfschema/r/memory_aggregate_no_a_no_u_no_h.result b/mysql-test/suite/perfschema/r/memory_aggregate_no_a_no_u_no_h.result new file mode 100644 index 00000000..45cbaf88 --- /dev/null +++ b/mysql-test/suite/perfschema/r/memory_aggregate_no_a_no_u_no_h.result @@ -0,0 +1,1892 @@ +show global status like "performance_schema_memory_classes_lost"; +Variable_name Value +Performance_schema_memory_classes_lost 0 +"================== Step 1 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connect con1, localhost, user1, , ; +"================== con1 connected ==================" +connection default; +"================== Step 2 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connection con1; +set GLOBAL query_cache_size=1000*1024; +select get_lock("marker_1", 10); +get_lock("marker_1", 10) +1 +select release_lock("marker_1"); +release_lock("marker_1") +1 +set @v1 = repeat("a", 1000); +set @v2 = repeat("b", 2000); +set @v3 = repeat("c", 4000); +"================== con1 marker ==================" +connection default; +"================== Step 3 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 2 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 32768 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 4 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7120 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 4 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 7120 +HIGH_NUMBER_OF_BYTES_USED 7120 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connect con2, localhost, user2, , ; +"================== con2 connected ==================" +connection default; +"================== Step 4 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 2 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 32768 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 4 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7120 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 4 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 7120 +HIGH_NUMBER_OF_BYTES_USED 7120 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connection con2; +set GLOBAL query_cache_size=2000*1024; +select get_lock("marker_2", 10); +get_lock("marker_2", 10) +1 +select release_lock("marker_2"); +release_lock("marker_2") +1 +set @v1 = repeat("a", 1000); +set @v2 = repeat("b", 2000); +set @v3 = repeat("c", 4000); +"================== con2 marker ==================" +connection default; +"================== Step 5 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 65536 +SUM_NUMBER_OF_BYTES_FREE 32768 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 32 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 512 +HIGH_NUMBER_OF_BYTES_USED 544 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 7 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 14144 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 7 +HIGH_COUNT_USED 7 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 14144 +HIGH_NUMBER_OF_BYTES_USED 14144 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate table performance_schema.memory_summary_by_thread_by_event_name; +"================== MEMORY_BY_THREAD truncated ==================" +"================== Step 5b ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 65536 +SUM_NUMBER_OF_BYTES_FREE 32768 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 32 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 512 +HIGH_NUMBER_OF_BYTES_USED 544 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 7 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 14144 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 7 +HIGH_COUNT_USED 7 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 14144 +HIGH_NUMBER_OF_BYTES_USED 14144 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connect con3, localhost, user3, , ; +"================== con3 connected ==================" +connection default; +"================== Step 6 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +username user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 65536 +SUM_NUMBER_OF_BYTES_FREE 32768 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 32 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 512 +HIGH_NUMBER_OF_BYTES_USED 544 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 7 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 14144 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 7 +HIGH_COUNT_USED 7 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 14144 +HIGH_NUMBER_OF_BYTES_USED 14144 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connection con3; +set GLOBAL query_cache_size=500*1024; +select get_lock("marker_3", 10); +get_lock("marker_3", 10) +1 +select release_lock("marker_3"); +release_lock("marker_3") +1 +set @v1 = repeat("a", 1000); +set @v2 = repeat("b", 2000); +set @v3 = repeat("c", 4000); +"================== con3 marker ==================" +connection default; +"================== Step 7 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 6 +COUNT_FREE 4 +SUM_NUMBER_OF_BYTES_ALLOC 98304 +SUM_NUMBER_OF_BYTES_FREE 65536 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 6 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 816 +SUM_NUMBER_OF_BYTES_FREE 48 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 768 +HIGH_NUMBER_OF_BYTES_USED 784 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 10 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 21168 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 10 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 21168 +HIGH_NUMBER_OF_BYTES_USED 21168 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connect con4, localhost, user4, , ; +connect con5, localhost, user4, , ; +"================== con4/con5 (both user4) connected ==================" +connection default; +"================== Step 8 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +username user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_account; +execute dump_memory_user; +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 6 +COUNT_FREE 4 +SUM_NUMBER_OF_BYTES_ALLOC 98304 +SUM_NUMBER_OF_BYTES_FREE 65536 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 6 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 816 +SUM_NUMBER_OF_BYTES_FREE 48 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 768 +HIGH_NUMBER_OF_BYTES_USED 784 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 10 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 21168 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 10 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 21168 +HIGH_NUMBER_OF_BYTES_USED 21168 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connection con4; +set GLOBAL query_cache_size=4000*1024; +select get_lock("marker_4", 10); +get_lock("marker_4", 10) +1 +select release_lock("marker_4"); +release_lock("marker_4") +1 +set @v1 = repeat("a", 1000); +set @v2 = repeat("b", 2000); +set @v3 = repeat("c", 4000); +connection con5; +select get_lock("marker_5", 10); +get_lock("marker_5", 10) +1 +select release_lock("marker_5"); +release_lock("marker_5") +1 +set @v1 = repeat("a", 1000); +set @v2 = repeat("b", 2000); +set @v3 = repeat("c", 4000); +"================== con4/con5 marker ==================" +connection default; +"================== Step 9 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_account; +execute dump_memory_user; +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 5 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 80 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 5 +HIGH_COUNT_USED 8 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 1280 +HIGH_NUMBER_OF_BYTES_USED 1328 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 16 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 35216 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +disconnect con1; +disconnect con5; +connection default; +"================== con1/con5 disconnected ==================" +"================== Step 10 ==================" +call dump_thread(); +username user1 +status not found +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_account; +execute dump_memory_user; +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 7 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 592 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 8 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 768 +HIGH_NUMBER_OF_BYTES_USED 1328 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 14048 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 10 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 21168 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +disconnect con2; +connection default; +"================== con2 disconnected ==================" +"================== Step 11 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_account; +execute dump_memory_user; +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 8 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 848 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 8 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 512 +HIGH_NUMBER_OF_BYTES_USED 1328 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 9 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 21072 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 7 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 14144 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +disconnect con3; +connection default; +"================== con3 disconnected ==================" +"================== Step 12 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_account; +execute dump_memory_user; +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 9 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 1104 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 8 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 1328 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 12 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 28096 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 4 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 7120 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +disconnect con4; +connection default; +"================== con4 disconnected ==================" +"================== Step 13 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 10 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 1360 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 8 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 1328 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 15 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 35120 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connection default; +truncate performance_schema.memory_summary_by_thread_by_event_name; +"================== MEMORY_BY_THREAD truncated ==================" +"================== Step 14 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 10 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 1360 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 8 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 1328 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 15 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 35120 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.memory_summary_by_account_by_event_name; +"================== MEMORY_BY_ACCOUNT truncated ==================" +"================== Step 15 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 10 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 1360 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 8 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 1328 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 15 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 35120 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.memory_summary_by_user_by_event_name; +"================== MEMORY_BY_USER truncated ==================" +"================== Step 16 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 10 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 1360 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 8 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 1328 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 15 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 35120 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.memory_summary_by_host_by_event_name; +"================== MEMORY_BY_HOST truncated ==================" +"================== Step 17 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 10 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 1360 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 8 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 1328 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 15 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 35120 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.memory_summary_global_by_event_name; +"================== MEMORY_GLOBAL truncated ==================" +"================== Step 18 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 2 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 32768 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 2 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 32768 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.accounts; +"================== ACCOUNTS truncated ==================" +"================== Step 19 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 2 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 32768 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 2 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 32768 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.users; +"================== USERS truncated ==================" +"================== Step 20 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 2 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 32768 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 2 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 32768 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.hosts; +"================== HOSTS truncated ==================" +"================== Step 21 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 2 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 32768 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 2 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 32768 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS diff --git a/mysql-test/suite/perfschema/r/memory_aggregate_no_h.result b/mysql-test/suite/perfschema/r/memory_aggregate_no_h.result new file mode 100644 index 00000000..35d528bf --- /dev/null +++ b/mysql-test/suite/perfschema/r/memory_aggregate_no_h.result @@ -0,0 +1,5052 @@ +show global status like "performance_schema_memory_classes_lost"; +Variable_name Value +Performance_schema_memory_classes_lost 0 +"================== Step 1 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connect con1, localhost, user1, , ; +"================== con1 connected ==================" +connection default; +"================== Step 2 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connection con1; +set GLOBAL query_cache_size=1000*1024; +select get_lock("marker_1", 10); +get_lock("marker_1", 10) +1 +select release_lock("marker_1"); +release_lock("marker_1") +1 +set @v1 = repeat("a", 1000); +set @v2 = repeat("b", 2000); +set @v3 = repeat("c", 4000); +"================== con1 marker ==================" +connection default; +"================== Step 3 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 2 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 32768 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 4 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7120 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 4 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 7120 +HIGH_NUMBER_OF_BYTES_USED 7120 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connect con2, localhost, user2, , ; +"================== con2 connected ==================" +connection default; +"================== Step 4 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 2 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 32768 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 4 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7120 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 4 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 7120 +HIGH_NUMBER_OF_BYTES_USED 7120 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +user2 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +user2 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connection con2; +set GLOBAL query_cache_size=2000*1024; +select get_lock("marker_2", 10); +get_lock("marker_2", 10) +1 +select release_lock("marker_2"); +release_lock("marker_2") +1 +set @v1 = repeat("a", 1000); +set @v2 = repeat("b", 2000); +set @v3 = repeat("c", 4000); +"================== con2 marker ==================" +connection default; +"================== Step 5 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 65536 +SUM_NUMBER_OF_BYTES_FREE 32768 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 32 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 512 +HIGH_NUMBER_OF_BYTES_USED 544 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 7 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 14144 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 7 +HIGH_COUNT_USED 7 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 14144 +HIGH_NUMBER_OF_BYTES_USED 14144 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +user2 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +user2 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate table performance_schema.memory_summary_by_thread_by_event_name; +"================== MEMORY_BY_THREAD truncated ==================" +"================== Step 5b ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 65536 +SUM_NUMBER_OF_BYTES_FREE 32768 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 32 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 512 +HIGH_NUMBER_OF_BYTES_USED 544 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 7 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 14144 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 7 +HIGH_COUNT_USED 7 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 14144 +HIGH_NUMBER_OF_BYTES_USED 14144 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +user2 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +user2 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connect con3, localhost, user3, , ; +"================== con3 connected ==================" +connection default; +"================== Step 6 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +username user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +username user4 +status not found +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 65536 +SUM_NUMBER_OF_BYTES_FREE 32768 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 32 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 512 +HIGH_NUMBER_OF_BYTES_USED 544 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 7 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 14144 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 7 +HIGH_COUNT_USED 7 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 14144 +HIGH_NUMBER_OF_BYTES_USED 14144 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +user2 localhost 1 1 +user3 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +user2 1 1 +user3 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connection con3; +set GLOBAL query_cache_size=500*1024; +select get_lock("marker_3", 10); +get_lock("marker_3", 10) +1 +select release_lock("marker_3"); +release_lock("marker_3") +1 +set @v1 = repeat("a", 1000); +set @v2 = repeat("b", 2000); +set @v3 = repeat("c", 4000); +"================== con3 marker ==================" +connection default; +"================== Step 7 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user4 +status not found +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user3 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 6 +COUNT_FREE 4 +SUM_NUMBER_OF_BYTES_ALLOC 98304 +SUM_NUMBER_OF_BYTES_FREE 65536 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 6 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 816 +SUM_NUMBER_OF_BYTES_FREE 48 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 768 +HIGH_NUMBER_OF_BYTES_USED 816 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 10 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 21168 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 10 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 21168 +HIGH_NUMBER_OF_BYTES_USED 21168 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +user2 localhost 1 1 +user3 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +user2 1 1 +user3 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connect con4, localhost, user4, , ; +connect con5, localhost, user4, , ; +"================== con4/con5 (both user4) connected ==================" +connection default; +"================== Step 8 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +username user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user3 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 6 +COUNT_FREE 4 +SUM_NUMBER_OF_BYTES_ALLOC 98304 +SUM_NUMBER_OF_BYTES_FREE 65536 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 6 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 816 +SUM_NUMBER_OF_BYTES_FREE 48 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 768 +HIGH_NUMBER_OF_BYTES_USED 816 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 10 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 21168 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 10 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 21168 +HIGH_NUMBER_OF_BYTES_USED 21168 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +user2 localhost 1 1 +user3 localhost 1 1 +user4 localhost 2 2 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +user2 1 1 +user3 1 1 +user4 2 2 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connection con4; +set GLOBAL query_cache_size=4000*1024; +select get_lock("marker_4", 10); +get_lock("marker_4", 10) +1 +select release_lock("marker_4"); +release_lock("marker_4") +1 +set @v1 = repeat("a", 1000); +set @v2 = repeat("b", 2000); +set @v3 = repeat("c", 4000); +connection con5; +select get_lock("marker_5", 10); +get_lock("marker_5", 10) +1 +select release_lock("marker_5"); +release_lock("marker_5") +1 +set @v1 = repeat("a", 1000); +set @v2 = repeat("b", 2000); +set @v3 = repeat("c", 4000); +"================== con4/con5 marker ==================" +connection default; +"================== Step 9 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user3 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 32 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 512 +HIGH_NUMBER_OF_BYTES_USED 544 +USER user4 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 6 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 14048 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 6 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 14048 +HIGH_NUMBER_OF_BYTES_USED 14048 +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 32 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 512 +HIGH_NUMBER_OF_BYTES_USED 544 +USER user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 6 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 14048 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 6 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 14048 +HIGH_NUMBER_OF_BYTES_USED 14048 +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 5 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 80 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 5 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 1280 +HIGH_NUMBER_OF_BYTES_USED 1360 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 16 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 35216 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +user2 localhost 1 1 +user3 localhost 1 1 +user4 localhost 2 2 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 1 1 +user2 1 1 +user3 1 1 +user4 2 2 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +disconnect con1; +disconnect con5; +connection default; +"================== con1/con5 disconnected ==================" +"================== Step 10 ==================" +call dump_thread(); +username user1 +status not found +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user3 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 288 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 544 +USER user4 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 6 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 14048 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 14048 +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 288 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 544 +USER user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 6 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 14048 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 14048 +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 7 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 592 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 768 +HIGH_NUMBER_OF_BYTES_USED 1360 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 14048 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 10 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 21168 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 1 1 +user3 localhost 1 1 +user4 localhost 1 2 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 1 1 +user3 1 1 +user4 1 2 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +disconnect con2; +connection default; +"================== con2 disconnected ==================" +"================== Step 11 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user3 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 288 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 544 +USER user4 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 6 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 14048 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 14048 +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 288 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 544 +USER user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 6 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 14048 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 14048 +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 8 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 848 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 512 +HIGH_NUMBER_OF_BYTES_USED 1360 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 9 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 21072 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 7 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 14144 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 1 1 +user4 localhost 1 2 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 1 1 +user4 1 2 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +disconnect con3; +connection default; +"================== con3 disconnected ==================" +"================== Step 12 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user3 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 288 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 544 +USER user4 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 6 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 14048 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 14048 +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 288 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 544 +USER user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 6 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 14048 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 14048 +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 9 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 1104 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 1360 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 12 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 28096 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 4 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 7120 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 1 2 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 1 2 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +disconnect con4; +connection default; +"================== con4 disconnected ==================" +"================== Step 13 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user3 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 4 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 544 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 544 +USER user4 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 6 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 14048 +SUM_NUMBER_OF_BYTES_FREE 14048 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 14048 +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 4 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 544 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 544 +USER user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 6 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 14048 +SUM_NUMBER_OF_BYTES_FREE 14048 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 14048 +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 10 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 1360 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 1360 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 15 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 35120 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 2 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 2 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connection default; +truncate performance_schema.memory_summary_by_thread_by_event_name; +"================== MEMORY_BY_THREAD truncated ==================" +"================== Step 14 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user3 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 4 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 544 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 544 +USER user4 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 6 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 14048 +SUM_NUMBER_OF_BYTES_FREE 14048 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 14048 +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 4 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 544 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 544 +USER user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 6 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 14048 +SUM_NUMBER_OF_BYTES_FREE 14048 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 14048 +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 10 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 1360 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 1360 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 15 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 35120 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 2 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 2 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.memory_summary_by_account_by_event_name; +"================== MEMORY_BY_ACCOUNT truncated ==================" +"================== Step 15 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 4 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 544 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 544 +USER user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 6 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 14048 +SUM_NUMBER_OF_BYTES_FREE 14048 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 14048 +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 10 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 1360 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 1360 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 15 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 35120 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 2 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 2 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.memory_summary_by_user_by_event_name; +"================== MEMORY_BY_USER truncated ==================" +"================== Step 16 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 10 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 1360 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 1360 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 15 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 35120 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 2 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 2 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.memory_summary_by_host_by_event_name; +"================== MEMORY_BY_HOST truncated ==================" +"================== Step 17 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 10 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 1360 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 1360 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 15 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 35120 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 2 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 2 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.memory_summary_global_by_event_name; +"================== MEMORY_GLOBAL truncated ==================" +"================== Step 18 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 2 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 32768 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 2 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 32768 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 2 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 2 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.accounts; +"================== ACCOUNTS truncated ==================" +"================== Step 19 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +USER user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 2 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 32768 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 2 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 32768 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +user1 0 1 +user2 0 1 +user3 0 1 +user4 0 2 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.users; +"================== USERS truncated ==================" +"================== Step 20 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 2 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 32768 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 2 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 32768 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.hosts; +"================== HOSTS truncated ==================" +"================== Step 21 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 2 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 32768 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 2 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 32768 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root 1 1 +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS diff --git a/mysql-test/suite/perfschema/r/memory_aggregate_no_u.result b/mysql-test/suite/perfschema/r/memory_aggregate_no_u.result new file mode 100644 index 00000000..1f800ce4 --- /dev/null +++ b/mysql-test/suite/perfschema/r/memory_aggregate_no_u.result @@ -0,0 +1,4030 @@ +show global status like "performance_schema_memory_classes_lost"; +Variable_name Value +Performance_schema_memory_classes_lost 0 +"================== Step 1 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 1 +connect con1, localhost, user1, , ; +"================== con1 connected ==================" +connection default; +"================== Step 2 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_user; +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 2 2 +connection con1; +set GLOBAL query_cache_size=1000*1024; +select get_lock("marker_1", 10); +get_lock("marker_1", 10) +1 +select release_lock("marker_1"); +release_lock("marker_1") +1 +set @v1 = repeat("a", 1000); +set @v2 = repeat("b", 2000); +set @v3 = repeat("c", 4000); +"================== con1 marker ==================" +connection default; +"================== Step 3 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_user; +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 4 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7120 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 4 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 7120 +HIGH_NUMBER_OF_BYTES_USED 7120 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 2 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 32768 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 4 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7120 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 4 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 7120 +HIGH_NUMBER_OF_BYTES_USED 7120 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 2 2 +connect con2, localhost, user2, , ; +"================== con2 connected ==================" +connection default; +"================== Step 4 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_user; +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 4 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7120 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 4 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 7120 +HIGH_NUMBER_OF_BYTES_USED 7120 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 2 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 32768 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 4 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7120 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 4 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 7120 +HIGH_NUMBER_OF_BYTES_USED 7120 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +user2 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 3 3 +connection con2; +set GLOBAL query_cache_size=2000*1024; +select get_lock("marker_2", 10); +get_lock("marker_2", 10) +1 +select release_lock("marker_2"); +release_lock("marker_2") +1 +set @v1 = repeat("a", 1000); +set @v2 = repeat("b", 2000); +set @v3 = repeat("c", 4000); +"================== con2 marker ==================" +connection default; +"================== Step 5 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_user; +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 32 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 512 +HIGH_NUMBER_OF_BYTES_USED 544 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 7 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 14144 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 7 +HIGH_COUNT_USED 7 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 14144 +HIGH_NUMBER_OF_BYTES_USED 14144 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 65536 +SUM_NUMBER_OF_BYTES_FREE 32768 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 32 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 512 +HIGH_NUMBER_OF_BYTES_USED 544 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 7 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 14144 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 7 +HIGH_COUNT_USED 7 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 14144 +HIGH_NUMBER_OF_BYTES_USED 14144 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +user2 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 3 3 +truncate table performance_schema.memory_summary_by_thread_by_event_name; +"================== MEMORY_BY_THREAD truncated ==================" +"================== Step 5b ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_user; +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 32 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 512 +HIGH_NUMBER_OF_BYTES_USED 544 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 7 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 14144 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 7 +HIGH_COUNT_USED 7 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 14144 +HIGH_NUMBER_OF_BYTES_USED 14144 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 65536 +SUM_NUMBER_OF_BYTES_FREE 32768 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 32 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 512 +HIGH_NUMBER_OF_BYTES_USED 544 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 7 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 14144 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 7 +HIGH_COUNT_USED 7 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 14144 +HIGH_NUMBER_OF_BYTES_USED 14144 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +user2 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 3 3 +connect con3, localhost, user3, , ; +"================== con3 connected ==================" +connection default; +"================== Step 6 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +username user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +username user4 +status not found +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_user; +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 32 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 512 +HIGH_NUMBER_OF_BYTES_USED 544 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 7 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 14144 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 7 +HIGH_COUNT_USED 7 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 14144 +HIGH_NUMBER_OF_BYTES_USED 14144 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 65536 +SUM_NUMBER_OF_BYTES_FREE 32768 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 32 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 512 +HIGH_NUMBER_OF_BYTES_USED 544 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 7 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 14144 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 7 +HIGH_COUNT_USED 7 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 14144 +HIGH_NUMBER_OF_BYTES_USED 14144 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +user2 localhost 1 1 +user3 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 4 4 +connection con3; +set GLOBAL query_cache_size=500*1024; +select get_lock("marker_3", 10); +get_lock("marker_3", 10) +1 +select release_lock("marker_3"); +release_lock("marker_3") +1 +set @v1 = repeat("a", 1000); +set @v2 = repeat("b", 2000); +set @v3 = repeat("c", 4000); +"================== con3 marker ==================" +connection default; +"================== Step 7 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user4 +status not found +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user3 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_user; +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 6 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 816 +SUM_NUMBER_OF_BYTES_FREE 48 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 768 +HIGH_NUMBER_OF_BYTES_USED 816 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 10 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 21168 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 10 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 21168 +HIGH_NUMBER_OF_BYTES_USED 21168 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 6 +COUNT_FREE 4 +SUM_NUMBER_OF_BYTES_ALLOC 98304 +SUM_NUMBER_OF_BYTES_FREE 65536 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 6 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 816 +SUM_NUMBER_OF_BYTES_FREE 48 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 768 +HIGH_NUMBER_OF_BYTES_USED 816 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 10 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 21168 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 10 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 21168 +HIGH_NUMBER_OF_BYTES_USED 21168 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +user2 localhost 1 1 +user3 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 4 4 +connect con4, localhost, user4, , ; +connect con5, localhost, user4, , ; +"================== con4/con5 (both user4) connected ==================" +connection default; +"================== Step 8 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +username user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user3 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_user; +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 6 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 816 +SUM_NUMBER_OF_BYTES_FREE 48 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 768 +HIGH_NUMBER_OF_BYTES_USED 816 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 10 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 21168 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 10 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 21168 +HIGH_NUMBER_OF_BYTES_USED 21168 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 6 +COUNT_FREE 4 +SUM_NUMBER_OF_BYTES_ALLOC 98304 +SUM_NUMBER_OF_BYTES_FREE 65536 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 6 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 816 +SUM_NUMBER_OF_BYTES_FREE 48 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 768 +HIGH_NUMBER_OF_BYTES_USED 816 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 10 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 21168 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 10 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 21168 +HIGH_NUMBER_OF_BYTES_USED 21168 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +user2 localhost 1 1 +user3 localhost 1 1 +user4 localhost 2 2 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 6 6 +connection con4; +set GLOBAL query_cache_size=4000*1024; +select get_lock("marker_4", 10); +get_lock("marker_4", 10) +1 +select release_lock("marker_4"); +release_lock("marker_4") +1 +set @v1 = repeat("a", 1000); +set @v2 = repeat("b", 2000); +set @v3 = repeat("c", 4000); +connection con5; +select get_lock("marker_5", 10); +get_lock("marker_5", 10) +1 +select release_lock("marker_5"); +release_lock("marker_5") +1 +set @v1 = repeat("a", 1000); +set @v2 = repeat("b", 2000); +set @v3 = repeat("c", 4000); +"================== con4/con5 marker ==================" +connection default; +"================== Step 9 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user3 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 32 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 512 +HIGH_NUMBER_OF_BYTES_USED 544 +USER user4 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 6 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 14048 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 6 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 14048 +HIGH_NUMBER_OF_BYTES_USED 14048 +execute dump_memory_user; +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 5 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 80 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 5 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 1280 +HIGH_NUMBER_OF_BYTES_USED 1360 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 16 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 35216 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 5 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 80 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 5 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 1280 +HIGH_NUMBER_OF_BYTES_USED 1360 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 16 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 35216 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +user2 localhost 1 1 +user3 localhost 1 1 +user4 localhost 2 2 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 6 6 +disconnect con1; +disconnect con5; +connection default; +"================== con1/con5 disconnected ==================" +"================== Step 10 ==================" +call dump_thread(); +username user1 +status not found +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user3 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 288 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 544 +USER user4 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 6 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 14048 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 14048 +execute dump_memory_user; +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 7 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 592 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 768 +HIGH_NUMBER_OF_BYTES_USED 1360 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 14048 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 10 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 21168 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 7 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 592 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 768 +HIGH_NUMBER_OF_BYTES_USED 1360 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 14048 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 10 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 21168 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 1 1 +user3 localhost 1 1 +user4 localhost 1 2 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 4 6 +disconnect con2; +connection default; +"================== con2 disconnected ==================" +"================== Step 11 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user3 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 288 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 544 +USER user4 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 6 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 14048 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 14048 +execute dump_memory_user; +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 8 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 848 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 512 +HIGH_NUMBER_OF_BYTES_USED 1360 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 9 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 21072 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 7 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 14144 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 8 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 848 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 512 +HIGH_NUMBER_OF_BYTES_USED 1360 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 9 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 21072 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 7 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 14144 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 1 1 +user4 localhost 1 2 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 3 6 +disconnect con3; +connection default; +"================== con3 disconnected ==================" +"================== Step 12 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user3 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 288 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 544 +USER user4 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 6 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 14048 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 14048 +execute dump_memory_user; +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 9 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 1104 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 1360 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 12 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 28096 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 4 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 7120 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 9 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 1104 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 1360 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 12 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 28096 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 4 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 7120 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 1 2 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 2 6 +disconnect con4; +connection default; +"================== con4 disconnected ==================" +"================== Step 13 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user3 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 4 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 544 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 544 +USER user4 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 6 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 14048 +SUM_NUMBER_OF_BYTES_FREE 14048 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 14048 +execute dump_memory_user; +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 10 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 1360 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 1360 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 15 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 35120 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 10 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 1360 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 1360 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 15 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 35120 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 2 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 6 +connection default; +truncate performance_schema.memory_summary_by_thread_by_event_name; +"================== MEMORY_BY_THREAD truncated ==================" +"================== Step 14 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user3 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 4 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 544 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 544 +USER user4 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 6 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 14048 +SUM_NUMBER_OF_BYTES_FREE 14048 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 14048 +execute dump_memory_user; +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 10 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 1360 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 1360 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 15 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 35120 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 10 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 1360 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 1360 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 15 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 35120 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 2 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 6 +truncate performance_schema.memory_summary_by_account_by_event_name; +"================== MEMORY_BY_ACCOUNT truncated ==================" +"================== Step 15 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_user; +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 10 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 1360 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 1360 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 15 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 35120 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 10 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 1360 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 1360 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 15 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 35120 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 2 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 6 +truncate performance_schema.memory_summary_by_user_by_event_name; +"================== MEMORY_BY_USER truncated ==================" +"================== Step 16 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_user; +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 10 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 1360 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 1360 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 15 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 35120 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 10 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 1360 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 1360 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 15 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 35120 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 2 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 6 +truncate performance_schema.memory_summary_by_host_by_event_name; +"================== MEMORY_BY_HOST truncated ==================" +"================== Step 17 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_user; +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 10 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 1360 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 1360 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 15 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 35120 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 2 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 6 +truncate performance_schema.memory_summary_global_by_event_name; +"================== MEMORY_GLOBAL truncated ==================" +"================== Step 18 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_user; +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 2 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 32768 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 2 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 32768 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 2 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 6 +truncate performance_schema.accounts; +"================== ACCOUNTS truncated ==================" +"================== Step 19 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 2 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 32768 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 2 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 32768 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 6 +truncate performance_schema.users; +"================== USERS truncated ==================" +"================== Step 20 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 2 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 32768 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 2 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 32768 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 6 +truncate performance_schema.hosts; +"================== HOSTS truncated ==================" +"================== Step 21 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +execute dump_memory_host; +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 2 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 32768 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 2 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 32768 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +localhost 1 1 diff --git a/mysql-test/suite/perfschema/r/memory_aggregate_no_u_no_h.result b/mysql-test/suite/perfschema/r/memory_aggregate_no_u_no_h.result new file mode 100644 index 00000000..b1ac5f24 --- /dev/null +++ b/mysql-test/suite/perfschema/r/memory_aggregate_no_u_no_h.result @@ -0,0 +1,3480 @@ +show global status like "performance_schema_memory_classes_lost"; +Variable_name Value +Performance_schema_memory_classes_lost 0 +"================== Step 1 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connect con1, localhost, user1, , ; +"================== con1 connected ==================" +connection default; +"================== Step 2 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_user; +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connection con1; +set GLOBAL query_cache_size=1000*1024; +select get_lock("marker_1", 10); +get_lock("marker_1", 10) +1 +select release_lock("marker_1"); +release_lock("marker_1") +1 +set @v1 = repeat("a", 1000); +set @v2 = repeat("b", 2000); +set @v3 = repeat("c", 4000); +"================== con1 marker ==================" +connection default; +"================== Step 3 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_user; +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 2 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 32768 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 4 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7120 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 4 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 7120 +HIGH_NUMBER_OF_BYTES_USED 7120 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connect con2, localhost, user2, , ; +"================== con2 connected ==================" +connection default; +"================== Step 4 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_user; +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 2 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 32768 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 4 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7120 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 4 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 7120 +HIGH_NUMBER_OF_BYTES_USED 7120 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +user2 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connection con2; +set GLOBAL query_cache_size=2000*1024; +select get_lock("marker_2", 10); +get_lock("marker_2", 10) +1 +select release_lock("marker_2"); +release_lock("marker_2") +1 +set @v1 = repeat("a", 1000); +set @v2 = repeat("b", 2000); +set @v3 = repeat("c", 4000); +"================== con2 marker ==================" +connection default; +"================== Step 5 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_user; +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 65536 +SUM_NUMBER_OF_BYTES_FREE 32768 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 32 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 512 +HIGH_NUMBER_OF_BYTES_USED 544 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 7 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 14144 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 7 +HIGH_COUNT_USED 7 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 14144 +HIGH_NUMBER_OF_BYTES_USED 14144 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +user2 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate table performance_schema.memory_summary_by_thread_by_event_name; +"================== MEMORY_BY_THREAD truncated ==================" +"================== Step 5b ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_user; +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 65536 +SUM_NUMBER_OF_BYTES_FREE 32768 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 32 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 512 +HIGH_NUMBER_OF_BYTES_USED 544 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 7 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 14144 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 7 +HIGH_COUNT_USED 7 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 14144 +HIGH_NUMBER_OF_BYTES_USED 14144 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +user2 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connect con3, localhost, user3, , ; +"================== con3 connected ==================" +connection default; +"================== Step 6 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +username user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +username user4 +status not found +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_user; +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 65536 +SUM_NUMBER_OF_BYTES_FREE 32768 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 32 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 512 +HIGH_NUMBER_OF_BYTES_USED 544 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 7 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 14144 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 7 +HIGH_COUNT_USED 7 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 14144 +HIGH_NUMBER_OF_BYTES_USED 14144 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +user2 localhost 1 1 +user3 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connection con3; +set GLOBAL query_cache_size=500*1024; +select get_lock("marker_3", 10); +get_lock("marker_3", 10) +1 +select release_lock("marker_3"); +release_lock("marker_3") +1 +set @v1 = repeat("a", 1000); +set @v2 = repeat("b", 2000); +set @v3 = repeat("c", 4000); +"================== con3 marker ==================" +connection default; +"================== Step 7 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user4 +status not found +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user3 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_user; +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 6 +COUNT_FREE 4 +SUM_NUMBER_OF_BYTES_ALLOC 98304 +SUM_NUMBER_OF_BYTES_FREE 65536 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 6 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 816 +SUM_NUMBER_OF_BYTES_FREE 48 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 768 +HIGH_NUMBER_OF_BYTES_USED 816 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 10 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 21168 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 10 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 21168 +HIGH_NUMBER_OF_BYTES_USED 21168 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +user2 localhost 1 1 +user3 localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connect con4, localhost, user4, , ; +connect con5, localhost, user4, , ; +"================== con4/con5 (both user4) connected ==================" +connection default; +"================== Step 8 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +username user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user3 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_user; +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 6 +COUNT_FREE 4 +SUM_NUMBER_OF_BYTES_ALLOC 98304 +SUM_NUMBER_OF_BYTES_FREE 65536 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 6 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 816 +SUM_NUMBER_OF_BYTES_FREE 48 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 768 +HIGH_NUMBER_OF_BYTES_USED 816 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 10 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 21168 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 10 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 21168 +HIGH_NUMBER_OF_BYTES_USED 21168 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +user2 localhost 1 1 +user3 localhost 1 1 +user4 localhost 2 2 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connection con4; +set GLOBAL query_cache_size=4000*1024; +select get_lock("marker_4", 10); +get_lock("marker_4", 10) +1 +select release_lock("marker_4"); +release_lock("marker_4") +1 +set @v1 = repeat("a", 1000); +set @v2 = repeat("b", 2000); +set @v3 = repeat("c", 4000); +connection con5; +select get_lock("marker_5", 10); +get_lock("marker_5", 10) +1 +select release_lock("marker_5"); +release_lock("marker_5") +1 +set @v1 = repeat("a", 1000); +set @v2 = repeat("b", 2000); +set @v3 = repeat("c", 4000); +"================== con4/con5 marker ==================" +connection default; +"================== Step 9 ==================" +call dump_thread(); +username user1 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user1 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user3 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 32 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 512 +HIGH_NUMBER_OF_BYTES_USED 544 +USER user4 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 6 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 14048 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 6 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 14048 +HIGH_NUMBER_OF_BYTES_USED 14048 +execute dump_memory_user; +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 5 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 80 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 5 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 1280 +HIGH_NUMBER_OF_BYTES_USED 1360 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 16 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 35216 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 1 1 +user2 localhost 1 1 +user3 localhost 1 1 +user4 localhost 2 2 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +disconnect con1; +disconnect con5; +connection default; +"================== con1/con5 disconnected ==================" +"================== Step 10 ==================" +call dump_thread(); +username user1 +status not found +username user2 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 256 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 256 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 256 +username user2 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 3 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 7024 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user3 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 288 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 544 +USER user4 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 6 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 14048 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 14048 +execute dump_memory_user; +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 7 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 592 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 768 +HIGH_NUMBER_OF_BYTES_USED 1360 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 14048 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 10 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 21168 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 1 1 +user3 localhost 1 1 +user4 localhost 1 2 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +disconnect con2; +connection default; +"================== con2 disconnected ==================" +"================== Step 11 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user3 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +username user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user3 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 288 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 544 +USER user4 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 6 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 14048 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 14048 +execute dump_memory_user; +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 8 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 848 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 512 +HIGH_NUMBER_OF_BYTES_USED 1360 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 9 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 21072 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 7 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 14144 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 1 1 +user4 localhost 1 2 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +disconnect con3; +connection default; +"================== con3 disconnected ==================" +"================== Step 12 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 1 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 16 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 272 +username user4 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 7024 +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user3 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 288 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 544 +USER user4 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 6 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 14048 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 3 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 7024 +HIGH_NUMBER_OF_BYTES_USED 14048 +execute dump_memory_user; +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 9 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 1104 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 256 +HIGH_NUMBER_OF_BYTES_USED 1360 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 12 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 28096 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 4 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 7120 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 1 2 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +disconnect con4; +connection default; +"================== con4 disconnected ==================" +"================== Step 13 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user3 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 4 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 544 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 544 +USER user4 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 6 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 14048 +SUM_NUMBER_OF_BYTES_FREE 14048 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 14048 +execute dump_memory_user; +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 10 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 1360 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 1360 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 15 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 35120 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 2 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +connection default; +truncate performance_schema.memory_summary_by_thread_by_event_name; +"================== MEMORY_BY_THREAD truncated ==================" +"================== Step 14 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user3 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 2 +COUNT_FREE 2 +SUM_NUMBER_OF_BYTES_ALLOC 272 +SUM_NUMBER_OF_BYTES_FREE 272 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 272 +USER user3 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 3 +COUNT_FREE 3 +SUM_NUMBER_OF_BYTES_ALLOC 7024 +SUM_NUMBER_OF_BYTES_FREE 7024 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 3 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 7024 +USER user4 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 4 +COUNT_FREE 4 +SUM_NUMBER_OF_BYTES_ALLOC 544 +SUM_NUMBER_OF_BYTES_FREE 544 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 4 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 544 +USER user4 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 6 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 14048 +SUM_NUMBER_OF_BYTES_FREE 14048 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 6 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 14048 +execute dump_memory_user; +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 10 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 1360 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 1360 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 15 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 35120 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 2 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.memory_summary_by_account_by_event_name; +"================== MEMORY_BY_ACCOUNT truncated ==================" +"================== Step 15 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_user; +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 10 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 1360 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 1360 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 15 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 35120 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 2 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.memory_summary_by_user_by_event_name; +"================== MEMORY_BY_USER truncated ==================" +"================== Step 16 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_user; +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 10 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 1360 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 1360 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 15 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 35120 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 2 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.memory_summary_by_host_by_event_name; +"================== MEMORY_BY_HOST truncated ==================" +"================== Step 17 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_user; +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 8 +COUNT_FREE 6 +SUM_NUMBER_OF_BYTES_ALLOC 131072 +SUM_NUMBER_OF_BYTES_FREE 98304 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 10 +COUNT_FREE 10 +SUM_NUMBER_OF_BYTES_ALLOC 1360 +SUM_NUMBER_OF_BYTES_FREE 1360 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 10 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 1360 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 16 +COUNT_FREE 15 +SUM_NUMBER_OF_BYTES_ALLOC 35216 +SUM_NUMBER_OF_BYTES_FREE 35120 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 16 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 35216 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 2 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.memory_summary_global_by_event_name; +"================== MEMORY_GLOBAL truncated ==================" +"================== Step 18 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +USER user1 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user1 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user2 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user3 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +HOST localhost +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +USER user4 +HOST localhost +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +execute dump_memory_user; +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 2 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 32768 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 2 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 32768 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +user1 localhost 0 1 +user2 localhost 0 1 +user3 localhost 0 1 +user4 localhost 0 2 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.accounts; +"================== ACCOUNTS truncated ==================" +"================== Step 19 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 2 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 32768 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 2 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 32768 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.users; +"================== USERS truncated ==================" +"================== Step 20 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 2 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 32768 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 2 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 32768 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +truncate performance_schema.hosts; +"================== HOSTS truncated ==================" +"================== Step 21 ==================" +call dump_thread(); +username user1 +status not found +username user2 +status not found +username user3 +status not found +username user4 +status not found +execute dump_memory_account; +execute dump_memory_user; +execute dump_memory_host; +execute dump_memory_global; +EVENT_NAME memory/sql/Query_cache +COUNT_ALLOC 2 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 32768 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 2 +CURRENT_COUNT_USED 2 +HIGH_COUNT_USED 2 +LOW_NUMBER_OF_BYTES_USED 32768 +CURRENT_NUMBER_OF_BYTES_USED 32768 +HIGH_NUMBER_OF_BYTES_USED 32768 +EVENT_NAME memory/sql/User_level_lock +COUNT_ALLOC 0 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 0 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 0 +CURRENT_COUNT_USED 0 +HIGH_COUNT_USED 0 +LOW_NUMBER_OF_BYTES_USED 0 +CURRENT_NUMBER_OF_BYTES_USED 0 +HIGH_NUMBER_OF_BYTES_USED 0 +EVENT_NAME memory/sql/user_var_entry::value +COUNT_ALLOC 1 +COUNT_FREE 0 +SUM_NUMBER_OF_BYTES_ALLOC 96 +SUM_NUMBER_OF_BYTES_FREE 0 +LOW_COUNT_USED 1 +CURRENT_COUNT_USED 1 +HIGH_COUNT_USED 1 +LOW_NUMBER_OF_BYTES_USED 96 +CURRENT_NUMBER_OF_BYTES_USED 96 +HIGH_NUMBER_OF_BYTES_USED 96 +execute dump_accounts; +USER HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS +root localhost 1 1 +execute dump_users; +USER CURRENT_CONNECTIONS TOTAL_CONNECTIONS +execute dump_hosts; +HOST CURRENT_CONNECTIONS TOTAL_CONNECTIONS diff --git a/mysql-test/suite/perfschema/r/memory_table_io.result b/mysql-test/suite/perfschema/r/memory_table_io.result new file mode 100644 index 00000000..e8aa98ce --- /dev/null +++ b/mysql-test/suite/perfschema/r/memory_table_io.result @@ -0,0 +1,145 @@ +drop table if exists test.marker; +create table test.marker(a int); +update performance_schema.setup_consumers set enabled='NO'; +update performance_schema.setup_instruments set enabled='NO'; +update performance_schema.setup_instruments set enabled='YES' + where name like "wait/io/table/%"; +truncate table performance_schema.events_waits_history_long; +flush status; +flush tables; +drop table if exists test.no_index_tab; +update performance_schema.setup_consumers set enabled='YES'; +insert into marker set a = 1; +create table test.no_index_tab +( a varchar(255) not null, b int not null) engine = MEMORY; +insert into marker set a = 1; +show create table test.no_index_tab; +Table Create Table +no_index_tab CREATE TABLE `no_index_tab` ( + `a` varchar(255) NOT NULL, + `b` int(11) NOT NULL +) ENGINE=MEMORY DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci +insert into marker set a = 1; +insert into test.no_index_tab set a = 'foo', b = 1; +insert into marker set a = 1; +insert into test.no_index_tab set a = 'foo', b = 2; +insert into marker set a = 1; +insert into test.no_index_tab set a = 'foo', b = 3; +insert into marker set a = 1; +select * from test.no_index_tab; +a b +foo 1 +foo 2 +foo 3 +insert into marker set a = 1; +update test.no_index_tab set a = 'bar'; +insert into marker set a = 1; +select * from test.no_index_tab limit 2; +a b +bar 1 +bar 2 +insert into marker set a = 1; +delete from test.no_index_tab where b = 3; +insert into marker set a = 1; +select * from test.no_index_tab; +a b +bar 1 +bar 2 +insert into marker set a = 1; +optimize table test.no_index_tab; +Table Op Msg_type Msg_text +test.no_index_tab optimize note The storage engine for the table doesn't support optimize +insert into marker set a = 1; +select * from test.no_index_tab; +a b +bar 1 +bar 2 +insert into marker set a = 1; +truncate table test.no_index_tab; +insert into marker set a = 1; +drop table test.no_index_tab; +update performance_schema.setup_consumers set enabled='NO'; +select event_name, +left(source, locate(":", source)) as short_source, +object_type, object_schema, +if (locate("#sql-", object_name), "#sql-XXXX", object_name) +as pretty_name, +operation, number_of_bytes +from performance_schema.events_waits_history_long +where event_name like 'wait/io/table/%' + and object_schema in ("test") +order by thread_id, event_id; +event_name short_source object_type object_schema pretty_name operation number_of_bytes +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test no_index_tab insert 1 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test no_index_tab insert 1 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test no_index_tab insert 1 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 3 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 1 +wait/io/table/sql/handler TABLE test no_index_tab update 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 1 +wait/io/table/sql/handler TABLE test no_index_tab update 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 1 +wait/io/table/sql/handler TABLE test no_index_tab update 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 1 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 2 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 1 +wait/io/table/sql/handler TABLE test no_index_tab delete 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 1 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 2 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 2 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test marker insert 1 +show global status like 'performance_schema_%'; +Variable_name Value +Performance_schema_accounts_lost 0 +Performance_schema_cond_classes_lost 0 +Performance_schema_cond_instances_lost 0 +Performance_schema_digest_lost 0 +Performance_schema_file_classes_lost 0 +Performance_schema_file_handles_lost 0 +Performance_schema_file_instances_lost 0 +Performance_schema_hosts_lost 0 +Performance_schema_index_stat_lost 0 +Performance_schema_locker_lost 0 +Performance_schema_memory_classes_lost 0 +Performance_schema_metadata_lock_lost 0 +Performance_schema_mutex_classes_lost 0 +Performance_schema_mutex_instances_lost 0 +Performance_schema_nested_statement_lost 0 +Performance_schema_prepared_statements_lost 0 +Performance_schema_program_lost 0 +Performance_schema_rwlock_classes_lost 0 +Performance_schema_rwlock_instances_lost 0 +Performance_schema_session_connect_attrs_lost 0 +Performance_schema_socket_classes_lost 0 +Performance_schema_socket_instances_lost 0 +Performance_schema_stage_classes_lost 0 +Performance_schema_statement_classes_lost 0 +Performance_schema_table_handles_lost 0 +Performance_schema_table_instances_lost 0 +Performance_schema_table_lock_stat_lost 0 +Performance_schema_thread_classes_lost 0 +Performance_schema_thread_instances_lost 0 +Performance_schema_users_lost 0 +truncate performance_schema.events_waits_history_long; +flush status; +update performance_schema.setup_consumers set enabled='NO'; +truncate performance_schema.events_waits_history_long; +drop table test.marker; +flush status; +update performance_schema.setup_instruments set enabled='YES'; +update performance_schema.setup_consumers set enabled='YES'; diff --git a/mysql-test/suite/perfschema/r/merge_table_io.result b/mysql-test/suite/perfschema/r/merge_table_io.result new file mode 100644 index 00000000..f2bdfd2c --- /dev/null +++ b/mysql-test/suite/perfschema/r/merge_table_io.result @@ -0,0 +1,177 @@ +drop table if exists test.marker; +create table test.marker(a int); +update performance_schema.setup_consumers set enabled='NO'; +update performance_schema.setup_instruments set enabled='NO'; +update performance_schema.setup_instruments set enabled='YES' + where name like "wait/io/table/%"; +truncate table performance_schema.events_waits_history_long; +flush status; +flush tables; +drop table if exists test.no_index_tab; +drop table if exists test.no_index_tab_1; +drop table if exists test.no_index_tab_2; +update performance_schema.setup_consumers set enabled='YES'; +insert into marker set a = 1; +create table test.no_index_tab_1 +( a varchar(255) not null, b int not null) engine = MyISAM; +insert into marker set a = 1; +create table test.no_index_tab_2 like test.no_index_tab_1; +insert into marker set a = 1; +create table test.no_index_tab +( a varchar(255) not null, b int not null) engine = merge +union = (test.no_index_tab_1,test.no_index_tab_2) insert_method = first; +insert into marker set a = 1; +show create table test.no_index_tab_1; +Table Create Table +no_index_tab_1 CREATE TABLE `no_index_tab_1` ( + `a` varchar(255) NOT NULL, + `b` int(11) NOT NULL +) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci +insert into marker set a = 1; +show create table test.no_index_tab_2; +Table Create Table +no_index_tab_2 CREATE TABLE `no_index_tab_2` ( + `a` varchar(255) NOT NULL, + `b` int(11) NOT NULL +) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci +insert into marker set a = 1; +show create table test.no_index_tab; +Table Create Table +no_index_tab CREATE TABLE `no_index_tab` ( + `a` varchar(255) NOT NULL, + `b` int(11) NOT NULL +) ENGINE=MRG_MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci INSERT_METHOD=FIRST UNION=(`no_index_tab_1`,`no_index_tab_2`) +insert into marker set a = 1; +insert into test.no_index_tab set a = 'foo', b = 1; +insert into marker set a = 1; +insert into test.no_index_tab set a = 'foo', b = 2; +insert into marker set a = 1; +insert into test.no_index_tab set a = 'foo', b = 3; +insert into marker set a = 1; +select * from test.no_index_tab; +a b +foo 1 +foo 2 +foo 3 +insert into marker set a = 1; +update test.no_index_tab set a = 'bar'; +insert into marker set a = 1; +select * from test.no_index_tab limit 2; +a b +bar 1 +bar 2 +insert into marker set a = 1; +delete from test.no_index_tab where b = 3; +insert into marker set a = 1; +select * from test.no_index_tab; +a b +bar 1 +bar 2 +insert into marker set a = 1; +optimize table test.no_index_tab; +Table Op Msg_type Msg_text +test.no_index_tab optimize note The storage engine for the table doesn't support optimize +insert into marker set a = 1; +select * from test.no_index_tab; +a b +bar 1 +bar 2 +insert into marker set a = 1; +truncate table test.no_index_tab; +insert into marker set a = 1; +drop table test.no_index_tab_1; +insert into marker set a = 1; +drop table test.no_index_tab_2; +insert into marker set a = 1; +drop table test.no_index_tab; +update performance_schema.setup_consumers set enabled='NO'; +select event_name, +left(source, locate(":", source)) as short_source, +object_type, object_schema, +if (locate("#sql-", object_name), "#sql-XXXX", object_name) +as pretty_name, +operation, number_of_bytes +from performance_schema.events_waits_history_long +where event_name like 'wait/io/table/%' + and object_schema in ("test") +order by thread_id, event_id; +event_name short_source object_type object_schema pretty_name operation number_of_bytes +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test no_index_tab insert 1 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test no_index_tab insert 1 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test no_index_tab insert 1 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 3 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 1 +wait/io/table/sql/handler TABLE test no_index_tab update 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 1 +wait/io/table/sql/handler TABLE test no_index_tab update 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 1 +wait/io/table/sql/handler TABLE test no_index_tab update 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 1 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 2 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 1 +wait/io/table/sql/handler TABLE test no_index_tab delete 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 1 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 2 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 2 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test marker insert 1 +show global status like 'performance_schema_%'; +Variable_name Value +Performance_schema_accounts_lost 0 +Performance_schema_cond_classes_lost 0 +Performance_schema_cond_instances_lost 0 +Performance_schema_digest_lost 0 +Performance_schema_file_classes_lost 0 +Performance_schema_file_handles_lost 0 +Performance_schema_file_instances_lost 0 +Performance_schema_hosts_lost 0 +Performance_schema_index_stat_lost 0 +Performance_schema_locker_lost 0 +Performance_schema_memory_classes_lost 0 +Performance_schema_metadata_lock_lost 0 +Performance_schema_mutex_classes_lost 0 +Performance_schema_mutex_instances_lost 0 +Performance_schema_nested_statement_lost 0 +Performance_schema_prepared_statements_lost 0 +Performance_schema_program_lost 0 +Performance_schema_rwlock_classes_lost 0 +Performance_schema_rwlock_instances_lost 0 +Performance_schema_session_connect_attrs_lost 0 +Performance_schema_socket_classes_lost 0 +Performance_schema_socket_instances_lost 0 +Performance_schema_stage_classes_lost 0 +Performance_schema_statement_classes_lost 0 +Performance_schema_table_handles_lost 0 +Performance_schema_table_instances_lost 0 +Performance_schema_table_lock_stat_lost 0 +Performance_schema_thread_classes_lost 0 +Performance_schema_thread_instances_lost 0 +Performance_schema_users_lost 0 +truncate performance_schema.events_waits_history_long; +flush status; +update performance_schema.setup_consumers set enabled='NO'; +truncate performance_schema.events_waits_history_long; +drop table test.marker; +flush status; +update performance_schema.setup_instruments set enabled='YES'; +update performance_schema.setup_consumers set enabled='YES'; diff --git a/mysql-test/suite/perfschema/r/misc.result b/mysql-test/suite/perfschema/r/misc.result new file mode 100644 index 00000000..2258cbce --- /dev/null +++ b/mysql-test/suite/perfschema/r/misc.result @@ -0,0 +1,189 @@ +SELECT object_schema, object_name FROM performance_schema.objects_summary_global_by_type +WHERE object_schema='test'; +object_schema object_name +CREATE TABLE test.t_before(a INT); +INSERT INTO test.t_before VALUES (1); +SELECT object_schema, object_name FROM performance_schema.objects_summary_global_by_type +WHERE object_schema='test'; +object_schema object_name +test t_before +RENAME TABLE test.t_before TO test.t_after; +SELECT COUNT(*) FROM test.t_after; +COUNT(*) +1 +SELECT object_schema, object_name FROM performance_schema.objects_summary_global_by_type +WHERE object_schema='test'; +object_schema object_name +test t_after +DROP TABLE test.t_after; +SELECT object_schema, object_name FROM performance_schema.objects_summary_global_by_type +WHERE object_schema='test'; +object_schema object_name +CREATE TABLE test.t1(a INT); +INSERT INTO test.t1 VALUES (1); +CREATE VIEW test.v1 AS SELECT * FROM test.t1; +SELECT COUNT(*) FROM test.v1; +COUNT(*) +1 +SELECT object_schema, object_name FROM performance_schema.objects_summary_global_by_type +WHERE object_schema='test'; +object_schema object_name +test t1 +DROP VIEW test.v1; +DROP TABLE test.t1; +SELECT object_schema, object_name FROM performance_schema.objects_summary_global_by_type +WHERE object_schema='test'; +object_schema object_name +SELECT EVENT_ID FROM performance_schema.events_waits_current +WHERE THREAD_ID IN +(SELECT THREAD_ID FROM performance_schema.threads) +AND EVENT_NAME IN +(SELECT NAME FROM performance_schema.setup_instruments +WHERE NAME LIKE "wait/synch/%") +LIMIT 1; +create table test.t1(a int) engine=performance_schema; +ERROR HY000: Can't create table `test`.`t1` (errno: 131 "Command not supported by the engine") +SELECT object_schema, object_name FROM performance_schema.objects_summary_global_by_type +WHERE object_schema='test'; +object_schema object_name +create table test.t1 like performance_schema.events_waits_current; +ERROR HY000: Can't create table `test`.`t1` (errno: 131 "Command not supported by the engine") +SELECT object_schema, object_name FROM performance_schema.objects_summary_global_by_type +WHERE object_schema='test'; +object_schema object_name +create table performance_schema.t1(a int); +ERROR 42000: CREATE command denied to user 'root'@'localhost' for table `performance_schema`.`t1` +SELECT object_schema, object_name FROM performance_schema.objects_summary_global_by_type +WHERE object_schema='test'; +object_schema object_name +drop table if exists test.ghost; +create table test.ghost (a int, b int); +alter table test.ghost add index index_a(a); +alter table test.ghost add index index_b(b); +insert into test.ghost values (1, 3); +insert into test.ghost values (2, 4); +select * from test.ghost; +a b +1 3 +2 4 +drop table test.ghost; +select * from performance_schema.file_instances +where file_name like "%ghost%"; +FILE_NAME EVENT_NAME OPEN_COUNT +select * from performance_schema.no_such_table; +ERROR 42S02: Table 'performance_schema.no_such_table' doesn't exist +DROP TABLE IF EXISTS t_60905; +CREATE TABLE t_60905 (i INT, j INT, KEY(i)) ENGINE = InnoDB; +INSERT INTO t_60905 VALUES +(1,2), (3,4), (5,6), (7,8), (9,10); +DELETE FROM t_60905 WHERE i = 1; +DELETE FROM t_60905 WHERE j = 8; +SELECT object_schema, +object_name, +index_name, +count_fetch, +count_insert, +count_update, +count_delete +FROM performance_schema.table_io_waits_summary_by_index_usage +WHERE object_schema = 'test' + AND object_name = 't_60905'; +object_schema object_name index_name count_fetch count_insert count_update count_delete +test t_60905 i 2 0 0 1 +test t_60905 NULL 5 5 0 1 +DROP TABLE t_60905; +show global variables like "performance_schema_max_thread_instances"; +Variable_name Value +performance_schema_max_thread_instances 200 +explain select * from performance_schema.threads; +id select_type table type possible_keys key key_len ref rows Extra +1 SIMPLE threads ALL NULL NULL NULL NULL 256 +use performance_schema; +show events; +Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation +show events from performance_schema; +Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation +show events where Db= 'performance_schema'; +Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation +use test; +use test; +truncate performance_schema.events_statements_history; +truncate performance_schema.events_statements_history_long; +select * from t1; +ERROR 42S02: Table 'test.t1' doesn't exist + +select mysql_errno, returned_sqlstate, message_text, errors, warnings +from performance_schema.events_statements_history where errors > 0; +mysql_errno returned_sqlstate message_text errors warnings +1146 42S02 Table 'test.t1' doesn't exist 1 0 +# +select mysql_errno, returned_sqlstate, message_text, errors, warnings from +performance_schema.events_statements_history_long where errors > 0; +mysql_errno returned_sqlstate message_text errors warnings +1146 42S02 Table 'test.t1' doesn't exist 1 0 +use performance_schema; +truncate performance_schema.events_statements_history; +select 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa' AS A; +A +aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa +select _utf8mb4 'òðÑÂÑòðÑÂÑòðÑÂÑòðÑÂÑòðÑÂÑòðÑÂÑòðÑÂÑòðÑÂÑòðÑÂÑòðÑÂÑòðÑÂÑòðÑÂÑòðÑÂÑòðÑÂÑòðÑÂÑòðÑÂÑòðÑÂÑòðÑÂÑòðÑÂÑòðÑÂÑòðÑÂÑòðÑÂÑòðÑÂÑòðÑÂÑòðÑÂÑòðÑÂÑòðÑÂÑòðÑÂÑòðÑÂÑòðÑÂÑòðÑÂÑòðÑÂÑòðÑÂÑòðÑÂÑòðÑÂÑòðÑÂÑòðÑÂÑòðÑÂÑòðÑÂÑòðÑÂÑòðÑÂÑòðÑÂÑòðÑÂÑòðÑÂÑòðÑÂÑòðÑÂÑòðÑÂÑòðÑÂÑòðÑÂÑòðÑÂÑòðÑÂÑòðÑÂÑòðÑÂÑòðÑÂÑòðÑÂÑòðÑÂÑòðÑÂÑòðÑÂÑòðÑÂÑòðÑÂÑòðÑÂÑòðÑÂÑòðÑÂÑòðÑÂÑòðÑÂÑòðÑÂÑòðÑÂÑòðÑÂÑòðÑÂÑòðÑÂÑòðÑÂÑòðÑÂÑ' as B; +B +ваÑÑваÑÑваÑÑваÑÑваÑÑваÑÑваÑÑваÑÑваÑÑваÑÑваÑÑваÑÑваÑÑваÑÑваÑÑваÑÑваÑÑваÑÑваÑÑваÑÑваÑÑваÑÑваÑÑваÑÑваÑÑваÑÑваÑÑваÑÑваÑÑваÑÑваÑÑваÑÑваÑÑваÑÑваÑÑваÑÑваÑÑваÑÑваÑÑваÑÑваÑÑваÑÑваÑÑваÑÑваÑÑваÑÑваÑÑваÑÑваÑÑваÑÑваÑÑваÑÑваÑÑваÑÑваÑÑваÑÑваÑÑваÑÑваÑÑваÑÑваÑÑваÑÑваÑÑваÑÑваÑÑваÑÑваÑÑваÑÑваÑÑваÑÑваÑÑваÑÑ +select count(*) from events_statements_history where sql_text like "%..."; +count(*) +2 +use test; +create table t1 (id int); +insert into t1 values (1), (2), (3); +truncate performance_schema.events_statements_history; +select * from t1; +id +1 +2 +3 +insert into t1 select RAND()*10000 from t1; +select sql_text, rows_examined from performance_schema.events_statements_history; +sql_text rows_examined +truncate performance_schema.events_statements_history 0 +select * from t1 3 +insert into t1 select RAND()*10000 from t1 6 +drop table t1; +# +# MDEV-17896 Assertion `pfs->get_refcount() > 0' failed +# in release_table_share +# +SELECT COUNT(*)<@@performance_schema_max_table_instances FROM +performance_schema.objects_summary_global_by_type WHERE OBJECT_TYPE='TABLE'; +COUNT(*)<@@performance_schema_max_table_instances +1 +CREATE TABLE t0(a INT); +SELECT * FROM t0; +a +DROP TEMPORARY TABLE IF EXISTS t0; +Warnings: +Note 1051 Unknown table 'test.t0' +FLUSH TABLE t0; +DROP TABLE t0; +# +# MDEV-24364 Alter rename table does not remove PFS share +# +create or replace table yt4 (x int) engine innodb; +alter table yt4 rename to t1, algorithm=copy; +drop tables t1; +select object_type, object_schema, object_name +from performance_schema.objects_summary_global_by_type +where object_schema="test"; +object_type object_schema object_name +# +# MDEV-28344: sys.ps_setup_save and dependent procedures fail +# with ER_ILLEGAL_HA_CREATE_OPTION +# +CREATE TEMPORARY TABLE t1 (t int) ENGINE = PERFORMANCE_SCHEMA; +ERROR HY000: Table storage engine 'PERFORMANCE_SCHEMA' does not support the create option 'TEMPORARY' +CREATE TEMPORARY TABLE t1 LIKE performance_schema.setup_actors; +ERROR HY000: Table storage engine 'PERFORMANCE_SCHEMA' does not support the create option 'TEMPORARY' +SET @default_storage_engine_old = @@default_storage_engine; +SET default_storage_engine = performance_schema; +CREATE TEMPORARY TABLE t1 (t int); +ERROR HY000: Table storage engine 'PERFORMANCE_SCHEMA' does not support the create option 'TEMPORARY' +SET @@default_storage_engine = @default_storage_engine_old; diff --git a/mysql-test/suite/perfschema/r/misc_global_status.result b/mysql-test/suite/perfschema/r/misc_global_status.result new file mode 100644 index 00000000..1863dde6 --- /dev/null +++ b/mysql-test/suite/perfschema/r/misc_global_status.result @@ -0,0 +1,106 @@ +CREATE USER user1@localhost; +CREATE USER user2@localhost; +CREATE USER user3@localhost; +grant ALL on *.* to user1@localhost; +grant ALL on *.* to user2@localhost; +grant ALL on *.* to user3@localhost; +TRUNCATE TABLE performance_schema.accounts; +FLUSH PRIVILEGES; +CREATE TABLE test.t_range(a int, b int, PRIMARY KEY(a)); +INSERT INTO test.t_range values (1, 1), (2,2), (3, 3), (4, 4), (5, 5); +INSERT INTO test.t_range values (6, 6), (7,7), (8, 8), (9, 9), (10, 10); +FLUSH STATUS; +SELECT * from test.t_range where (a >= 3) AND (a <= 5); +a b +3 3 +4 4 +5 5 +SELECT * from performance_schema.session_status +WHERE VARIABLE_NAME = 'Select_range'; +VARIABLE_NAME VARIABLE_VALUE +Select_range 1 +VARIABLE_NAME DELTA +Select_range 1 +connect con1, localhost, user1,,; +SELECT * from test.t_range where (a >= 3) AND (a <= 5); +a b +3 3 +4 4 +5 5 +SELECT * from performance_schema.session_status +WHERE VARIABLE_NAME = 'Select_range'; +VARIABLE_NAME VARIABLE_VALUE +Select_range 1 +VARIABLE_NAME DELTA +Select_range 2 +connect con2, localhost, user2,,; +SELECT * from test.t_range where (a >= 3) AND (a <= 5); +a b +3 3 +4 4 +5 5 +SELECT * from test.t_range where (a >= 4) AND (a <= 6); +a b +4 4 +5 5 +6 6 +SELECT * from performance_schema.session_status +WHERE VARIABLE_NAME = 'Select_range'; +VARIABLE_NAME VARIABLE_VALUE +Select_range 2 +VARIABLE_NAME DELTA +Select_range 4 +connect con3, localhost, user3,,; +SELECT * from test.t_range where (a >= 3) AND (a <= 5); +a b +3 3 +4 4 +5 5 +SELECT * from test.t_range where (a >= 4) AND (a <= 6); +a b +4 4 +5 5 +6 6 +SELECT * from test.t_range where (a >= 5) AND (a <= 7); +a b +5 5 +6 6 +7 7 +SELECT * from performance_schema.session_status +WHERE VARIABLE_NAME = 'Select_range'; +VARIABLE_NAME VARIABLE_VALUE +Select_range 3 +VARIABLE_NAME DELTA +Select_range 7 +connection default; +VARIABLE_NAME DELTA +Select_range 7 +SELECT `USER`, `HOST`, VARIABLE_NAME, VARIABLE_VALUE +FROM performance_schema.status_by_account WHERE VARIABLE_NAME = 'Select_range' + AND `USER` LIKE 'user%' + ORDER BY `USER`; +USER HOST VARIABLE_NAME VARIABLE_VALUE +user1 localhost Select_range 1 +user2 localhost Select_range 2 +user3 localhost Select_range 3 +disconnect con1; +disconnect con2; +VARIABLE_NAME DELTA +Select_range 7 +TRUNCATE TABLE performance_schema.accounts; +VARIABLE_NAME DELTA +Select_range 7 +disconnect con3; +VARIABLE_NAME DELTA +Select_range 7 +TRUNCATE TABLE performance_schema.accounts; +VARIABLE_NAME DELTA +Select_range 7 +DROP TABLE test.t_range; +REVOKE ALL PRIVILEGES, GRANT OPTION FROM user1@localhost; +REVOKE ALL PRIVILEGES, GRANT OPTION FROM user2@localhost; +REVOKE ALL PRIVILEGES, GRANT OPTION FROM user3@localhost; +DROP USER user1@localhost; +DROP USER user2@localhost; +DROP USER user3@localhost; +FLUSH PRIVILEGES; diff --git a/mysql-test/suite/perfschema/r/mks_timer-6258.result b/mysql-test/suite/perfschema/r/mks_timer-6258.result new file mode 100644 index 00000000..d0e95a1a --- /dev/null +++ b/mysql-test/suite/perfschema/r/mks_timer-6258.result @@ -0,0 +1,3 @@ +select distinct first_seen < DATE'2000-01-01', last_seen < DATE'2000-01-01' from performance_schema.events_statements_summary_by_digest; +first_seen < DATE'2000-01-01' last_seen < DATE'2000-01-01' +0 0 diff --git a/mysql-test/suite/perfschema/r/multi_table_io.result b/mysql-test/suite/perfschema/r/multi_table_io.result new file mode 100644 index 00000000..29df241e --- /dev/null +++ b/mysql-test/suite/perfschema/r/multi_table_io.result @@ -0,0 +1,116 @@ +drop schema if exists test1; +drop table if exists test.t1; +create schema test1; +create table test.t1 (col1 bigint, col2 varchar(30)) engine = myisam; +insert into test.t1 values(1,'One'); +create table test1.t2 like test.t1; +show create table test.t1; +Table Create Table +t1 CREATE TABLE `t1` ( + `col1` bigint(20) DEFAULT NULL, + `col2` varchar(30) DEFAULT NULL +) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci +show create table test1.t2; +Table Create Table +t2 CREATE TABLE `t2` ( + `col1` bigint(20) DEFAULT NULL, + `col2` varchar(30) DEFAULT NULL +) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci +drop table if exists test.marker; +create table test.marker(a int); +update performance_schema.setup_consumers set enabled='NO'; +update performance_schema.setup_instruments set enabled='NO'; +update performance_schema.setup_instruments set enabled='YES' + where name like "wait/io/table/%"; +truncate table performance_schema.events_waits_history_long; +flush status; +flush tables; +update performance_schema.setup_consumers set enabled = 'YES'; +insert into test1.t2 select * from test.t1; +insert into marker set a = 1; +select * from test.t1 natural join test1.t2; +col1 col2 +1 One +insert into marker set a = 1; +select * from test.t1 where col2 = (select col2 from test1.t2 where test.t1.col1 = test1.t2.col1); +col1 col2 +1 One +insert into marker set a = 1; +update test.t1 AS a natural join test1.t2 AS b SET a.col2 = 'updated' , b.col2 = 'updated'; +insert into marker set a = 1; +delete from test.t1, test1.t2 using test.t1 inner join test1.t2 +where test.t1.col1 = test1.t2.col1; +update performance_schema.setup_consumers set enabled='NO'; +select event_name, +left(source, locate(":", source)) as short_source, +object_type, object_schema, +if (locate("#sql-", object_name), "#sql-XXXX", object_name) +as pretty_name, +operation, number_of_bytes +from performance_schema.events_waits_history_long +where event_name like 'wait/io/table/%' + and object_schema in ('test','test1') +order by thread_id, event_id; +event_name short_source object_type object_schema pretty_name operation number_of_bytes +wait/io/table/sql/handler TABLE test t1 fetch 1 +wait/io/table/sql/handler TABLE test1 t2 insert 1 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test t1 fetch 1 +wait/io/table/sql/handler TABLE test1 t2 fetch 1 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test t1 fetch 1 +wait/io/table/sql/handler TABLE test1 t2 fetch 1 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test t1 fetch 1 +wait/io/table/sql/handler TABLE test1 t2 fetch 1 +wait/io/table/sql/handler TABLE test t1 update 1 +wait/io/table/sql/handler TABLE test1 t2 fetch 1 +wait/io/table/sql/handler TABLE test1 t2 update 1 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test t1 fetch 1 +wait/io/table/sql/handler TABLE test1 t2 fetch 1 +wait/io/table/sql/handler TABLE test t1 delete 1 +wait/io/table/sql/handler TABLE test1 t2 fetch 1 +wait/io/table/sql/handler TABLE test1 t2 delete 1 +show global status like 'performance_schema_%'; +Variable_name Value +Performance_schema_accounts_lost 0 +Performance_schema_cond_classes_lost 0 +Performance_schema_cond_instances_lost 0 +Performance_schema_digest_lost 0 +Performance_schema_file_classes_lost 0 +Performance_schema_file_handles_lost 0 +Performance_schema_file_instances_lost 0 +Performance_schema_hosts_lost 0 +Performance_schema_index_stat_lost 0 +Performance_schema_locker_lost 0 +Performance_schema_memory_classes_lost 0 +Performance_schema_metadata_lock_lost 0 +Performance_schema_mutex_classes_lost 0 +Performance_schema_mutex_instances_lost 0 +Performance_schema_nested_statement_lost 0 +Performance_schema_prepared_statements_lost 0 +Performance_schema_program_lost 0 +Performance_schema_rwlock_classes_lost 0 +Performance_schema_rwlock_instances_lost 0 +Performance_schema_session_connect_attrs_lost 0 +Performance_schema_socket_classes_lost 0 +Performance_schema_socket_instances_lost 0 +Performance_schema_stage_classes_lost 0 +Performance_schema_statement_classes_lost 0 +Performance_schema_table_handles_lost 0 +Performance_schema_table_instances_lost 0 +Performance_schema_table_lock_stat_lost 0 +Performance_schema_thread_classes_lost 0 +Performance_schema_thread_instances_lost 0 +Performance_schema_users_lost 0 +truncate performance_schema.events_waits_history_long; +flush status; +drop table test.t1; +drop schema test1; +update performance_schema.setup_consumers set enabled='NO'; +truncate performance_schema.events_waits_history_long; +drop table test.marker; +flush status; +update performance_schema.setup_instruments set enabled='YES'; +update performance_schema.setup_consumers set enabled='YES'; diff --git a/mysql-test/suite/perfschema/r/myisam_file_io.result b/mysql-test/suite/perfschema/r/myisam_file_io.result new file mode 100644 index 00000000..ec03a16e --- /dev/null +++ b/mysql-test/suite/perfschema/r/myisam_file_io.result @@ -0,0 +1,79 @@ +update performance_schema.setup_instruments set enabled='NO'; +update performance_schema.setup_instruments set enabled='YES' + where name like "wait/io/file/myisam/%"; +update performance_schema.setup_consumers +set enabled='YES'; +truncate table performance_schema.events_waits_history_long; +truncate table performance_schema.events_statements_summary_by_digest; +flush status; +drop table if exists test.no_index_tab; +create table test.no_index_tab ( a varchar(255), b int ) engine=myisam; +insert into no_index_tab set a = 'foo', b = 1; +insert into no_index_tab set a = 'foo', b = 1; +insert into no_index_tab set a = 'foo', b = 1; +select event_name, +left(source, locate(":", source)) as short_source, +operation, number_of_bytes, +substring(object_name, locate("no_index_tab", object_name)) as short_name +from performance_schema.events_waits_history_long +where operation not like "tell" + and event_name like "wait/io/file/myisam/%" + having short_name <> "" + order by thread_id, event_id; +event_name short_source operation number_of_bytes short_name +wait/io/file/myisam/kfile create NULL no_index_tab.MYI +wait/io/file/myisam/dfile create NULL no_index_tab.MYD +wait/io/file/myisam/kfile write 176 no_index_tab.MYI +wait/io/file/myisam/kfile write 100 no_index_tab.MYI +wait/io/file/myisam/kfile write 7 no_index_tab.MYI +wait/io/file/myisam/kfile write 7 no_index_tab.MYI +wait/io/file/myisam/kfile write 7 no_index_tab.MYI +wait/io/file/myisam/kfile chsize 1024 no_index_tab.MYI +wait/io/file/myisam/dfile close NULL no_index_tab.MYD +wait/io/file/myisam/kfile close NULL no_index_tab.MYI +wait/io/file/myisam/kfile open NULL no_index_tab.MYI +wait/io/file/myisam/kfile read 24 no_index_tab.MYI +wait/io/file/myisam/kfile seek NULL no_index_tab.MYI +wait/io/file/myisam/kfile read 297 no_index_tab.MYI +wait/io/file/myisam/dfile open NULL no_index_tab.MYD +wait/io/file/myisam/kfile write 3 no_index_tab.MYI +wait/io/file/myisam/dfile write 20 no_index_tab.MYD +wait/io/file/myisam/kfile write 124 no_index_tab.MYI +wait/io/file/myisam/dfile write 20 no_index_tab.MYD +wait/io/file/myisam/kfile write 124 no_index_tab.MYI +wait/io/file/myisam/dfile write 20 no_index_tab.MYD +wait/io/file/myisam/kfile write 124 no_index_tab.MYI +show global status like 'performance_schema_%'; +Variable_name Value +Performance_schema_accounts_lost 0 +Performance_schema_cond_classes_lost 0 +Performance_schema_cond_instances_lost 0 +Performance_schema_digest_lost 0 +Performance_schema_file_classes_lost 0 +Performance_schema_file_handles_lost 0 +Performance_schema_file_instances_lost 0 +Performance_schema_hosts_lost 0 +Performance_schema_index_stat_lost 0 +Performance_schema_locker_lost 0 +Performance_schema_memory_classes_lost 0 +Performance_schema_metadata_lock_lost 0 +Performance_schema_mutex_classes_lost 0 +Performance_schema_mutex_instances_lost 0 +Performance_schema_nested_statement_lost 0 +Performance_schema_prepared_statements_lost 0 +Performance_schema_program_lost 0 +Performance_schema_rwlock_classes_lost 0 +Performance_schema_rwlock_instances_lost 0 +Performance_schema_session_connect_attrs_lost 0 +Performance_schema_socket_classes_lost 0 +Performance_schema_socket_instances_lost 0 +Performance_schema_stage_classes_lost 0 +Performance_schema_statement_classes_lost 0 +Performance_schema_table_handles_lost 0 +Performance_schema_table_instances_lost 0 +Performance_schema_table_lock_stat_lost 0 +Performance_schema_thread_classes_lost 0 +Performance_schema_thread_instances_lost 0 +Performance_schema_users_lost 0 +update performance_schema.setup_instruments set enabled='YES'; +drop table test.no_index_tab; diff --git a/mysql-test/suite/perfschema/r/myisam_table_io.result b/mysql-test/suite/perfschema/r/myisam_table_io.result new file mode 100644 index 00000000..574bd47e --- /dev/null +++ b/mysql-test/suite/perfschema/r/myisam_table_io.result @@ -0,0 +1,145 @@ +drop table if exists test.marker; +create table test.marker(a int); +update performance_schema.setup_consumers set enabled='NO'; +update performance_schema.setup_instruments set enabled='NO'; +update performance_schema.setup_instruments set enabled='YES' + where name like "wait/io/table/%"; +truncate table performance_schema.events_waits_history_long; +flush status; +flush tables; +drop table if exists test.no_index_tab; +update performance_schema.setup_consumers set enabled='YES'; +insert into marker set a = 1; +create table test.no_index_tab +( a varchar(255) not null, b int not null) engine = MyISAM; +insert into marker set a = 1; +show create table test.no_index_tab; +Table Create Table +no_index_tab CREATE TABLE `no_index_tab` ( + `a` varchar(255) NOT NULL, + `b` int(11) NOT NULL +) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci +insert into marker set a = 1; +insert into test.no_index_tab set a = 'foo', b = 1; +insert into marker set a = 1; +insert into test.no_index_tab set a = 'foo', b = 2; +insert into marker set a = 1; +insert into test.no_index_tab set a = 'foo', b = 3; +insert into marker set a = 1; +select * from test.no_index_tab; +a b +foo 1 +foo 2 +foo 3 +insert into marker set a = 1; +update test.no_index_tab set a = 'bar'; +insert into marker set a = 1; +select * from test.no_index_tab limit 2; +a b +bar 1 +bar 2 +insert into marker set a = 1; +delete from test.no_index_tab where b = 3; +insert into marker set a = 1; +select * from test.no_index_tab; +a b +bar 1 +bar 2 +insert into marker set a = 1; +optimize table test.no_index_tab; +Table Op Msg_type Msg_text +test.no_index_tab optimize status OK +insert into marker set a = 1; +select * from test.no_index_tab; +a b +bar 1 +bar 2 +insert into marker set a = 1; +truncate table test.no_index_tab; +insert into marker set a = 1; +drop table test.no_index_tab; +update performance_schema.setup_consumers set enabled='NO'; +select event_name, +left(source, locate(":", source)) as short_source, +object_type, object_schema, +if (locate("#sql-", object_name), "#sql-XXXX", object_name) +as pretty_name, +operation, number_of_bytes +from performance_schema.events_waits_history_long +where event_name like 'wait/io/table/%' + and object_schema in ("test") +order by thread_id, event_id; +event_name short_source object_type object_schema pretty_name operation number_of_bytes +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test no_index_tab insert 1 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test no_index_tab insert 1 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test no_index_tab insert 1 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 3 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 1 +wait/io/table/sql/handler TABLE test no_index_tab update 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 1 +wait/io/table/sql/handler TABLE test no_index_tab update 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 1 +wait/io/table/sql/handler TABLE test no_index_tab update 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 1 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 2 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 1 +wait/io/table/sql/handler TABLE test no_index_tab delete 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 1 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 2 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 2 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test marker insert 1 +show global status like 'performance_schema_%'; +Variable_name Value +Performance_schema_accounts_lost 0 +Performance_schema_cond_classes_lost 0 +Performance_schema_cond_instances_lost 0 +Performance_schema_digest_lost 0 +Performance_schema_file_classes_lost 0 +Performance_schema_file_handles_lost 0 +Performance_schema_file_instances_lost 0 +Performance_schema_hosts_lost 0 +Performance_schema_index_stat_lost 0 +Performance_schema_locker_lost 0 +Performance_schema_memory_classes_lost 0 +Performance_schema_metadata_lock_lost 0 +Performance_schema_mutex_classes_lost 0 +Performance_schema_mutex_instances_lost 0 +Performance_schema_nested_statement_lost 0 +Performance_schema_prepared_statements_lost 0 +Performance_schema_program_lost 0 +Performance_schema_rwlock_classes_lost 0 +Performance_schema_rwlock_instances_lost 0 +Performance_schema_session_connect_attrs_lost 0 +Performance_schema_socket_classes_lost 0 +Performance_schema_socket_instances_lost 0 +Performance_schema_stage_classes_lost 0 +Performance_schema_statement_classes_lost 0 +Performance_schema_table_handles_lost 0 +Performance_schema_table_instances_lost 0 +Performance_schema_table_lock_stat_lost 0 +Performance_schema_thread_classes_lost 0 +Performance_schema_thread_instances_lost 0 +Performance_schema_users_lost 0 +truncate performance_schema.events_waits_history_long; +flush status; +update performance_schema.setup_consumers set enabled='NO'; +truncate performance_schema.events_waits_history_long; +drop table test.marker; +flush status; +update performance_schema.setup_instruments set enabled='YES'; +update performance_schema.setup_consumers set enabled='YES'; diff --git a/mysql-test/suite/perfschema/r/nesting.result b/mysql-test/suite/perfschema/r/nesting.result new file mode 100644 index 00000000..9e18e5ac --- /dev/null +++ b/mysql-test/suite/perfschema/r/nesting.result @@ -0,0 +1,274 @@ +connect con1, localhost, user1, , ; +select "MARKER_BEGIN" as marker; +marker +MARKER_BEGIN +select "This is simple statement one" as payload; +payload +This is simple statement one +select "This is simple statement two" as payload; +payload +This is simple statement two +select "This is the first part of a multi query" as payload; +select "And this is the second part of a multi query" as payload; +select "With a third part to make things complete" as payload; +$$ +payload +This is the first part of a multi query +payload +And this is the second part of a multi query +payload +With a third part to make things complete +select "MARKER_END" as marker; +marker +MARKER_END +select "Con1 is done with payload" as status; +status +Con1 is done with payload +connection default; +set @con1_tid = (select thread_id from performance_schema.threads +where processlist_user = 'user1'); +select (@con1_tid is not null) as expected; +expected +1 +set @marker_begin = (select event_id from performance_schema.events_statements_history_long +where sql_text like "%MARKER_BEGIN%" and thread_id = @con1_tid); +select (@marker_begin is not null) as expected; +expected +1 +set @marker_end = (select end_event_id from performance_schema.events_statements_history_long +where sql_text like "%MARKER_END%" and thread_id = @con1_tid); +select (@marker_end is not null) as expected; +expected +1 +show global status like "performance_schema%"; +Variable_name Value +Performance_schema_accounts_lost 0 +Performance_schema_cond_classes_lost 0 +Performance_schema_cond_instances_lost 0 +Performance_schema_digest_lost 0 +Performance_schema_file_classes_lost 0 +Performance_schema_file_handles_lost 0 +Performance_schema_file_instances_lost 0 +Performance_schema_hosts_lost 0 +Performance_schema_index_stat_lost 0 +Performance_schema_locker_lost 0 +Performance_schema_memory_classes_lost 0 +Performance_schema_metadata_lock_lost 0 +Performance_schema_mutex_classes_lost 0 +Performance_schema_mutex_instances_lost 0 +Performance_schema_nested_statement_lost 0 +Performance_schema_prepared_statements_lost 0 +Performance_schema_program_lost 0 +Performance_schema_rwlock_classes_lost 0 +Performance_schema_rwlock_instances_lost 0 +Performance_schema_session_connect_attrs_lost 0 +Performance_schema_socket_classes_lost 0 +Performance_schema_socket_instances_lost 0 +Performance_schema_stage_classes_lost 0 +Performance_schema_statement_classes_lost 0 +Performance_schema_table_handles_lost 0 +Performance_schema_table_instances_lost 0 +Performance_schema_table_lock_stat_lost 0 +Performance_schema_thread_classes_lost 0 +Performance_schema_thread_instances_lost 0 +Performance_schema_users_lost 0 +select * from ( +( +select (event_id - @marker_begin) as relative_event_id, +(end_event_id - @marker_begin) as relative_end_event_id, +event_name, +sql_text as comment, +nesting_event_type, +(nesting_event_id - @marker_begin) as relative_nesting_event_id +from performance_schema.events_statements_history_long +where (thread_id = @con1_tid) +and (@marker_begin <= event_id) +and (end_event_id <= @marker_end) +) +union +( +select (event_id - @marker_begin) as relative_event_id, +(end_event_id - @marker_begin) as relative_end_event_id, +event_name, +"(stage)" as comment, +nesting_event_type, +(nesting_event_id - @marker_begin) as relative_nesting_event_id +from performance_schema.events_stages_history_long +where (thread_id = @con1_tid) +and (@marker_begin <= event_id) +and (end_event_id <= @marker_end) +) +union +( +select (event_id - @marker_begin) as relative_event_id, +(end_event_id - @marker_begin) as relative_end_event_id, +event_name, +operation as comment, +nesting_event_type, +(nesting_event_id - @marker_begin) as relative_nesting_event_id +from performance_schema.events_waits_history_long +where (thread_id = @con1_tid) +and (@marker_begin <= event_id) +and (end_event_id <= @marker_end) +) +) all_events +order by relative_event_id asc; +relative_event_id relative_end_event_id event_name comment nesting_event_type relative_nesting_event_id +0 21 statement/sql/select select "MARKER_BEGIN" as marker NULL NULL +1 5 stage/sql/starting (stage) STATEMENT 0 +2 2 wait/io/socket/sql/client_connection recv STAGE 1 +3 3 wait/synch/mutex/sql/THD::LOCK_thd_data lock STAGE 1 +4 4 wait/synch/mutex/sql/THD::LOCK_thd_data lock STAGE 1 +5 5 wait/io/file/sql/query_log write STAGE 1 +6 6 stage/sql/checking permissions (stage) STATEMENT 0 +7 7 stage/sql/Opening tables (stage) STATEMENT 0 +8 8 stage/sql/After opening tables (stage) STATEMENT 0 +9 9 stage/sql/init (stage) STATEMENT 0 +10 10 stage/sql/Optimizing (stage) STATEMENT 0 +11 11 stage/sql/Executing (stage) STATEMENT 0 +12 12 stage/sql/End of update loop (stage) STATEMENT 0 +13 13 stage/sql/Query end (stage) STATEMENT 0 +14 15 stage/sql/Commit (stage) STATEMENT 0 +15 15 wait/synch/mutex/sql/THD::LOCK_thd_kill lock STAGE 14 +16 16 stage/sql/closing tables (stage) STATEMENT 0 +17 17 stage/sql/Starting cleanup (stage) STATEMENT 0 +18 18 stage/sql/Freeing items (stage) STATEMENT 0 +19 19 wait/io/socket/sql/client_connection send STATEMENT 0 +20 21 stage/sql/Reset for next command (stage) STATEMENT 0 +21 21 wait/synch/mutex/sql/THD::LOCK_thd_data lock STAGE 20 +22 22 wait/synch/mutex/sql/THD::LOCK_thd_data lock STATEMENT 0 +23 23 idle idle NULL NULL +24 45 statement/sql/select select "This is simple statement one" as payload NULL NULL +25 29 stage/sql/starting (stage) STATEMENT 24 +26 26 wait/io/socket/sql/client_connection recv STAGE 25 +27 27 wait/synch/mutex/sql/THD::LOCK_thd_data lock STAGE 25 +28 28 wait/synch/mutex/sql/THD::LOCK_thd_data lock STAGE 25 +29 29 wait/io/file/sql/query_log write STAGE 25 +30 30 stage/sql/checking permissions (stage) STATEMENT 24 +31 31 stage/sql/Opening tables (stage) STATEMENT 24 +32 32 stage/sql/After opening tables (stage) STATEMENT 24 +33 33 stage/sql/init (stage) STATEMENT 24 +34 34 stage/sql/Optimizing (stage) STATEMENT 24 +35 35 stage/sql/Executing (stage) STATEMENT 24 +36 36 stage/sql/End of update loop (stage) STATEMENT 24 +37 37 stage/sql/Query end (stage) STATEMENT 24 +38 39 stage/sql/Commit (stage) STATEMENT 24 +39 39 wait/synch/mutex/sql/THD::LOCK_thd_kill lock STAGE 38 +40 40 stage/sql/closing tables (stage) STATEMENT 24 +41 41 stage/sql/Starting cleanup (stage) STATEMENT 24 +42 42 stage/sql/Freeing items (stage) STATEMENT 24 +43 43 wait/io/socket/sql/client_connection send STATEMENT 24 +44 45 stage/sql/Reset for next command (stage) STATEMENT 24 +45 45 wait/synch/mutex/sql/THD::LOCK_thd_data lock STAGE 44 +46 46 wait/synch/mutex/sql/THD::LOCK_thd_data lock STATEMENT 24 +47 47 idle idle NULL NULL +48 69 statement/sql/select select "This is simple statement two" as payload NULL NULL +49 53 stage/sql/starting (stage) STATEMENT 48 +50 50 wait/io/socket/sql/client_connection recv STAGE 49 +51 51 wait/synch/mutex/sql/THD::LOCK_thd_data lock STAGE 49 +52 52 wait/synch/mutex/sql/THD::LOCK_thd_data lock STAGE 49 +53 53 wait/io/file/sql/query_log write STAGE 49 +54 54 stage/sql/checking permissions (stage) STATEMENT 48 +55 55 stage/sql/Opening tables (stage) STATEMENT 48 +56 56 stage/sql/After opening tables (stage) STATEMENT 48 +57 57 stage/sql/init (stage) STATEMENT 48 +58 58 stage/sql/Optimizing (stage) STATEMENT 48 +59 59 stage/sql/Executing (stage) STATEMENT 48 +60 60 stage/sql/End of update loop (stage) STATEMENT 48 +61 61 stage/sql/Query end (stage) STATEMENT 48 +62 63 stage/sql/Commit (stage) STATEMENT 48 +63 63 wait/synch/mutex/sql/THD::LOCK_thd_kill lock STAGE 62 +64 64 stage/sql/closing tables (stage) STATEMENT 48 +65 65 stage/sql/Starting cleanup (stage) STATEMENT 48 +66 66 stage/sql/Freeing items (stage) STATEMENT 48 +67 67 wait/io/socket/sql/client_connection send STATEMENT 48 +68 69 stage/sql/Reset for next command (stage) STATEMENT 48 +69 69 wait/synch/mutex/sql/THD::LOCK_thd_data lock STAGE 68 +70 70 wait/synch/mutex/sql/THD::LOCK_thd_data lock STATEMENT 48 +71 71 idle idle NULL NULL +72 92 statement/sql/select select "This is the first part of a multi query" as payload; +select "And this is the second part of a multi query" as payload; +select "With a third part to make things complete" as payload NULL NULL +73 78 stage/sql/starting (stage) STATEMENT 72 +74 74 wait/io/socket/sql/client_connection recv STAGE 73 +75 75 wait/synch/mutex/sql/THD::LOCK_thd_data lock STAGE 73 +76 76 wait/synch/mutex/sql/THD::LOCK_thd_data lock STAGE 73 +77 77 wait/io/file/sql/query_log write STAGE 73 +78 78 wait/synch/mutex/sql/THD::LOCK_thd_data lock STAGE 73 +79 79 stage/sql/checking permissions (stage) STATEMENT 72 +80 80 stage/sql/Opening tables (stage) STATEMENT 72 +81 81 stage/sql/After opening tables (stage) STATEMENT 72 +82 82 stage/sql/init (stage) STATEMENT 72 +83 83 stage/sql/Optimizing (stage) STATEMENT 72 +84 84 stage/sql/Executing (stage) STATEMENT 72 +85 85 stage/sql/End of update loop (stage) STATEMENT 72 +86 86 stage/sql/Query end (stage) STATEMENT 72 +87 88 stage/sql/Commit (stage) STATEMENT 72 +88 88 wait/synch/mutex/sql/THD::LOCK_thd_kill lock STAGE 87 +89 89 stage/sql/closing tables (stage) STATEMENT 72 +90 90 stage/sql/Starting cleanup (stage) STATEMENT 72 +91 92 stage/sql/Freeing items (stage) STATEMENT 72 +92 92 wait/io/socket/sql/client_connection send STAGE 91 +93 110 statement/sql/select select "And this is the second part of a multi query" as payload; +select "With a third part to make things complete" as payload NULL NULL +94 96 stage/sql/starting (stage) STATEMENT 93 +95 95 wait/synch/mutex/sql/THD::LOCK_thd_data lock STAGE 94 +96 96 wait/synch/mutex/sql/THD::LOCK_thd_data lock STAGE 94 +97 97 stage/sql/checking permissions (stage) STATEMENT 93 +98 98 stage/sql/Opening tables (stage) STATEMENT 93 +99 99 stage/sql/After opening tables (stage) STATEMENT 93 +100 100 stage/sql/init (stage) STATEMENT 93 +101 101 stage/sql/Optimizing (stage) STATEMENT 93 +102 102 stage/sql/Executing (stage) STATEMENT 93 +103 103 stage/sql/End of update loop (stage) STATEMENT 93 +104 104 stage/sql/Query end (stage) STATEMENT 93 +105 106 stage/sql/Commit (stage) STATEMENT 93 +106 106 wait/synch/mutex/sql/THD::LOCK_thd_kill lock STAGE 105 +107 107 stage/sql/closing tables (stage) STATEMENT 93 +108 108 stage/sql/Starting cleanup (stage) STATEMENT 93 +109 110 stage/sql/Freeing items (stage) STATEMENT 93 +110 110 wait/io/socket/sql/client_connection send STAGE 109 +111 129 statement/sql/select select "With a third part to make things complete" as payload NULL NULL +112 113 stage/sql/starting (stage) STATEMENT 111 +113 113 wait/synch/mutex/sql/THD::LOCK_thd_data lock STAGE 112 +114 114 stage/sql/checking permissions (stage) STATEMENT 111 +115 115 stage/sql/Opening tables (stage) STATEMENT 111 +116 116 stage/sql/After opening tables (stage) STATEMENT 111 +117 117 stage/sql/init (stage) STATEMENT 111 +118 118 stage/sql/Optimizing (stage) STATEMENT 111 +119 119 stage/sql/Executing (stage) STATEMENT 111 +120 120 stage/sql/End of update loop (stage) STATEMENT 111 +121 121 stage/sql/Query end (stage) STATEMENT 111 +122 123 stage/sql/Commit (stage) STATEMENT 111 +123 123 wait/synch/mutex/sql/THD::LOCK_thd_kill lock STAGE 122 +124 124 stage/sql/closing tables (stage) STATEMENT 111 +125 125 stage/sql/Starting cleanup (stage) STATEMENT 111 +126 126 stage/sql/Freeing items (stage) STATEMENT 111 +127 127 wait/io/socket/sql/client_connection send STATEMENT 111 +128 129 stage/sql/Reset for next command (stage) STATEMENT 111 +129 129 wait/synch/mutex/sql/THD::LOCK_thd_data lock STAGE 128 +130 130 wait/synch/mutex/sql/THD::LOCK_thd_data lock STATEMENT 111 +131 131 idle idle NULL NULL +132 153 statement/sql/select select "MARKER_END" as marker NULL NULL +133 137 stage/sql/starting (stage) STATEMENT 132 +134 134 wait/io/socket/sql/client_connection recv STAGE 133 +135 135 wait/synch/mutex/sql/THD::LOCK_thd_data lock STAGE 133 +136 136 wait/synch/mutex/sql/THD::LOCK_thd_data lock STAGE 133 +137 137 wait/io/file/sql/query_log write STAGE 133 +138 138 stage/sql/checking permissions (stage) STATEMENT 132 +139 139 stage/sql/Opening tables (stage) STATEMENT 132 +140 140 stage/sql/After opening tables (stage) STATEMENT 132 +141 141 stage/sql/init (stage) STATEMENT 132 +142 142 stage/sql/Optimizing (stage) STATEMENT 132 +143 143 stage/sql/Executing (stage) STATEMENT 132 +144 144 stage/sql/End of update loop (stage) STATEMENT 132 +145 145 stage/sql/Query end (stage) STATEMENT 132 +146 147 stage/sql/Commit (stage) STATEMENT 132 +147 147 wait/synch/mutex/sql/THD::LOCK_thd_kill lock STAGE 146 +148 148 stage/sql/closing tables (stage) STATEMENT 132 +149 149 stage/sql/Starting cleanup (stage) STATEMENT 132 +150 150 stage/sql/Freeing items (stage) STATEMENT 132 +151 151 wait/io/socket/sql/client_connection send STATEMENT 132 +152 153 stage/sql/Reset for next command (stage) STATEMENT 132 +153 153 wait/synch/mutex/sql/THD::LOCK_thd_data lock STAGE 152 +disconnect con1; diff --git a/mysql-test/suite/perfschema/r/no_threads.result b/mysql-test/suite/perfschema/r/no_threads.result new file mode 100644 index 00000000..21991b15 --- /dev/null +++ b/mysql-test/suite/perfschema/r/no_threads.result @@ -0,0 +1,47 @@ +update performance_schema.setup_instruments set enabled='NO'; +update performance_schema.setup_consumers set enabled='YES'; +update performance_schema.setup_instruments set enabled='YES' + where name like "wait/synch/mutex/mysys/THR_LOCK_myisam"; +drop table if exists test.t1; +truncate table performance_schema.events_waits_current; +truncate table performance_schema.events_waits_history; +truncate table performance_schema.events_waits_history_long; +show global variables like "thread_handling"; +Variable_name Value +thread_handling no-threads +show status like "Performance_schema_thread_instances_lost"; +Variable_name Value +Performance_schema_thread_instances_lost 0 +create table test.t1(a int) engine=MYISAM; +show global variables like "performance_schema"; +Variable_name Value +performance_schema ON +show global variables like "performance_schema_max_thread%"; +Variable_name Value +performance_schema_max_thread_classes 50 +performance_schema_max_thread_instances 50 +select count(*) from performance_schema.threads +where name like "thread/sql/main"; +count(*) +1 +select count(*) from performance_schema.threads +where name like "thread/sql/OneConnection"; +count(*) +0 +select event_name, operation, +left(source, locate(":", source)) as short_source +from performance_schema.events_waits_current; +event_name operation short_source +wait/synch/mutex/mysys/THR_LOCK_myisam lock +select event_name, operation, +left(source, locate(":", source)) as short_source +from performance_schema.events_waits_history; +event_name operation short_source +wait/synch/mutex/mysys/THR_LOCK_myisam lock +select event_name, operation, +left(source, locate(":", source)) as short_source +from performance_schema.events_waits_history_long; +event_name operation short_source +wait/synch/mutex/mysys/THR_LOCK_myisam lock +update performance_schema.setup_instruments set enabled='YES'; +drop table test.t1; diff --git a/mysql-test/suite/perfschema/r/one_thread_per_con.result b/mysql-test/suite/perfschema/r/one_thread_per_con.result new file mode 100644 index 00000000..649243db --- /dev/null +++ b/mysql-test/suite/perfschema/r/one_thread_per_con.result @@ -0,0 +1,49 @@ +connect con1, localhost, root, , ; +connect con2, localhost, root, , ; +connect con3, localhost, root, , ; +connection default; +update performance_schema.setup_instruments set enabled='YES' + where name like "wait/synch/mutex/mysys/THR_LOCK_myisam"; +drop table if exists test.t1; +drop table if exists test.t2; +drop table if exists test.t3; +truncate table performance_schema.events_waits_history_long; +show global variables like "thread_handling"; +Variable_name Value +thread_handling one-thread-per-connection +connection con1; +create table test.t1(a int) engine=MYISAM; +connection con2; +create table test.t2(a int) engine=MYISAM; +connection con3; +create table test.t3(a int) engine=MYISAM; +connection default; +execute stmt_dump_events using @tid; +event_name short_source operation number_of_bytes +wait/synch/mutex/mysys/THR_LOCK_myisam lock NULL +execute stmt_dump_thread using @tid; +name +thread/sql/one_connection +execute stmt_dump_events using @tid; +event_name short_source operation number_of_bytes +wait/synch/mutex/mysys/THR_LOCK_myisam lock NULL +execute stmt_dump_thread using @tid; +name +thread/sql/one_connection +execute stmt_dump_events using @tid; +event_name short_source operation number_of_bytes +wait/synch/mutex/mysys/THR_LOCK_myisam lock NULL +execute stmt_dump_thread using @tid; +name +thread/sql/one_connection +drop table test.t1; +drop table test.t2; +drop table test.t3; +update performance_schema.setup_instruments set enabled='YES'; +connection con1; +disconnect con1; +connection con2; +disconnect con2; +connection con3; +disconnect con3; +connection default; diff --git a/mysql-test/suite/perfschema/r/ortho_iter.result b/mysql-test/suite/perfschema/r/ortho_iter.result new file mode 100644 index 00000000..9489c104 --- /dev/null +++ b/mysql-test/suite/perfschema/r/ortho_iter.result @@ -0,0 +1,1508 @@ +drop procedure if exists check_instrument; +truncate table performance_schema.events_statements_summary_by_digest; +flush status; +create procedure check_instrument(in instr_name varchar(128)) +begin +declare save_count_expected integer; +declare count_expected integer; +declare count_builtin_expected integer; +declare count_global_expected integer; +declare is_wait integer; +declare is_wait_file integer; +declare is_wait_socket integer; +declare is_stage integer; +declare is_statement integer; +declare is_transaction integer; +declare is_memory integer; +declare is_wait_table integer; +declare is_wait_file_table integer; +declare is_wait_socket_table integer; +declare is_stage_table integer; +declare is_statement_table integer; +declare is_transaction_table integer; +declare is_memory_table integer; +declare is_memory_global_table integer; +declare pfs_table_name varchar(64); +declare msg varchar(512); +declare msg_detail varchar(512); +declare cmd_1 varchar(512); +declare cmd_2 varchar(512); +declare done integer default 0; +declare debug integer default 0; +declare pfs_cursor CURSOR FOR +select table_name from information_schema.tables +where table_schema= 'performance_schema' + and table_name like "%_by_event_name%" + order by table_name; +declare continue handler for sqlstate '02000' + set done = 1; +select (instr_name like "wait/%") or (instr_name like "idle") into is_wait; +select (instr_name like "wait/io/file/%") into is_wait_file; +select (instr_name like "wait/io/socket/%") into is_wait_socket; +select (instr_name like "stage/%") into is_stage; +select (instr_name like "statement/%") into is_statement; +select (instr_name like "memory/%") into is_memory; +select (instr_name like "transaction") into is_transaction; +select instr_name, is_wait, is_wait_file, is_wait_socket, is_stage, is_statement, is_memory, is_transaction; +select count(name) +from performance_schema.setup_instruments +where (name like (concat(instr_name, "%"))) +and (not name like "%/abstract/%") +and (not name like "memory/performance_schema/%") +into save_count_expected; +select count(name) +from performance_schema.setup_instruments +where (name like (concat(instr_name, "%"))) +and (name like "memory/performance_schema/%") +into count_builtin_expected; +select count(name) +from performance_schema.setup_instruments +where (name like (concat(instr_name, "%"))) +and (name in ( +"memory/sql/buffered_logs", +"memory/sql/sql_acl_mem", +"memory/sql/sql_acl_memex", +"memory/sql/acl_cache", +"memory/sql/TABLE_SHARE::mem_root", +"memory/sql/TABLE", +"memory/sql/Query_cache", +"memory/sql/native_functions", +"memory/sql/Event_basic::mem_root", +"memory/sql/root", +"memory/sql/load_env_plugins", +"memory/sql/plugin_ref", +"memory/sql/plugin_mem_root", +"memory/sql/plugin_bookmark", +"memory/csv/TINA_SHARE", +"memory/sql/tz_storage", +"memory/sql/servers_cache", +"memory/sql/udf_mem" + )) +into count_global_expected; +set cmd_1= "select count(*) from (select distinct event_name from performance_schema."; +set cmd_2= concat(" where event_name like \"", + instr_name, + "%\") t into @count_actual"); +open pfs_cursor; +repeat +fetch pfs_cursor into pfs_table_name; +if not done then +select (pfs_table_name like "%waits%") into is_wait_table; +select (pfs_table_name like "file_summary%") into is_wait_file_table; +select (pfs_table_name like "socket_summary%") into is_wait_socket_table; +select (pfs_table_name like "%stages%") into is_stage_table; +select (pfs_table_name like "%statements%") into is_statement_table; +select (pfs_table_name like "%memory%") into is_memory_table; +select (pfs_table_name like "memory_summary_global_by_event_name") into is_memory_global_table; +select (pfs_table_name like "%transaction%") into is_transaction_table; +set count_expected = save_count_expected; +if is_memory_global_table +then +set count_expected = save_count_expected + count_builtin_expected; +end if; +if is_memory_table = 1 and is_memory_global_table = 0 +then +set count_expected = save_count_expected - count_global_expected; +end if; +select concat("Checking table ", pfs_table_name, " ...") as status; +select concat(cmd_1, pfs_table_name, cmd_2) into @cmd; +if debug = 1 +then +select @cmd; +end if; +prepare stmt from @cmd; +execute stmt; +drop prepare stmt; +set msg_detail= concat("table ", pfs_table_name, +", instruments ", count_expected, +", found ", @count_actual); +if is_wait = 1 +then +if is_wait_table = 1 and @count_actual <> count_expected +then +set msg= concat("Missing wait events: ", msg_detail); +signal sqlstate '05000' set message_text= msg; +end if; +if is_wait_table = 0 +and is_wait_file_table = 0 +and is_wait_socket_table = 0 +and @count_actual <> 0 +then +set msg= concat("Unexpected wait events: ", msg_detail); +signal sqlstate '05000' set message_text= msg; +end if; +end if; +if is_wait_file = 1 +then +if is_wait_file_table = 1 and @count_actual <> count_expected +then +set msg= concat("Missing wait/io/file events: ", msg_detail); +signal sqlstate '05000' set message_text= msg; +end if; +if is_wait_table = 0 and is_wait_file_table = 0 and @count_actual <> 0 +then +set msg= concat("Unexpected wait/io/file events: ", msg_detail); +signal sqlstate '05000' set message_text= msg; +end if; +end if; +if is_wait_socket = 1 +then +if is_wait_socket_table = 1 and @count_actual <> count_expected +then +set msg= concat("Missing wait/io/socket events: ", msg_detail); +signal sqlstate '05000' set message_text= msg; +end if; +if is_wait_table = 0 and is_wait_socket_table = 0 and @count_actual <> 0 +then +set msg= concat("Unexpected wait/io/socket events: ", msg_detail); +signal sqlstate '05000' set message_text= msg; +end if; +end if; +if is_stage = 1 +then +if is_stage_table = 1 and @count_actual <> count_expected +then +set msg= concat("Missing stage events: ", msg_detail); +signal sqlstate '05000' set message_text= msg; +end if; +if is_stage_table = 0 and @count_actual <> 0 +then +set msg= concat("Unexpected stage events: ", msg_detail); +signal sqlstate '05000' set message_text= msg; +end if; +end if; +if is_statement = 1 +then +if is_statement_table = 1 and @count_actual <> count_expected +then +set msg= concat("Missing statement events: ", msg_detail); +signal sqlstate '05000' set message_text= msg; +end if; +if is_statement_table = 0 and @count_actual <> 0 +then +set msg= concat("Unexpected statement events: ", msg_detail); +signal sqlstate '05000' set message_text= msg; +end if; +end if; +if is_memory = 1 +then +if is_memory_table = 1 and @count_actual <> count_expected +then +set msg= concat("Missing memory events: ", msg_detail); +signal sqlstate '05000' set message_text= msg; +end if; +if is_memory_table = 0 and @count_actual <> 0 +then +set msg= concat("Unexpected memory events: ", msg_detail); +signal sqlstate '05000' set message_text= msg; +end if; +end if; +if is_transaction = 1 +then +if is_transaction_table = 1 and @count_actual <> count_expected +then +set msg= concat("Missing transaction events: ", msg_detail); +signal sqlstate '05000' set message_text= msg; +end if; +if is_transaction_table = 0 and @count_actual <> 0 +then +set msg= concat("Unexpected transaction events: ", msg_detail); +signal sqlstate '05000' set message_text= msg; +end if; +end if; +end if; +until done +end repeat; +close pfs_cursor; +-- Dont want to return a 02000 NOT FOUND, there should be a better way +signal sqlstate '01000' set message_text='Done', mysql_errno=12000; +end +$ +Warnings: +Warning 1287 ' INTO FROM...' instead +Warning 1287 ' INTO FROM...' instead +Warning 1287 ' INTO FROM...' instead +show global variables like "performance_schema%"; +Variable_name Value +performance_schema ON +performance_schema_accounts_size 100 +performance_schema_digests_size 200 +performance_schema_events_stages_history_long_size 1000 +performance_schema_events_stages_history_size 10 +performance_schema_events_statements_history_long_size 1000 +performance_schema_events_statements_history_size 10 +performance_schema_events_transactions_history_long_size 1000 +performance_schema_events_transactions_history_size 10 +performance_schema_events_waits_history_long_size 10000 +performance_schema_events_waits_history_size 10 +performance_schema_hosts_size 100 +performance_schema_max_cond_classes 90 +performance_schema_max_cond_instances 1000 +performance_schema_max_digest_length 1024 +performance_schema_max_file_classes 80 +performance_schema_max_file_handles 32768 +performance_schema_max_file_instances 10000 +performance_schema_max_index_stat 5000 +performance_schema_max_memory_classes 320 +performance_schema_max_metadata_locks 10000 +performance_schema_max_mutex_classes 210 +performance_schema_max_mutex_instances 5000 +performance_schema_max_prepared_statements_instances 100 +performance_schema_max_program_instances 5000 +performance_schema_max_rwlock_classes 50 +performance_schema_max_rwlock_instances 5000 +performance_schema_max_socket_classes 10 +performance_schema_max_socket_instances 1000 +performance_schema_max_sql_text_length 1024 +performance_schema_max_stage_classes 160 +performance_schema_max_statement_classes 222 +performance_schema_max_statement_stack 10 +performance_schema_max_table_handles 1000 +performance_schema_max_table_instances 500 +performance_schema_max_table_lock_stat 500 +performance_schema_max_thread_classes 50 +performance_schema_max_thread_instances 200 +performance_schema_session_connect_attrs_size 2048 +performance_schema_setup_actors_size 100 +performance_schema_setup_objects_size 100 +performance_schema_users_size 100 +call check_instrument("wait/synch/mutex/"); +instr_name is_wait is_wait_file is_wait_socket is_stage is_statement is_memory is_transaction +wait/synch/mutex/ 1 0 0 0 0 0 0 +status +Checking table events_stages_summary_by_account_by_event_name ... +status +Checking table events_stages_summary_by_host_by_event_name ... +status +Checking table events_stages_summary_by_thread_by_event_name ... +status +Checking table events_stages_summary_by_user_by_event_name ... +status +Checking table events_stages_summary_global_by_event_name ... +status +Checking table events_statements_summary_by_account_by_event_name ... +status +Checking table events_statements_summary_by_host_by_event_name ... +status +Checking table events_statements_summary_by_thread_by_event_name ... +status +Checking table events_statements_summary_by_user_by_event_name ... +status +Checking table events_statements_summary_global_by_event_name ... +status +Checking table events_transactions_summary_by_account_by_event_name ... +status +Checking table events_transactions_summary_by_host_by_event_name ... +status +Checking table events_transactions_summary_by_thread_by_event_name ... +status +Checking table events_transactions_summary_by_user_by_event_name ... +status +Checking table events_transactions_summary_global_by_event_name ... +status +Checking table events_waits_summary_by_account_by_event_name ... +status +Checking table events_waits_summary_by_host_by_event_name ... +status +Checking table events_waits_summary_by_thread_by_event_name ... +status +Checking table events_waits_summary_by_user_by_event_name ... +status +Checking table events_waits_summary_global_by_event_name ... +status +Checking table file_summary_by_event_name ... +status +Checking table memory_summary_by_account_by_event_name ... +status +Checking table memory_summary_by_host_by_event_name ... +status +Checking table memory_summary_by_thread_by_event_name ... +status +Checking table memory_summary_by_user_by_event_name ... +status +Checking table memory_summary_global_by_event_name ... +status +Checking table socket_summary_by_event_name ... +Warnings: +Warning 12000 Done +call check_instrument("wait/synch/rwlock/"); +instr_name is_wait is_wait_file is_wait_socket is_stage is_statement is_memory is_transaction +wait/synch/rwlock/ 1 0 0 0 0 0 0 +status +Checking table events_stages_summary_by_account_by_event_name ... +status +Checking table events_stages_summary_by_host_by_event_name ... +status +Checking table events_stages_summary_by_thread_by_event_name ... +status +Checking table events_stages_summary_by_user_by_event_name ... +status +Checking table events_stages_summary_global_by_event_name ... +status +Checking table events_statements_summary_by_account_by_event_name ... +status +Checking table events_statements_summary_by_host_by_event_name ... +status +Checking table events_statements_summary_by_thread_by_event_name ... +status +Checking table events_statements_summary_by_user_by_event_name ... +status +Checking table events_statements_summary_global_by_event_name ... +status +Checking table events_transactions_summary_by_account_by_event_name ... +status +Checking table events_transactions_summary_by_host_by_event_name ... +status +Checking table events_transactions_summary_by_thread_by_event_name ... +status +Checking table events_transactions_summary_by_user_by_event_name ... +status +Checking table events_transactions_summary_global_by_event_name ... +status +Checking table events_waits_summary_by_account_by_event_name ... +status +Checking table events_waits_summary_by_host_by_event_name ... +status +Checking table events_waits_summary_by_thread_by_event_name ... +status +Checking table events_waits_summary_by_user_by_event_name ... +status +Checking table events_waits_summary_global_by_event_name ... +status +Checking table file_summary_by_event_name ... +status +Checking table memory_summary_by_account_by_event_name ... +status +Checking table memory_summary_by_host_by_event_name ... +status +Checking table memory_summary_by_thread_by_event_name ... +status +Checking table memory_summary_by_user_by_event_name ... +status +Checking table memory_summary_global_by_event_name ... +status +Checking table socket_summary_by_event_name ... +Warnings: +Warning 12000 Done +call check_instrument("wait/synch/sxlock/"); +instr_name is_wait is_wait_file is_wait_socket is_stage is_statement is_memory is_transaction +wait/synch/sxlock/ 1 0 0 0 0 0 0 +status +Checking table events_stages_summary_by_account_by_event_name ... +status +Checking table events_stages_summary_by_host_by_event_name ... +status +Checking table events_stages_summary_by_thread_by_event_name ... +status +Checking table events_stages_summary_by_user_by_event_name ... +status +Checking table events_stages_summary_global_by_event_name ... +status +Checking table events_statements_summary_by_account_by_event_name ... +status +Checking table events_statements_summary_by_host_by_event_name ... +status +Checking table events_statements_summary_by_thread_by_event_name ... +status +Checking table events_statements_summary_by_user_by_event_name ... +status +Checking table events_statements_summary_global_by_event_name ... +status +Checking table events_transactions_summary_by_account_by_event_name ... +status +Checking table events_transactions_summary_by_host_by_event_name ... +status +Checking table events_transactions_summary_by_thread_by_event_name ... +status +Checking table events_transactions_summary_by_user_by_event_name ... +status +Checking table events_transactions_summary_global_by_event_name ... +status +Checking table events_waits_summary_by_account_by_event_name ... +status +Checking table events_waits_summary_by_host_by_event_name ... +status +Checking table events_waits_summary_by_thread_by_event_name ... +status +Checking table events_waits_summary_by_user_by_event_name ... +status +Checking table events_waits_summary_global_by_event_name ... +status +Checking table file_summary_by_event_name ... +status +Checking table memory_summary_by_account_by_event_name ... +status +Checking table memory_summary_by_host_by_event_name ... +status +Checking table memory_summary_by_thread_by_event_name ... +status +Checking table memory_summary_by_user_by_event_name ... +status +Checking table memory_summary_global_by_event_name ... +status +Checking table socket_summary_by_event_name ... +Warnings: +Warning 12000 Done +call check_instrument("wait/synch/cond/"); +instr_name is_wait is_wait_file is_wait_socket is_stage is_statement is_memory is_transaction +wait/synch/cond/ 1 0 0 0 0 0 0 +status +Checking table events_stages_summary_by_account_by_event_name ... +status +Checking table events_stages_summary_by_host_by_event_name ... +status +Checking table events_stages_summary_by_thread_by_event_name ... +status +Checking table events_stages_summary_by_user_by_event_name ... +status +Checking table events_stages_summary_global_by_event_name ... +status +Checking table events_statements_summary_by_account_by_event_name ... +status +Checking table events_statements_summary_by_host_by_event_name ... +status +Checking table events_statements_summary_by_thread_by_event_name ... +status +Checking table events_statements_summary_by_user_by_event_name ... +status +Checking table events_statements_summary_global_by_event_name ... +status +Checking table events_transactions_summary_by_account_by_event_name ... +status +Checking table events_transactions_summary_by_host_by_event_name ... +status +Checking table events_transactions_summary_by_thread_by_event_name ... +status +Checking table events_transactions_summary_by_user_by_event_name ... +status +Checking table events_transactions_summary_global_by_event_name ... +status +Checking table events_waits_summary_by_account_by_event_name ... +status +Checking table events_waits_summary_by_host_by_event_name ... +status +Checking table events_waits_summary_by_thread_by_event_name ... +status +Checking table events_waits_summary_by_user_by_event_name ... +status +Checking table events_waits_summary_global_by_event_name ... +status +Checking table file_summary_by_event_name ... +status +Checking table memory_summary_by_account_by_event_name ... +status +Checking table memory_summary_by_host_by_event_name ... +status +Checking table memory_summary_by_thread_by_event_name ... +status +Checking table memory_summary_by_user_by_event_name ... +status +Checking table memory_summary_global_by_event_name ... +status +Checking table socket_summary_by_event_name ... +Warnings: +Warning 12000 Done +call check_instrument("wait/synch/"); +instr_name is_wait is_wait_file is_wait_socket is_stage is_statement is_memory is_transaction +wait/synch/ 1 0 0 0 0 0 0 +status +Checking table events_stages_summary_by_account_by_event_name ... +status +Checking table events_stages_summary_by_host_by_event_name ... +status +Checking table events_stages_summary_by_thread_by_event_name ... +status +Checking table events_stages_summary_by_user_by_event_name ... +status +Checking table events_stages_summary_global_by_event_name ... +status +Checking table events_statements_summary_by_account_by_event_name ... +status +Checking table events_statements_summary_by_host_by_event_name ... +status +Checking table events_statements_summary_by_thread_by_event_name ... +status +Checking table events_statements_summary_by_user_by_event_name ... +status +Checking table events_statements_summary_global_by_event_name ... +status +Checking table events_transactions_summary_by_account_by_event_name ... +status +Checking table events_transactions_summary_by_host_by_event_name ... +status +Checking table events_transactions_summary_by_thread_by_event_name ... +status +Checking table events_transactions_summary_by_user_by_event_name ... +status +Checking table events_transactions_summary_global_by_event_name ... +status +Checking table events_waits_summary_by_account_by_event_name ... +status +Checking table events_waits_summary_by_host_by_event_name ... +status +Checking table events_waits_summary_by_thread_by_event_name ... +status +Checking table events_waits_summary_by_user_by_event_name ... +status +Checking table events_waits_summary_global_by_event_name ... +status +Checking table file_summary_by_event_name ... +status +Checking table memory_summary_by_account_by_event_name ... +status +Checking table memory_summary_by_host_by_event_name ... +status +Checking table memory_summary_by_thread_by_event_name ... +status +Checking table memory_summary_by_user_by_event_name ... +status +Checking table memory_summary_global_by_event_name ... +status +Checking table socket_summary_by_event_name ... +Warnings: +Warning 12000 Done +call check_instrument("wait/io/file/"); +instr_name is_wait is_wait_file is_wait_socket is_stage is_statement is_memory is_transaction +wait/io/file/ 1 1 0 0 0 0 0 +status +Checking table events_stages_summary_by_account_by_event_name ... +status +Checking table events_stages_summary_by_host_by_event_name ... +status +Checking table events_stages_summary_by_thread_by_event_name ... +status +Checking table events_stages_summary_by_user_by_event_name ... +status +Checking table events_stages_summary_global_by_event_name ... +status +Checking table events_statements_summary_by_account_by_event_name ... +status +Checking table events_statements_summary_by_host_by_event_name ... +status +Checking table events_statements_summary_by_thread_by_event_name ... +status +Checking table events_statements_summary_by_user_by_event_name ... +status +Checking table events_statements_summary_global_by_event_name ... +status +Checking table events_transactions_summary_by_account_by_event_name ... +status +Checking table events_transactions_summary_by_host_by_event_name ... +status +Checking table events_transactions_summary_by_thread_by_event_name ... +status +Checking table events_transactions_summary_by_user_by_event_name ... +status +Checking table events_transactions_summary_global_by_event_name ... +status +Checking table events_waits_summary_by_account_by_event_name ... +status +Checking table events_waits_summary_by_host_by_event_name ... +status +Checking table events_waits_summary_by_thread_by_event_name ... +status +Checking table events_waits_summary_by_user_by_event_name ... +status +Checking table events_waits_summary_global_by_event_name ... +status +Checking table file_summary_by_event_name ... +status +Checking table memory_summary_by_account_by_event_name ... +status +Checking table memory_summary_by_host_by_event_name ... +status +Checking table memory_summary_by_thread_by_event_name ... +status +Checking table memory_summary_by_user_by_event_name ... +status +Checking table memory_summary_global_by_event_name ... +status +Checking table socket_summary_by_event_name ... +Warnings: +Warning 12000 Done +call check_instrument("wait/io/socket/"); +instr_name is_wait is_wait_file is_wait_socket is_stage is_statement is_memory is_transaction +wait/io/socket/ 1 0 1 0 0 0 0 +status +Checking table events_stages_summary_by_account_by_event_name ... +status +Checking table events_stages_summary_by_host_by_event_name ... +status +Checking table events_stages_summary_by_thread_by_event_name ... +status +Checking table events_stages_summary_by_user_by_event_name ... +status +Checking table events_stages_summary_global_by_event_name ... +status +Checking table events_statements_summary_by_account_by_event_name ... +status +Checking table events_statements_summary_by_host_by_event_name ... +status +Checking table events_statements_summary_by_thread_by_event_name ... +status +Checking table events_statements_summary_by_user_by_event_name ... +status +Checking table events_statements_summary_global_by_event_name ... +status +Checking table events_transactions_summary_by_account_by_event_name ... +status +Checking table events_transactions_summary_by_host_by_event_name ... +status +Checking table events_transactions_summary_by_thread_by_event_name ... +status +Checking table events_transactions_summary_by_user_by_event_name ... +status +Checking table events_transactions_summary_global_by_event_name ... +status +Checking table events_waits_summary_by_account_by_event_name ... +status +Checking table events_waits_summary_by_host_by_event_name ... +status +Checking table events_waits_summary_by_thread_by_event_name ... +status +Checking table events_waits_summary_by_user_by_event_name ... +status +Checking table events_waits_summary_global_by_event_name ... +status +Checking table file_summary_by_event_name ... +status +Checking table memory_summary_by_account_by_event_name ... +status +Checking table memory_summary_by_host_by_event_name ... +status +Checking table memory_summary_by_thread_by_event_name ... +status +Checking table memory_summary_by_user_by_event_name ... +status +Checking table memory_summary_global_by_event_name ... +status +Checking table socket_summary_by_event_name ... +Warnings: +Warning 12000 Done +call check_instrument("wait/io/table/"); +instr_name is_wait is_wait_file is_wait_socket is_stage is_statement is_memory is_transaction +wait/io/table/ 1 0 0 0 0 0 0 +status +Checking table events_stages_summary_by_account_by_event_name ... +status +Checking table events_stages_summary_by_host_by_event_name ... +status +Checking table events_stages_summary_by_thread_by_event_name ... +status +Checking table events_stages_summary_by_user_by_event_name ... +status +Checking table events_stages_summary_global_by_event_name ... +status +Checking table events_statements_summary_by_account_by_event_name ... +status +Checking table events_statements_summary_by_host_by_event_name ... +status +Checking table events_statements_summary_by_thread_by_event_name ... +status +Checking table events_statements_summary_by_user_by_event_name ... +status +Checking table events_statements_summary_global_by_event_name ... +status +Checking table events_transactions_summary_by_account_by_event_name ... +status +Checking table events_transactions_summary_by_host_by_event_name ... +status +Checking table events_transactions_summary_by_thread_by_event_name ... +status +Checking table events_transactions_summary_by_user_by_event_name ... +status +Checking table events_transactions_summary_global_by_event_name ... +status +Checking table events_waits_summary_by_account_by_event_name ... +status +Checking table events_waits_summary_by_host_by_event_name ... +status +Checking table events_waits_summary_by_thread_by_event_name ... +status +Checking table events_waits_summary_by_user_by_event_name ... +status +Checking table events_waits_summary_global_by_event_name ... +status +Checking table file_summary_by_event_name ... +status +Checking table memory_summary_by_account_by_event_name ... +status +Checking table memory_summary_by_host_by_event_name ... +status +Checking table memory_summary_by_thread_by_event_name ... +status +Checking table memory_summary_by_user_by_event_name ... +status +Checking table memory_summary_global_by_event_name ... +status +Checking table socket_summary_by_event_name ... +Warnings: +Warning 12000 Done +call check_instrument("wait/io/"); +instr_name is_wait is_wait_file is_wait_socket is_stage is_statement is_memory is_transaction +wait/io/ 1 0 0 0 0 0 0 +status +Checking table events_stages_summary_by_account_by_event_name ... +status +Checking table events_stages_summary_by_host_by_event_name ... +status +Checking table events_stages_summary_by_thread_by_event_name ... +status +Checking table events_stages_summary_by_user_by_event_name ... +status +Checking table events_stages_summary_global_by_event_name ... +status +Checking table events_statements_summary_by_account_by_event_name ... +status +Checking table events_statements_summary_by_host_by_event_name ... +status +Checking table events_statements_summary_by_thread_by_event_name ... +status +Checking table events_statements_summary_by_user_by_event_name ... +status +Checking table events_statements_summary_global_by_event_name ... +status +Checking table events_transactions_summary_by_account_by_event_name ... +status +Checking table events_transactions_summary_by_host_by_event_name ... +status +Checking table events_transactions_summary_by_thread_by_event_name ... +status +Checking table events_transactions_summary_by_user_by_event_name ... +status +Checking table events_transactions_summary_global_by_event_name ... +status +Checking table events_waits_summary_by_account_by_event_name ... +status +Checking table events_waits_summary_by_host_by_event_name ... +status +Checking table events_waits_summary_by_thread_by_event_name ... +status +Checking table events_waits_summary_by_user_by_event_name ... +status +Checking table events_waits_summary_global_by_event_name ... +status +Checking table file_summary_by_event_name ... +status +Checking table memory_summary_by_account_by_event_name ... +status +Checking table memory_summary_by_host_by_event_name ... +status +Checking table memory_summary_by_thread_by_event_name ... +status +Checking table memory_summary_by_user_by_event_name ... +status +Checking table memory_summary_global_by_event_name ... +status +Checking table socket_summary_by_event_name ... +Warnings: +Warning 12000 Done +call check_instrument("wait/lock/table/"); +instr_name is_wait is_wait_file is_wait_socket is_stage is_statement is_memory is_transaction +wait/lock/table/ 1 0 0 0 0 0 0 +status +Checking table events_stages_summary_by_account_by_event_name ... +status +Checking table events_stages_summary_by_host_by_event_name ... +status +Checking table events_stages_summary_by_thread_by_event_name ... +status +Checking table events_stages_summary_by_user_by_event_name ... +status +Checking table events_stages_summary_global_by_event_name ... +status +Checking table events_statements_summary_by_account_by_event_name ... +status +Checking table events_statements_summary_by_host_by_event_name ... +status +Checking table events_statements_summary_by_thread_by_event_name ... +status +Checking table events_statements_summary_by_user_by_event_name ... +status +Checking table events_statements_summary_global_by_event_name ... +status +Checking table events_transactions_summary_by_account_by_event_name ... +status +Checking table events_transactions_summary_by_host_by_event_name ... +status +Checking table events_transactions_summary_by_thread_by_event_name ... +status +Checking table events_transactions_summary_by_user_by_event_name ... +status +Checking table events_transactions_summary_global_by_event_name ... +status +Checking table events_waits_summary_by_account_by_event_name ... +status +Checking table events_waits_summary_by_host_by_event_name ... +status +Checking table events_waits_summary_by_thread_by_event_name ... +status +Checking table events_waits_summary_by_user_by_event_name ... +status +Checking table events_waits_summary_global_by_event_name ... +status +Checking table file_summary_by_event_name ... +status +Checking table memory_summary_by_account_by_event_name ... +status +Checking table memory_summary_by_host_by_event_name ... +status +Checking table memory_summary_by_thread_by_event_name ... +status +Checking table memory_summary_by_user_by_event_name ... +status +Checking table memory_summary_global_by_event_name ... +status +Checking table socket_summary_by_event_name ... +Warnings: +Warning 12000 Done +call check_instrument("wait/lock/"); +instr_name is_wait is_wait_file is_wait_socket is_stage is_statement is_memory is_transaction +wait/lock/ 1 0 0 0 0 0 0 +status +Checking table events_stages_summary_by_account_by_event_name ... +status +Checking table events_stages_summary_by_host_by_event_name ... +status +Checking table events_stages_summary_by_thread_by_event_name ... +status +Checking table events_stages_summary_by_user_by_event_name ... +status +Checking table events_stages_summary_global_by_event_name ... +status +Checking table events_statements_summary_by_account_by_event_name ... +status +Checking table events_statements_summary_by_host_by_event_name ... +status +Checking table events_statements_summary_by_thread_by_event_name ... +status +Checking table events_statements_summary_by_user_by_event_name ... +status +Checking table events_statements_summary_global_by_event_name ... +status +Checking table events_transactions_summary_by_account_by_event_name ... +status +Checking table events_transactions_summary_by_host_by_event_name ... +status +Checking table events_transactions_summary_by_thread_by_event_name ... +status +Checking table events_transactions_summary_by_user_by_event_name ... +status +Checking table events_transactions_summary_global_by_event_name ... +status +Checking table events_waits_summary_by_account_by_event_name ... +status +Checking table events_waits_summary_by_host_by_event_name ... +status +Checking table events_waits_summary_by_thread_by_event_name ... +status +Checking table events_waits_summary_by_user_by_event_name ... +status +Checking table events_waits_summary_global_by_event_name ... +status +Checking table file_summary_by_event_name ... +status +Checking table memory_summary_by_account_by_event_name ... +status +Checking table memory_summary_by_host_by_event_name ... +status +Checking table memory_summary_by_thread_by_event_name ... +status +Checking table memory_summary_by_user_by_event_name ... +status +Checking table memory_summary_global_by_event_name ... +status +Checking table socket_summary_by_event_name ... +Warnings: +Warning 12000 Done +call check_instrument("wait/"); +instr_name is_wait is_wait_file is_wait_socket is_stage is_statement is_memory is_transaction +wait/ 1 0 0 0 0 0 0 +status +Checking table events_stages_summary_by_account_by_event_name ... +status +Checking table events_stages_summary_by_host_by_event_name ... +status +Checking table events_stages_summary_by_thread_by_event_name ... +status +Checking table events_stages_summary_by_user_by_event_name ... +status +Checking table events_stages_summary_global_by_event_name ... +status +Checking table events_statements_summary_by_account_by_event_name ... +status +Checking table events_statements_summary_by_host_by_event_name ... +status +Checking table events_statements_summary_by_thread_by_event_name ... +status +Checking table events_statements_summary_by_user_by_event_name ... +status +Checking table events_statements_summary_global_by_event_name ... +status +Checking table events_transactions_summary_by_account_by_event_name ... +status +Checking table events_transactions_summary_by_host_by_event_name ... +status +Checking table events_transactions_summary_by_thread_by_event_name ... +status +Checking table events_transactions_summary_by_user_by_event_name ... +status +Checking table events_transactions_summary_global_by_event_name ... +status +Checking table events_waits_summary_by_account_by_event_name ... +status +Checking table events_waits_summary_by_host_by_event_name ... +status +Checking table events_waits_summary_by_thread_by_event_name ... +status +Checking table events_waits_summary_by_user_by_event_name ... +status +Checking table events_waits_summary_global_by_event_name ... +status +Checking table file_summary_by_event_name ... +status +Checking table memory_summary_by_account_by_event_name ... +status +Checking table memory_summary_by_host_by_event_name ... +status +Checking table memory_summary_by_thread_by_event_name ... +status +Checking table memory_summary_by_user_by_event_name ... +status +Checking table memory_summary_global_by_event_name ... +status +Checking table socket_summary_by_event_name ... +Warnings: +Warning 12000 Done +call check_instrument("stage/"); +instr_name is_wait is_wait_file is_wait_socket is_stage is_statement is_memory is_transaction +stage/ 0 0 0 1 0 0 0 +status +Checking table events_stages_summary_by_account_by_event_name ... +status +Checking table events_stages_summary_by_host_by_event_name ... +status +Checking table events_stages_summary_by_thread_by_event_name ... +status +Checking table events_stages_summary_by_user_by_event_name ... +status +Checking table events_stages_summary_global_by_event_name ... +status +Checking table events_statements_summary_by_account_by_event_name ... +status +Checking table events_statements_summary_by_host_by_event_name ... +status +Checking table events_statements_summary_by_thread_by_event_name ... +status +Checking table events_statements_summary_by_user_by_event_name ... +status +Checking table events_statements_summary_global_by_event_name ... +status +Checking table events_transactions_summary_by_account_by_event_name ... +status +Checking table events_transactions_summary_by_host_by_event_name ... +status +Checking table events_transactions_summary_by_thread_by_event_name ... +status +Checking table events_transactions_summary_by_user_by_event_name ... +status +Checking table events_transactions_summary_global_by_event_name ... +status +Checking table events_waits_summary_by_account_by_event_name ... +status +Checking table events_waits_summary_by_host_by_event_name ... +status +Checking table events_waits_summary_by_thread_by_event_name ... +status +Checking table events_waits_summary_by_user_by_event_name ... +status +Checking table events_waits_summary_global_by_event_name ... +status +Checking table file_summary_by_event_name ... +status +Checking table memory_summary_by_account_by_event_name ... +status +Checking table memory_summary_by_host_by_event_name ... +status +Checking table memory_summary_by_thread_by_event_name ... +status +Checking table memory_summary_by_user_by_event_name ... +status +Checking table memory_summary_global_by_event_name ... +status +Checking table socket_summary_by_event_name ... +Warnings: +Warning 12000 Done +call check_instrument("statement/com/"); +instr_name is_wait is_wait_file is_wait_socket is_stage is_statement is_memory is_transaction +statement/com/ 0 0 0 0 1 0 0 +status +Checking table events_stages_summary_by_account_by_event_name ... +status +Checking table events_stages_summary_by_host_by_event_name ... +status +Checking table events_stages_summary_by_thread_by_event_name ... +status +Checking table events_stages_summary_by_user_by_event_name ... +status +Checking table events_stages_summary_global_by_event_name ... +status +Checking table events_statements_summary_by_account_by_event_name ... +status +Checking table events_statements_summary_by_host_by_event_name ... +status +Checking table events_statements_summary_by_thread_by_event_name ... +status +Checking table events_statements_summary_by_user_by_event_name ... +status +Checking table events_statements_summary_global_by_event_name ... +status +Checking table events_transactions_summary_by_account_by_event_name ... +status +Checking table events_transactions_summary_by_host_by_event_name ... +status +Checking table events_transactions_summary_by_thread_by_event_name ... +status +Checking table events_transactions_summary_by_user_by_event_name ... +status +Checking table events_transactions_summary_global_by_event_name ... +status +Checking table events_waits_summary_by_account_by_event_name ... +status +Checking table events_waits_summary_by_host_by_event_name ... +status +Checking table events_waits_summary_by_thread_by_event_name ... +status +Checking table events_waits_summary_by_user_by_event_name ... +status +Checking table events_waits_summary_global_by_event_name ... +status +Checking table file_summary_by_event_name ... +status +Checking table memory_summary_by_account_by_event_name ... +status +Checking table memory_summary_by_host_by_event_name ... +status +Checking table memory_summary_by_thread_by_event_name ... +status +Checking table memory_summary_by_user_by_event_name ... +status +Checking table memory_summary_global_by_event_name ... +status +Checking table socket_summary_by_event_name ... +Warnings: +Warning 12000 Done +call check_instrument("statement/sql/"); +instr_name is_wait is_wait_file is_wait_socket is_stage is_statement is_memory is_transaction +statement/sql/ 0 0 0 0 1 0 0 +status +Checking table events_stages_summary_by_account_by_event_name ... +status +Checking table events_stages_summary_by_host_by_event_name ... +status +Checking table events_stages_summary_by_thread_by_event_name ... +status +Checking table events_stages_summary_by_user_by_event_name ... +status +Checking table events_stages_summary_global_by_event_name ... +status +Checking table events_statements_summary_by_account_by_event_name ... +status +Checking table events_statements_summary_by_host_by_event_name ... +status +Checking table events_statements_summary_by_thread_by_event_name ... +status +Checking table events_statements_summary_by_user_by_event_name ... +status +Checking table events_statements_summary_global_by_event_name ... +status +Checking table events_transactions_summary_by_account_by_event_name ... +status +Checking table events_transactions_summary_by_host_by_event_name ... +status +Checking table events_transactions_summary_by_thread_by_event_name ... +status +Checking table events_transactions_summary_by_user_by_event_name ... +status +Checking table events_transactions_summary_global_by_event_name ... +status +Checking table events_waits_summary_by_account_by_event_name ... +status +Checking table events_waits_summary_by_host_by_event_name ... +status +Checking table events_waits_summary_by_thread_by_event_name ... +status +Checking table events_waits_summary_by_user_by_event_name ... +status +Checking table events_waits_summary_global_by_event_name ... +status +Checking table file_summary_by_event_name ... +status +Checking table memory_summary_by_account_by_event_name ... +status +Checking table memory_summary_by_host_by_event_name ... +status +Checking table memory_summary_by_thread_by_event_name ... +status +Checking table memory_summary_by_user_by_event_name ... +status +Checking table memory_summary_global_by_event_name ... +status +Checking table socket_summary_by_event_name ... +Warnings: +Warning 12000 Done +call check_instrument("statement/abstract/"); +instr_name is_wait is_wait_file is_wait_socket is_stage is_statement is_memory is_transaction +statement/abstract/ 0 0 0 0 1 0 0 +status +Checking table events_stages_summary_by_account_by_event_name ... +status +Checking table events_stages_summary_by_host_by_event_name ... +status +Checking table events_stages_summary_by_thread_by_event_name ... +status +Checking table events_stages_summary_by_user_by_event_name ... +status +Checking table events_stages_summary_global_by_event_name ... +status +Checking table events_statements_summary_by_account_by_event_name ... +status +Checking table events_statements_summary_by_host_by_event_name ... +status +Checking table events_statements_summary_by_thread_by_event_name ... +status +Checking table events_statements_summary_by_user_by_event_name ... +status +Checking table events_statements_summary_global_by_event_name ... +status +Checking table events_transactions_summary_by_account_by_event_name ... +status +Checking table events_transactions_summary_by_host_by_event_name ... +status +Checking table events_transactions_summary_by_thread_by_event_name ... +status +Checking table events_transactions_summary_by_user_by_event_name ... +status +Checking table events_transactions_summary_global_by_event_name ... +status +Checking table events_waits_summary_by_account_by_event_name ... +status +Checking table events_waits_summary_by_host_by_event_name ... +status +Checking table events_waits_summary_by_thread_by_event_name ... +status +Checking table events_waits_summary_by_user_by_event_name ... +status +Checking table events_waits_summary_global_by_event_name ... +status +Checking table file_summary_by_event_name ... +status +Checking table memory_summary_by_account_by_event_name ... +status +Checking table memory_summary_by_host_by_event_name ... +status +Checking table memory_summary_by_thread_by_event_name ... +status +Checking table memory_summary_by_user_by_event_name ... +status +Checking table memory_summary_global_by_event_name ... +status +Checking table socket_summary_by_event_name ... +Warnings: +Warning 12000 Done +call check_instrument("statement/"); +instr_name is_wait is_wait_file is_wait_socket is_stage is_statement is_memory is_transaction +statement/ 0 0 0 0 1 0 0 +status +Checking table events_stages_summary_by_account_by_event_name ... +status +Checking table events_stages_summary_by_host_by_event_name ... +status +Checking table events_stages_summary_by_thread_by_event_name ... +status +Checking table events_stages_summary_by_user_by_event_name ... +status +Checking table events_stages_summary_global_by_event_name ... +status +Checking table events_statements_summary_by_account_by_event_name ... +status +Checking table events_statements_summary_by_host_by_event_name ... +status +Checking table events_statements_summary_by_thread_by_event_name ... +status +Checking table events_statements_summary_by_user_by_event_name ... +status +Checking table events_statements_summary_global_by_event_name ... +status +Checking table events_transactions_summary_by_account_by_event_name ... +status +Checking table events_transactions_summary_by_host_by_event_name ... +status +Checking table events_transactions_summary_by_thread_by_event_name ... +status +Checking table events_transactions_summary_by_user_by_event_name ... +status +Checking table events_transactions_summary_global_by_event_name ... +status +Checking table events_waits_summary_by_account_by_event_name ... +status +Checking table events_waits_summary_by_host_by_event_name ... +status +Checking table events_waits_summary_by_thread_by_event_name ... +status +Checking table events_waits_summary_by_user_by_event_name ... +status +Checking table events_waits_summary_global_by_event_name ... +status +Checking table file_summary_by_event_name ... +status +Checking table memory_summary_by_account_by_event_name ... +status +Checking table memory_summary_by_host_by_event_name ... +status +Checking table memory_summary_by_thread_by_event_name ... +status +Checking table memory_summary_by_user_by_event_name ... +status +Checking table memory_summary_global_by_event_name ... +status +Checking table socket_summary_by_event_name ... +Warnings: +Warning 12000 Done +call check_instrument("idle"); +instr_name is_wait is_wait_file is_wait_socket is_stage is_statement is_memory is_transaction +idle 1 0 0 0 0 0 0 +status +Checking table events_stages_summary_by_account_by_event_name ... +status +Checking table events_stages_summary_by_host_by_event_name ... +status +Checking table events_stages_summary_by_thread_by_event_name ... +status +Checking table events_stages_summary_by_user_by_event_name ... +status +Checking table events_stages_summary_global_by_event_name ... +status +Checking table events_statements_summary_by_account_by_event_name ... +status +Checking table events_statements_summary_by_host_by_event_name ... +status +Checking table events_statements_summary_by_thread_by_event_name ... +status +Checking table events_statements_summary_by_user_by_event_name ... +status +Checking table events_statements_summary_global_by_event_name ... +status +Checking table events_transactions_summary_by_account_by_event_name ... +status +Checking table events_transactions_summary_by_host_by_event_name ... +status +Checking table events_transactions_summary_by_thread_by_event_name ... +status +Checking table events_transactions_summary_by_user_by_event_name ... +status +Checking table events_transactions_summary_global_by_event_name ... +status +Checking table events_waits_summary_by_account_by_event_name ... +status +Checking table events_waits_summary_by_host_by_event_name ... +status +Checking table events_waits_summary_by_thread_by_event_name ... +status +Checking table events_waits_summary_by_user_by_event_name ... +status +Checking table events_waits_summary_global_by_event_name ... +status +Checking table file_summary_by_event_name ... +status +Checking table memory_summary_by_account_by_event_name ... +status +Checking table memory_summary_by_host_by_event_name ... +status +Checking table memory_summary_by_thread_by_event_name ... +status +Checking table memory_summary_by_user_by_event_name ... +status +Checking table memory_summary_global_by_event_name ... +status +Checking table socket_summary_by_event_name ... +Warnings: +Warning 12000 Done +call check_instrument("memory/"); +instr_name is_wait is_wait_file is_wait_socket is_stage is_statement is_memory is_transaction +memory/ 0 0 0 0 0 1 0 +status +Checking table events_stages_summary_by_account_by_event_name ... +status +Checking table events_stages_summary_by_host_by_event_name ... +status +Checking table events_stages_summary_by_thread_by_event_name ... +status +Checking table events_stages_summary_by_user_by_event_name ... +status +Checking table events_stages_summary_global_by_event_name ... +status +Checking table events_statements_summary_by_account_by_event_name ... +status +Checking table events_statements_summary_by_host_by_event_name ... +status +Checking table events_statements_summary_by_thread_by_event_name ... +status +Checking table events_statements_summary_by_user_by_event_name ... +status +Checking table events_statements_summary_global_by_event_name ... +status +Checking table events_transactions_summary_by_account_by_event_name ... +status +Checking table events_transactions_summary_by_host_by_event_name ... +status +Checking table events_transactions_summary_by_thread_by_event_name ... +status +Checking table events_transactions_summary_by_user_by_event_name ... +status +Checking table events_transactions_summary_global_by_event_name ... +status +Checking table events_waits_summary_by_account_by_event_name ... +status +Checking table events_waits_summary_by_host_by_event_name ... +status +Checking table events_waits_summary_by_thread_by_event_name ... +status +Checking table events_waits_summary_by_user_by_event_name ... +status +Checking table events_waits_summary_global_by_event_name ... +status +Checking table file_summary_by_event_name ... +status +Checking table memory_summary_by_account_by_event_name ... +status +Checking table memory_summary_by_host_by_event_name ... +status +Checking table memory_summary_by_thread_by_event_name ... +status +Checking table memory_summary_by_user_by_event_name ... +status +Checking table memory_summary_global_by_event_name ... +status +Checking table socket_summary_by_event_name ... +Warnings: +Warning 12000 Done +call check_instrument("memory/performance_schema/"); +instr_name is_wait is_wait_file is_wait_socket is_stage is_statement is_memory is_transaction +memory/performance_schema/ 0 0 0 0 0 1 0 +status +Checking table events_stages_summary_by_account_by_event_name ... +status +Checking table events_stages_summary_by_host_by_event_name ... +status +Checking table events_stages_summary_by_thread_by_event_name ... +status +Checking table events_stages_summary_by_user_by_event_name ... +status +Checking table events_stages_summary_global_by_event_name ... +status +Checking table events_statements_summary_by_account_by_event_name ... +status +Checking table events_statements_summary_by_host_by_event_name ... +status +Checking table events_statements_summary_by_thread_by_event_name ... +status +Checking table events_statements_summary_by_user_by_event_name ... +status +Checking table events_statements_summary_global_by_event_name ... +status +Checking table events_transactions_summary_by_account_by_event_name ... +status +Checking table events_transactions_summary_by_host_by_event_name ... +status +Checking table events_transactions_summary_by_thread_by_event_name ... +status +Checking table events_transactions_summary_by_user_by_event_name ... +status +Checking table events_transactions_summary_global_by_event_name ... +status +Checking table events_waits_summary_by_account_by_event_name ... +status +Checking table events_waits_summary_by_host_by_event_name ... +status +Checking table events_waits_summary_by_thread_by_event_name ... +status +Checking table events_waits_summary_by_user_by_event_name ... +status +Checking table events_waits_summary_global_by_event_name ... +status +Checking table file_summary_by_event_name ... +status +Checking table memory_summary_by_account_by_event_name ... +status +Checking table memory_summary_by_host_by_event_name ... +status +Checking table memory_summary_by_thread_by_event_name ... +status +Checking table memory_summary_by_user_by_event_name ... +status +Checking table memory_summary_global_by_event_name ... +status +Checking table socket_summary_by_event_name ... +Warnings: +Warning 12000 Done +call check_instrument("transaction"); +instr_name is_wait is_wait_file is_wait_socket is_stage is_statement is_memory is_transaction +transaction 0 0 0 0 0 0 1 +status +Checking table events_stages_summary_by_account_by_event_name ... +status +Checking table events_stages_summary_by_host_by_event_name ... +status +Checking table events_stages_summary_by_thread_by_event_name ... +status +Checking table events_stages_summary_by_user_by_event_name ... +status +Checking table events_stages_summary_global_by_event_name ... +status +Checking table events_statements_summary_by_account_by_event_name ... +status +Checking table events_statements_summary_by_host_by_event_name ... +status +Checking table events_statements_summary_by_thread_by_event_name ... +status +Checking table events_statements_summary_by_user_by_event_name ... +status +Checking table events_statements_summary_global_by_event_name ... +status +Checking table events_transactions_summary_by_account_by_event_name ... +status +Checking table events_transactions_summary_by_host_by_event_name ... +status +Checking table events_transactions_summary_by_thread_by_event_name ... +status +Checking table events_transactions_summary_by_user_by_event_name ... +status +Checking table events_transactions_summary_global_by_event_name ... +status +Checking table events_waits_summary_by_account_by_event_name ... +status +Checking table events_waits_summary_by_host_by_event_name ... +status +Checking table events_waits_summary_by_thread_by_event_name ... +status +Checking table events_waits_summary_by_user_by_event_name ... +status +Checking table events_waits_summary_global_by_event_name ... +status +Checking table file_summary_by_event_name ... +status +Checking table memory_summary_by_account_by_event_name ... +status +Checking table memory_summary_by_host_by_event_name ... +status +Checking table memory_summary_by_thread_by_event_name ... +status +Checking table memory_summary_by_user_by_event_name ... +status +Checking table memory_summary_global_by_event_name ... +status +Checking table socket_summary_by_event_name ... +Warnings: +Warning 12000 Done +drop procedure check_instrument; diff --git a/mysql-test/suite/perfschema/r/part_table_io.result b/mysql-test/suite/perfschema/r/part_table_io.result new file mode 100644 index 00000000..2c6040c8 --- /dev/null +++ b/mysql-test/suite/perfschema/r/part_table_io.result @@ -0,0 +1,147 @@ +drop table if exists test.marker; +create table test.marker(a int); +update performance_schema.setup_consumers set enabled='NO'; +update performance_schema.setup_instruments set enabled='NO'; +update performance_schema.setup_instruments set enabled='YES' + where name like "wait/io/table/%"; +truncate table performance_schema.events_waits_history_long; +flush status; +flush tables; +drop table if exists test.no_index_tab; +update performance_schema.setup_consumers set enabled='YES'; +insert into marker set a = 1; +create table test.no_index_tab +( a varchar(255) not null, b int not null) engine = MyISAM +PARTITION BY KEY (b) PARTITIONS 2; +insert into marker set a = 1; +show create table test.no_index_tab; +Table Create Table +no_index_tab CREATE TABLE `no_index_tab` ( + `a` varchar(255) NOT NULL, + `b` int(11) NOT NULL +) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci + PARTITION BY KEY (`b`) +PARTITIONS 2 +insert into marker set a = 1; +insert into test.no_index_tab set a = 'foo', b = 1; +insert into marker set a = 1; +insert into test.no_index_tab set a = 'foo', b = 2; +insert into marker set a = 1; +insert into test.no_index_tab set a = 'foo', b = 3; +insert into marker set a = 1; +select * from test.no_index_tab; +a b +foo 1 +foo 3 +foo 2 +insert into marker set a = 1; +update test.no_index_tab set a = 'bar'; +insert into marker set a = 1; +select * from test.no_index_tab limit 2; +a b +bar 1 +bar 3 +insert into marker set a = 1; +delete from test.no_index_tab where b = 3; +insert into marker set a = 1; +select * from test.no_index_tab; +a b +bar 1 +bar 2 +insert into marker set a = 1; +optimize table test.no_index_tab; +Table Op Msg_type Msg_text +test.no_index_tab optimize status OK +insert into marker set a = 1; +select * from test.no_index_tab; +a b +bar 1 +bar 2 +insert into marker set a = 1; +truncate table test.no_index_tab; +insert into marker set a = 1; +drop table test.no_index_tab; +update performance_schema.setup_consumers set enabled='NO'; +select event_name, +left(source, locate(":", source)) as short_source, +object_type, object_schema, +if (locate("#sql-", object_name), "#sql-XXXX", object_name) +as pretty_name, +operation, number_of_bytes +from performance_schema.events_waits_history_long +where event_name like 'wait/io/table/%' + and object_schema in ("test") +order by thread_id, event_id; +event_name short_source object_type object_schema pretty_name operation number_of_bytes +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test no_index_tab insert 1 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test no_index_tab insert 1 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test no_index_tab insert 1 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 3 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 1 +wait/io/table/sql/handler TABLE test no_index_tab update 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 1 +wait/io/table/sql/handler TABLE test no_index_tab update 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 1 +wait/io/table/sql/handler TABLE test no_index_tab update 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 1 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 2 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 1 +wait/io/table/sql/handler TABLE test no_index_tab delete 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 1 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 2 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test no_index_tab fetch 2 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test marker insert 1 +show global status like 'performance_schema_%'; +Variable_name Value +Performance_schema_accounts_lost 0 +Performance_schema_cond_classes_lost 0 +Performance_schema_cond_instances_lost 0 +Performance_schema_digest_lost 0 +Performance_schema_file_classes_lost 0 +Performance_schema_file_handles_lost 0 +Performance_schema_file_instances_lost 0 +Performance_schema_hosts_lost 0 +Performance_schema_index_stat_lost 0 +Performance_schema_locker_lost 0 +Performance_schema_memory_classes_lost 0 +Performance_schema_metadata_lock_lost 0 +Performance_schema_mutex_classes_lost 0 +Performance_schema_mutex_instances_lost 0 +Performance_schema_nested_statement_lost 0 +Performance_schema_prepared_statements_lost 0 +Performance_schema_program_lost 0 +Performance_schema_rwlock_classes_lost 0 +Performance_schema_rwlock_instances_lost 0 +Performance_schema_session_connect_attrs_lost 0 +Performance_schema_socket_classes_lost 0 +Performance_schema_socket_instances_lost 0 +Performance_schema_stage_classes_lost 0 +Performance_schema_statement_classes_lost 0 +Performance_schema_table_handles_lost 0 +Performance_schema_table_instances_lost 0 +Performance_schema_table_lock_stat_lost 0 +Performance_schema_thread_classes_lost 0 +Performance_schema_thread_instances_lost 0 +Performance_schema_users_lost 0 +truncate performance_schema.events_waits_history_long; +flush status; +update performance_schema.setup_consumers set enabled='NO'; +truncate performance_schema.events_waits_history_long; +drop table test.marker; +flush status; +update performance_schema.setup_instruments set enabled='YES'; +update performance_schema.setup_consumers set enabled='YES'; diff --git a/mysql-test/suite/perfschema/r/partition.result b/mysql-test/suite/perfschema/r/partition.result new file mode 100644 index 00000000..9bc62426 --- /dev/null +++ b/mysql-test/suite/perfschema/r/partition.result @@ -0,0 +1,10 @@ +# +# MDEV-10679 +# Server crashes in in mysql_create_frm_image upon query from +# performance schema in ps-protocol mode +# +CREATE TABLE t1 (i INT); +ALTER TABLE t1 ADD PARTITION (PARTITION p VALUES LESS THAN (1)); +ERROR HY000: Partition management on a not partitioned table is not possible +SELECT * FROM performance_schema.events_stages_summary_by_user_by_event_name; +DROP TABLE t1; diff --git a/mysql-test/suite/perfschema/r/pfs_upgrade_event.result b/mysql-test/suite/perfschema/r/pfs_upgrade_event.result new file mode 100644 index 00000000..f4cf0140 --- /dev/null +++ b/mysql-test/suite/perfschema/r/pfs_upgrade_event.result @@ -0,0 +1,11 @@ +# Testing mysql_upgrade with EVENT performance_schema.user_event +create event test.user_event on schedule every 1 day do +select "not supposed to be here"; +Warnings: +Warning 1105 Event scheduler is switched off, use SET GLOBAL event_scheduler=ON to enable it. +update mysql.event set db='performance_schema' where name='user_event'; +select name from mysql.event where db='performance_schema'; +name +user_event +update mysql.event set db='test' where name='user_event'; +drop event test.user_event; diff --git a/mysql-test/suite/perfschema/r/pfs_upgrade_func.result b/mysql-test/suite/perfschema/r/pfs_upgrade_func.result new file mode 100644 index 00000000..92f2a18a --- /dev/null +++ b/mysql-test/suite/perfschema/r/pfs_upgrade_func.result @@ -0,0 +1,9 @@ +# Testing mysql_upgrade with FUNCTION performance_schema.user_func +create function test.user_func() returns integer +return 0; +update mysql.proc set db='performance_schema' where name='user_func'; +select name from mysql.proc where db='performance_schema'; +name +user_func +update mysql.proc set db='test' where name='user_func'; +drop function test.user_func; diff --git a/mysql-test/suite/perfschema/r/pfs_upgrade_proc.result b/mysql-test/suite/perfschema/r/pfs_upgrade_proc.result new file mode 100644 index 00000000..9452ec86 --- /dev/null +++ b/mysql-test/suite/perfschema/r/pfs_upgrade_proc.result @@ -0,0 +1,9 @@ +# Testing mysql_upgrade with PROCEDURE performance_schema.user_proc +create procedure test.user_proc() +select "Not supposed to be here"; +update mysql.proc set db='performance_schema' where name='user_proc'; +select name from mysql.proc where db='performance_schema'; +name +user_proc +update mysql.proc set db='test' where name='user_proc'; +drop procedure test.user_proc; diff --git a/mysql-test/suite/perfschema/r/pfs_upgrade_table.result b/mysql-test/suite/perfschema/r/pfs_upgrade_table.result new file mode 100644 index 00000000..0c7b024a --- /dev/null +++ b/mysql-test/suite/perfschema/r/pfs_upgrade_table.result @@ -0,0 +1,11 @@ +# Testing mysql_upgrade with TABLE performance_schema.user_table +create table test.user_table(a int); +use performance_schema; +show tables like "user_table"; +Tables_in_performance_schema (user_table) +user_table +show tables like "user_table"; +Tables_in_performance_schema (user_table) +user_table +use test; +drop table test.user_table; diff --git a/mysql-test/suite/perfschema/r/pfs_upgrade_view.result b/mysql-test/suite/perfschema/r/pfs_upgrade_view.result new file mode 100644 index 00000000..49928bbe --- /dev/null +++ b/mysql-test/suite/perfschema/r/pfs_upgrade_view.result @@ -0,0 +1,11 @@ +# Testing mysql_upgrade with VIEW performance_schema.user_view +create view test.user_view as select "Not supposed to be here"; +use performance_schema; +show tables like "user_view"; +Tables_in_performance_schema (user_view) +user_view +show tables like "user_view"; +Tables_in_performance_schema (user_view) +user_view +use test; +drop view test.user_view; diff --git a/mysql-test/suite/perfschema/r/prepared_statements.result b/mysql-test/suite/perfschema/r/prepared_statements.result new file mode 100644 index 00000000..0b9a438c --- /dev/null +++ b/mysql-test/suite/perfschema/r/prepared_statements.result @@ -0,0 +1,672 @@ +CREATE DATABASE db; +USE db; +TRUNCATE TABLE performance_schema.prepared_statements_instances ; +TRUNCATE TABLE performance_schema.events_statements_history_long ; +CREATE TABLE t1 (a INT NOT NULL); +INSERT INTO t1 VALUES (4), (8), (11), (32), (80); +PREPARE st1 FROM 'SELECT SQRT(POW(?,2) + POW(?,2)) AS hypotenuse'; +SET @table = 't1'; +SET @s = CONCAT('SELECT * FROM ', @table); +PREPARE st2 FROM @s; +PREPARE st3 FROM 'INSERT INTO t1 SELECT * FROM t1 WHERE a<=?'; +PREPARE st4 FROM +'(SELECT a FROM t1) UNION (SELECT a+10 FROM t1) ORDER BY RAND()*0+a'; +SELECT STATEMENT_NAME, SQL_TEXT, COUNT_REPREPARE, COUNT_EXECUTE, SUM_ROWS_SENT, SUM_SELECT_SCAN, SUM_NO_INDEX_USED FROM performance_schema.prepared_statements_instances ORDER BY STATEMENT_NAME, SQL_TEXT; +STATEMENT_NAME st1 +SQL_TEXT SELECT SQRT(POW(?,2) + POW(?,2)) AS hypotenuse +COUNT_REPREPARE 0 +COUNT_EXECUTE 0 +SUM_ROWS_SENT 0 +SUM_SELECT_SCAN 0 +SUM_NO_INDEX_USED 0 +STATEMENT_NAME st2 +SQL_TEXT SELECT * FROM t1 +COUNT_REPREPARE 0 +COUNT_EXECUTE 0 +SUM_ROWS_SENT 0 +SUM_SELECT_SCAN 0 +SUM_NO_INDEX_USED 0 +STATEMENT_NAME st3 +SQL_TEXT INSERT INTO t1 SELECT * FROM t1 WHERE a<=? +COUNT_REPREPARE 0 +COUNT_EXECUTE 0 +SUM_ROWS_SENT 0 +SUM_SELECT_SCAN 0 +SUM_NO_INDEX_USED 0 +STATEMENT_NAME st4 +SQL_TEXT (SELECT a FROM t1) UNION (SELECT a+10 FROM t1) ORDER BY RAND()*0+a +COUNT_REPREPARE 0 +COUNT_EXECUTE 0 +SUM_ROWS_SENT 0 +SUM_SELECT_SCAN 0 +SUM_NO_INDEX_USED 0 +SELECT EVENT_NAME, SQL_TEXT, OBJECT_TYPE, OBJECT_SCHEMA, OBJECT_NAME FROM performance_schema.events_statements_history_long WHERE CURRENT_SCHEMA='db' ; +EVENT_NAME statement/sql/truncate +SQL_TEXT TRUNCATE TABLE performance_schema.events_statements_history_long +OBJECT_TYPE NULL +OBJECT_SCHEMA NULL +OBJECT_NAME NULL +EVENT_NAME statement/sql/create_table +SQL_TEXT CREATE TABLE t1 (a INT NOT NULL) +OBJECT_TYPE NULL +OBJECT_SCHEMA NULL +OBJECT_NAME NULL +EVENT_NAME statement/sql/insert +SQL_TEXT INSERT INTO t1 VALUES (4), (8), (11), (32), (80) +OBJECT_TYPE NULL +OBJECT_SCHEMA NULL +OBJECT_NAME NULL +EVENT_NAME statement/sql/prepare_sql +SQL_TEXT PREPARE st1 FROM 'SELECT SQRT(POW(?,2) + POW(?,2)) AS hypotenuse' +OBJECT_TYPE NULL +OBJECT_SCHEMA NULL +OBJECT_NAME NULL +EVENT_NAME statement/sql/set_option +SQL_TEXT SET @table = 't1' +OBJECT_TYPE NULL +OBJECT_SCHEMA NULL +OBJECT_NAME NULL +EVENT_NAME statement/sql/set_option +SQL_TEXT SET @s = CONCAT('SELECT * FROM ', @table) +OBJECT_TYPE NULL +OBJECT_SCHEMA NULL +OBJECT_NAME NULL +EVENT_NAME statement/sql/prepare_sql +SQL_TEXT PREPARE st2 FROM @s +OBJECT_TYPE NULL +OBJECT_SCHEMA NULL +OBJECT_NAME NULL +EVENT_NAME statement/sql/prepare_sql +SQL_TEXT PREPARE st3 FROM 'INSERT INTO t1 SELECT * FROM t1 WHERE a<=?' +OBJECT_TYPE NULL +OBJECT_SCHEMA NULL +OBJECT_NAME NULL +EVENT_NAME statement/sql/prepare_sql +SQL_TEXT PREPARE st4 FROM +'(SELECT a FROM t1) UNION (SELECT a+10 FROM t1) ORDER BY RAND()*0+a' +OBJECT_TYPE NULL +OBJECT_SCHEMA NULL +OBJECT_NAME NULL +EVENT_NAME statement/sql/select +SQL_TEXT SELECT STATEMENT_NAME, SQL_TEXT, COUNT_REPREPARE, COUNT_EXECUTE, SUM_ROWS_SENT, SUM_SELECT_SCAN, SUM_NO_INDEX_USED FROM performance_schema.prepared_statements_instances ORDER BY STATEMENT_NAME, SQL_TEXT +OBJECT_TYPE NULL +OBJECT_SCHEMA NULL +OBJECT_NAME NULL +SET @a = 3; +SET @b = 4; +EXECUTE st1 USING @a, @b; +hypotenuse +5 +EXECUTE st2; +a +4 +8 +11 +32 +80 +SET @c=3; +EXECUTE st3 using @c; +EXECUTE st4; +a +4 +8 +11 +14 +18 +21 +32 +42 +80 +90 +SELECT STATEMENT_NAME, SQL_TEXT, COUNT_REPREPARE, COUNT_EXECUTE, SUM_ROWS_SENT, SUM_SELECT_SCAN, SUM_NO_INDEX_USED FROM performance_schema.prepared_statements_instances ORDER BY STATEMENT_NAME, SQL_TEXT; +STATEMENT_NAME st1 +SQL_TEXT SELECT SQRT(POW(?,2) + POW(?,2)) AS hypotenuse +COUNT_REPREPARE 0 +COUNT_EXECUTE 1 +SUM_ROWS_SENT 1 +SUM_SELECT_SCAN 0 +SUM_NO_INDEX_USED 0 +STATEMENT_NAME st2 +SQL_TEXT SELECT * FROM t1 +COUNT_REPREPARE 0 +COUNT_EXECUTE 1 +SUM_ROWS_SENT 5 +SUM_SELECT_SCAN 1 +SUM_NO_INDEX_USED 1 +STATEMENT_NAME st3 +SQL_TEXT INSERT INTO t1 SELECT * FROM t1 WHERE a<=? +COUNT_REPREPARE 0 +COUNT_EXECUTE 1 +SUM_ROWS_SENT 0 +SUM_SELECT_SCAN 1 +SUM_NO_INDEX_USED 1 +STATEMENT_NAME st4 +SQL_TEXT (SELECT a FROM t1) UNION (SELECT a+10 FROM t1) ORDER BY RAND()*0+a +COUNT_REPREPARE 0 +COUNT_EXECUTE 1 +SUM_ROWS_SENT 10 +SUM_SELECT_SCAN 3 +SUM_NO_INDEX_USED 1 +SELECT EVENT_NAME, SQL_TEXT, OBJECT_TYPE, OBJECT_SCHEMA, OBJECT_NAME FROM performance_schema.events_statements_history_long WHERE CURRENT_SCHEMA='db' ; +EVENT_NAME statement/sql/truncate +SQL_TEXT TRUNCATE TABLE performance_schema.events_statements_history_long +OBJECT_TYPE NULL +OBJECT_SCHEMA NULL +OBJECT_NAME NULL +EVENT_NAME statement/sql/create_table +SQL_TEXT CREATE TABLE t1 (a INT NOT NULL) +OBJECT_TYPE NULL +OBJECT_SCHEMA NULL +OBJECT_NAME NULL +EVENT_NAME statement/sql/insert +SQL_TEXT INSERT INTO t1 VALUES (4), (8), (11), (32), (80) +OBJECT_TYPE NULL +OBJECT_SCHEMA NULL +OBJECT_NAME NULL +EVENT_NAME statement/sql/prepare_sql +SQL_TEXT PREPARE st1 FROM 'SELECT SQRT(POW(?,2) + POW(?,2)) AS hypotenuse' +OBJECT_TYPE NULL +OBJECT_SCHEMA NULL +OBJECT_NAME NULL +EVENT_NAME statement/sql/set_option +SQL_TEXT SET @table = 't1' +OBJECT_TYPE NULL +OBJECT_SCHEMA NULL +OBJECT_NAME NULL +EVENT_NAME statement/sql/set_option +SQL_TEXT SET @s = CONCAT('SELECT * FROM ', @table) +OBJECT_TYPE NULL +OBJECT_SCHEMA NULL +OBJECT_NAME NULL +EVENT_NAME statement/sql/prepare_sql +SQL_TEXT PREPARE st2 FROM @s +OBJECT_TYPE NULL +OBJECT_SCHEMA NULL +OBJECT_NAME NULL +EVENT_NAME statement/sql/prepare_sql +SQL_TEXT PREPARE st3 FROM 'INSERT INTO t1 SELECT * FROM t1 WHERE a<=?' +OBJECT_TYPE NULL +OBJECT_SCHEMA NULL +OBJECT_NAME NULL +EVENT_NAME statement/sql/prepare_sql +SQL_TEXT PREPARE st4 FROM +'(SELECT a FROM t1) UNION (SELECT a+10 FROM t1) ORDER BY RAND()*0+a' +OBJECT_TYPE NULL +OBJECT_SCHEMA NULL +OBJECT_NAME NULL +EVENT_NAME statement/sql/select +SQL_TEXT SELECT STATEMENT_NAME, SQL_TEXT, COUNT_REPREPARE, COUNT_EXECUTE, SUM_ROWS_SENT, SUM_SELECT_SCAN, SUM_NO_INDEX_USED FROM performance_schema.prepared_statements_instances ORDER BY STATEMENT_NAME, SQL_TEXT +OBJECT_TYPE NULL +OBJECT_SCHEMA NULL +OBJECT_NAME NULL +EVENT_NAME statement/sql/select +SQL_TEXT SELECT EVENT_NAME, SQL_TEXT, OBJECT_TYPE, OBJECT_SCHEMA, OBJECT_NAME FROM performance_schema.events_statements_history_long WHERE CURRENT_SCHEMA='db' +OBJECT_TYPE NULL +OBJECT_SCHEMA NULL +OBJECT_NAME NULL +EVENT_NAME statement/sql/set_option +SQL_TEXT SET @a = 3 +OBJECT_TYPE NULL +OBJECT_SCHEMA NULL +OBJECT_NAME NULL +EVENT_NAME statement/sql/set_option +SQL_TEXT SET @b = 4 +OBJECT_TYPE NULL +OBJECT_SCHEMA NULL +OBJECT_NAME NULL +EVENT_NAME statement/sql/execute_sql +SQL_TEXT EXECUTE st1 USING @a, @b +OBJECT_TYPE NULL +OBJECT_SCHEMA NULL +OBJECT_NAME NULL +EVENT_NAME statement/sql/execute_sql +SQL_TEXT EXECUTE st2 +OBJECT_TYPE NULL +OBJECT_SCHEMA NULL +OBJECT_NAME NULL +EVENT_NAME statement/sql/set_option +SQL_TEXT SET @c=3 +OBJECT_TYPE NULL +OBJECT_SCHEMA NULL +OBJECT_NAME NULL +EVENT_NAME statement/sql/execute_sql +SQL_TEXT EXECUTE st3 using @c +OBJECT_TYPE NULL +OBJECT_SCHEMA NULL +OBJECT_NAME NULL +EVENT_NAME statement/sql/execute_sql +SQL_TEXT EXECUTE st4 +OBJECT_TYPE NULL +OBJECT_SCHEMA NULL +OBJECT_NAME NULL +EVENT_NAME statement/sql/select +SQL_TEXT SELECT STATEMENT_NAME, SQL_TEXT, COUNT_REPREPARE, COUNT_EXECUTE, SUM_ROWS_SENT, SUM_SELECT_SCAN, SUM_NO_INDEX_USED FROM performance_schema.prepared_statements_instances ORDER BY STATEMENT_NAME, SQL_TEXT +OBJECT_TYPE NULL +OBJECT_SCHEMA NULL +OBJECT_NAME NULL +TRUNCATE TABLE performance_schema.prepared_statements_instances ; +SELECT STATEMENT_NAME, SQL_TEXT, COUNT_REPREPARE, COUNT_EXECUTE, SUM_ROWS_SENT, SUM_SELECT_SCAN, SUM_NO_INDEX_USED FROM performance_schema.prepared_statements_instances ORDER BY STATEMENT_NAME, SQL_TEXT; +STATEMENT_NAME st1 +SQL_TEXT SELECT SQRT(POW(?,2) + POW(?,2)) AS hypotenuse +COUNT_REPREPARE 0 +COUNT_EXECUTE 0 +SUM_ROWS_SENT 0 +SUM_SELECT_SCAN 0 +SUM_NO_INDEX_USED 0 +STATEMENT_NAME st2 +SQL_TEXT SELECT * FROM t1 +COUNT_REPREPARE 0 +COUNT_EXECUTE 0 +SUM_ROWS_SENT 0 +SUM_SELECT_SCAN 0 +SUM_NO_INDEX_USED 0 +STATEMENT_NAME st3 +SQL_TEXT INSERT INTO t1 SELECT * FROM t1 WHERE a<=? +COUNT_REPREPARE 0 +COUNT_EXECUTE 0 +SUM_ROWS_SENT 0 +SUM_SELECT_SCAN 0 +SUM_NO_INDEX_USED 0 +STATEMENT_NAME st4 +SQL_TEXT (SELECT a FROM t1) UNION (SELECT a+10 FROM t1) ORDER BY RAND()*0+a +COUNT_REPREPARE 0 +COUNT_EXECUTE 0 +SUM_ROWS_SENT 0 +SUM_SELECT_SCAN 0 +SUM_NO_INDEX_USED 0 +DEALLOCATE PREPARE st1; +DEALLOCATE PREPARE st2; +DEALLOCATE PREPARE st3; +DEALLOCATE PREPARE st4; +DROP TABLE t1; +SELECT STATEMENT_NAME, SQL_TEXT, COUNT_REPREPARE, COUNT_EXECUTE, SUM_ROWS_SENT, SUM_SELECT_SCAN, SUM_NO_INDEX_USED FROM performance_schema.prepared_statements_instances ORDER BY STATEMENT_NAME, SQL_TEXT; +SELECT EVENT_NAME, SQL_TEXT, OBJECT_TYPE, OBJECT_SCHEMA, OBJECT_NAME FROM performance_schema.events_statements_history_long WHERE CURRENT_SCHEMA='db' ; +EVENT_NAME statement/sql/truncate +SQL_TEXT TRUNCATE TABLE performance_schema.events_statements_history_long +OBJECT_TYPE NULL +OBJECT_SCHEMA NULL +OBJECT_NAME NULL +EVENT_NAME statement/sql/create_table +SQL_TEXT CREATE TABLE t1 (a INT NOT NULL) +OBJECT_TYPE NULL +OBJECT_SCHEMA NULL +OBJECT_NAME NULL +EVENT_NAME statement/sql/insert +SQL_TEXT INSERT INTO t1 VALUES (4), (8), (11), (32), (80) +OBJECT_TYPE NULL +OBJECT_SCHEMA NULL +OBJECT_NAME NULL +EVENT_NAME statement/sql/prepare_sql +SQL_TEXT PREPARE st1 FROM 'SELECT SQRT(POW(?,2) + POW(?,2)) AS hypotenuse' +OBJECT_TYPE NULL +OBJECT_SCHEMA NULL +OBJECT_NAME NULL +EVENT_NAME statement/sql/set_option +SQL_TEXT SET @table = 't1' +OBJECT_TYPE NULL +OBJECT_SCHEMA NULL +OBJECT_NAME NULL +EVENT_NAME statement/sql/set_option +SQL_TEXT SET @s = CONCAT('SELECT * FROM ', @table) +OBJECT_TYPE NULL +OBJECT_SCHEMA NULL +OBJECT_NAME NULL +EVENT_NAME statement/sql/prepare_sql +SQL_TEXT PREPARE st2 FROM @s +OBJECT_TYPE NULL +OBJECT_SCHEMA NULL +OBJECT_NAME NULL +EVENT_NAME statement/sql/prepare_sql +SQL_TEXT PREPARE st3 FROM 'INSERT INTO t1 SELECT * FROM t1 WHERE a<=?' +OBJECT_TYPE NULL +OBJECT_SCHEMA NULL +OBJECT_NAME NULL +EVENT_NAME statement/sql/prepare_sql +SQL_TEXT PREPARE st4 FROM +'(SELECT a FROM t1) UNION (SELECT a+10 FROM t1) ORDER BY RAND()*0+a' +OBJECT_TYPE NULL +OBJECT_SCHEMA NULL +OBJECT_NAME NULL +EVENT_NAME statement/sql/select +SQL_TEXT SELECT STATEMENT_NAME, SQL_TEXT, COUNT_REPREPARE, COUNT_EXECUTE, SUM_ROWS_SENT, SUM_SELECT_SCAN, SUM_NO_INDEX_USED FROM performance_schema.prepared_statements_instances ORDER BY STATEMENT_NAME, SQL_TEXT +OBJECT_TYPE NULL +OBJECT_SCHEMA NULL +OBJECT_NAME NULL +EVENT_NAME statement/sql/select +SQL_TEXT SELECT EVENT_NAME, SQL_TEXT, OBJECT_TYPE, OBJECT_SCHEMA, OBJECT_NAME FROM performance_schema.events_statements_history_long WHERE CURRENT_SCHEMA='db' +OBJECT_TYPE NULL +OBJECT_SCHEMA NULL +OBJECT_NAME NULL +EVENT_NAME statement/sql/set_option +SQL_TEXT SET @a = 3 +OBJECT_TYPE NULL +OBJECT_SCHEMA NULL +OBJECT_NAME NULL +EVENT_NAME statement/sql/set_option +SQL_TEXT SET @b = 4 +OBJECT_TYPE NULL +OBJECT_SCHEMA NULL +OBJECT_NAME NULL +EVENT_NAME statement/sql/execute_sql +SQL_TEXT EXECUTE st1 USING @a, @b +OBJECT_TYPE NULL +OBJECT_SCHEMA NULL +OBJECT_NAME NULL +EVENT_NAME statement/sql/execute_sql +SQL_TEXT EXECUTE st2 +OBJECT_TYPE NULL +OBJECT_SCHEMA NULL +OBJECT_NAME NULL +EVENT_NAME statement/sql/set_option +SQL_TEXT SET @c=3 +OBJECT_TYPE NULL +OBJECT_SCHEMA NULL +OBJECT_NAME NULL +EVENT_NAME statement/sql/execute_sql +SQL_TEXT EXECUTE st3 using @c +OBJECT_TYPE NULL +OBJECT_SCHEMA NULL +OBJECT_NAME NULL +EVENT_NAME statement/sql/execute_sql +SQL_TEXT EXECUTE st4 +OBJECT_TYPE NULL +OBJECT_SCHEMA NULL +OBJECT_NAME NULL +EVENT_NAME statement/sql/select +SQL_TEXT SELECT STATEMENT_NAME, SQL_TEXT, COUNT_REPREPARE, COUNT_EXECUTE, SUM_ROWS_SENT, SUM_SELECT_SCAN, SUM_NO_INDEX_USED FROM performance_schema.prepared_statements_instances ORDER BY STATEMENT_NAME, SQL_TEXT +OBJECT_TYPE NULL +OBJECT_SCHEMA NULL +OBJECT_NAME NULL +EVENT_NAME statement/sql/select +SQL_TEXT SELECT EVENT_NAME, SQL_TEXT, OBJECT_TYPE, OBJECT_SCHEMA, OBJECT_NAME FROM performance_schema.events_statements_history_long WHERE CURRENT_SCHEMA='db' +OBJECT_TYPE NULL +OBJECT_SCHEMA NULL +OBJECT_NAME NULL +EVENT_NAME statement/sql/truncate +SQL_TEXT TRUNCATE TABLE performance_schema.prepared_statements_instances +OBJECT_TYPE NULL +OBJECT_SCHEMA NULL +OBJECT_NAME NULL +EVENT_NAME statement/sql/select +SQL_TEXT SELECT STATEMENT_NAME, SQL_TEXT, COUNT_REPREPARE, COUNT_EXECUTE, SUM_ROWS_SENT, SUM_SELECT_SCAN, SUM_NO_INDEX_USED FROM performance_schema.prepared_statements_instances ORDER BY STATEMENT_NAME, SQL_TEXT +OBJECT_TYPE NULL +OBJECT_SCHEMA NULL +OBJECT_NAME NULL +EVENT_NAME statement/sql/dealloc_sql +SQL_TEXT DEALLOCATE PREPARE st1 +OBJECT_TYPE NULL +OBJECT_SCHEMA NULL +OBJECT_NAME NULL +EVENT_NAME statement/sql/dealloc_sql +SQL_TEXT DEALLOCATE PREPARE st2 +OBJECT_TYPE NULL +OBJECT_SCHEMA NULL +OBJECT_NAME NULL +EVENT_NAME statement/sql/dealloc_sql +SQL_TEXT DEALLOCATE PREPARE st3 +OBJECT_TYPE NULL +OBJECT_SCHEMA NULL +OBJECT_NAME NULL +EVENT_NAME statement/sql/dealloc_sql +SQL_TEXT DEALLOCATE PREPARE st4 +OBJECT_TYPE NULL +OBJECT_SCHEMA NULL +OBJECT_NAME NULL +EVENT_NAME statement/sql/drop_table +SQL_TEXT DROP TABLE t1 +OBJECT_TYPE NULL +OBJECT_SCHEMA NULL +OBJECT_NAME NULL +EVENT_NAME statement/sql/select +SQL_TEXT SELECT STATEMENT_NAME, SQL_TEXT, COUNT_REPREPARE, COUNT_EXECUTE, SUM_ROWS_SENT, SUM_SELECT_SCAN, SUM_NO_INDEX_USED FROM performance_schema.prepared_statements_instances ORDER BY STATEMENT_NAME, SQL_TEXT +OBJECT_TYPE NULL +OBJECT_SCHEMA NULL +OBJECT_NAME NULL +TRUNCATE TABLE performance_schema.events_statements_history_long ; +UPDATE performance_schema.setup_consumers SET ENABLED = 'NO'; +CREATE TABLE t1 (a INT NOT NULL); +INSERT INTO t1 VALUES (4), (8), (11), (32), (80); +PREPARE st1 FROM 'SELECT SQRT(POW(?,2) + POW(?,2)) AS hypotenuse'; +SET @table = 't1'; +SET @s = CONCAT('SELECT * FROM ', @table); +PREPARE st2 FROM @s; +PREPARE st3 FROM 'INSERT INTO t1 SELECT * FROM t1 WHERE a<=?'; +PREPARE st4 FROM +'(SELECT a FROM t1) UNION (SELECT a+10 FROM t1) ORDER BY RAND()*0+a'; +SELECT STATEMENT_NAME, SQL_TEXT, COUNT_REPREPARE, COUNT_EXECUTE, SUM_ROWS_SENT, SUM_SELECT_SCAN, SUM_NO_INDEX_USED FROM performance_schema.prepared_statements_instances ORDER BY STATEMENT_NAME, SQL_TEXT; +SELECT EVENT_NAME, SQL_TEXT, OBJECT_TYPE, OBJECT_SCHEMA, OBJECT_NAME FROM performance_schema.events_statements_history_long WHERE CURRENT_SCHEMA='db' ; +EVENT_NAME statement/sql/truncate +SQL_TEXT TRUNCATE TABLE performance_schema.events_statements_history_long +OBJECT_TYPE NULL +OBJECT_SCHEMA NULL +OBJECT_NAME NULL +SET @a = 3; +SET @b = 4; +EXECUTE st1 USING @a, @b; +hypotenuse +5 +EXECUTE st2; +a +4 +8 +11 +32 +80 +SET @c=3; +EXECUTE st3 using @c; +EXECUTE st4; +a +4 +8 +11 +14 +18 +21 +32 +42 +80 +90 +SELECT STATEMENT_NAME, SQL_TEXT, COUNT_REPREPARE, COUNT_EXECUTE, SUM_ROWS_SENT, SUM_SELECT_SCAN, SUM_NO_INDEX_USED FROM performance_schema.prepared_statements_instances ORDER BY STATEMENT_NAME, SQL_TEXT; +SELECT EVENT_NAME, SQL_TEXT, OBJECT_TYPE, OBJECT_SCHEMA, OBJECT_NAME FROM performance_schema.events_statements_history_long WHERE CURRENT_SCHEMA='db' ; +EVENT_NAME statement/sql/truncate +SQL_TEXT TRUNCATE TABLE performance_schema.events_statements_history_long +OBJECT_TYPE NULL +OBJECT_SCHEMA NULL +OBJECT_NAME NULL +DEALLOCATE PREPARE st1; +DEALLOCATE PREPARE st2; +DEALLOCATE PREPARE st3; +DEALLOCATE PREPARE st4; +DROP TABLE t1; +SELECT STATEMENT_NAME, SQL_TEXT, COUNT_REPREPARE, COUNT_EXECUTE, SUM_ROWS_SENT, SUM_SELECT_SCAN, SUM_NO_INDEX_USED FROM performance_schema.prepared_statements_instances ORDER BY STATEMENT_NAME, SQL_TEXT; +SELECT EVENT_NAME, SQL_TEXT, OBJECT_TYPE, OBJECT_SCHEMA, OBJECT_NAME FROM performance_schema.events_statements_history_long WHERE CURRENT_SCHEMA='db' ; +EVENT_NAME statement/sql/truncate +SQL_TEXT TRUNCATE TABLE performance_schema.events_statements_history_long +OBJECT_TYPE NULL +OBJECT_SCHEMA NULL +OBJECT_NAME NULL +TRUNCATE TABLE performance_schema.events_statements_history_long ; +UPDATE performance_schema.setup_consumers SET ENABLED = 'YES'; +PREPARE st FROM 'SELECT SUM(1000 + ?) AS total'; +SELECT STATEMENT_NAME, SQL_TEXT, COUNT_REPREPARE, COUNT_EXECUTE, SUM_ROWS_SENT, SUM_SELECT_SCAN, SUM_NO_INDEX_USED FROM performance_schema.prepared_statements_instances ORDER BY STATEMENT_NAME, SQL_TEXT; +STATEMENT_NAME st +SQL_TEXT SELECT SUM(1000 + ?) AS total +COUNT_REPREPARE 0 +COUNT_EXECUTE 0 +SUM_ROWS_SENT 0 +SUM_SELECT_SCAN 0 +SUM_NO_INDEX_USED 0 +SET @d=100; +EXECUTE st USING @d; +total +1100 +SELECT STATEMENT_NAME, SQL_TEXT, COUNT_REPREPARE, COUNT_EXECUTE, SUM_ROWS_SENT, SUM_SELECT_SCAN, SUM_NO_INDEX_USED FROM performance_schema.prepared_statements_instances ORDER BY STATEMENT_NAME, SQL_TEXT; +STATEMENT_NAME st +SQL_TEXT SELECT SUM(1000 + ?) AS total +COUNT_REPREPARE 0 +COUNT_EXECUTE 1 +SUM_ROWS_SENT 1 +SUM_SELECT_SCAN 0 +SUM_NO_INDEX_USED 0 +SET @d = @d + 100; +EXECUTE st USING @d; +total +1200 +SELECT STATEMENT_NAME, SQL_TEXT, COUNT_REPREPARE, COUNT_EXECUTE, SUM_ROWS_SENT, SUM_SELECT_SCAN, SUM_NO_INDEX_USED FROM performance_schema.prepared_statements_instances ORDER BY STATEMENT_NAME, SQL_TEXT; +STATEMENT_NAME st +SQL_TEXT SELECT SUM(1000 + ?) AS total +COUNT_REPREPARE 0 +COUNT_EXECUTE 2 +SUM_ROWS_SENT 2 +SUM_SELECT_SCAN 0 +SUM_NO_INDEX_USED 0 +SET @d = @d + 100; +EXECUTE st USING @d; +total +1300 +SELECT STATEMENT_NAME, SQL_TEXT, COUNT_REPREPARE, COUNT_EXECUTE, SUM_ROWS_SENT, SUM_SELECT_SCAN, SUM_NO_INDEX_USED FROM performance_schema.prepared_statements_instances ORDER BY STATEMENT_NAME, SQL_TEXT; +STATEMENT_NAME st +SQL_TEXT SELECT SUM(1000 + ?) AS total +COUNT_REPREPARE 0 +COUNT_EXECUTE 3 +SUM_ROWS_SENT 3 +SUM_SELECT_SCAN 0 +SUM_NO_INDEX_USED 0 +SET @d = @d + 100; +EXECUTE st USING @d; +total +1400 +SELECT STATEMENT_NAME, SQL_TEXT, COUNT_REPREPARE, COUNT_EXECUTE, SUM_ROWS_SENT, SUM_SELECT_SCAN, SUM_NO_INDEX_USED FROM performance_schema.prepared_statements_instances ORDER BY STATEMENT_NAME, SQL_TEXT; +STATEMENT_NAME st +SQL_TEXT SELECT SUM(1000 + ?) AS total +COUNT_REPREPARE 0 +COUNT_EXECUTE 4 +SUM_ROWS_SENT 4 +SUM_SELECT_SCAN 0 +SUM_NO_INDEX_USED 0 +SET @d = @d + 100; +EXECUTE st USING @d; +total +1500 +SELECT STATEMENT_NAME, SQL_TEXT, COUNT_REPREPARE, COUNT_EXECUTE, SUM_ROWS_SENT, SUM_SELECT_SCAN, SUM_NO_INDEX_USED FROM performance_schema.prepared_statements_instances ORDER BY STATEMENT_NAME, SQL_TEXT; +STATEMENT_NAME st +SQL_TEXT SELECT SUM(1000 + ?) AS total +COUNT_REPREPARE 0 +COUNT_EXECUTE 5 +SUM_ROWS_SENT 5 +SUM_SELECT_SCAN 0 +SUM_NO_INDEX_USED 0 +SET @d = @d + 100; +EXECUTE st USING @d; +total +1600 +SELECT STATEMENT_NAME, SQL_TEXT, COUNT_REPREPARE, COUNT_EXECUTE, SUM_ROWS_SENT, SUM_SELECT_SCAN, SUM_NO_INDEX_USED FROM performance_schema.prepared_statements_instances ORDER BY STATEMENT_NAME, SQL_TEXT; +STATEMENT_NAME st +SQL_TEXT SELECT SUM(1000 + ?) AS total +COUNT_REPREPARE 0 +COUNT_EXECUTE 6 +SUM_ROWS_SENT 6 +SUM_SELECT_SCAN 0 +SUM_NO_INDEX_USED 0 +TRUNCATE TABLE performance_schema.prepared_statements_instances ; +SELECT STATEMENT_NAME, SQL_TEXT, COUNT_REPREPARE, COUNT_EXECUTE, SUM_ROWS_SENT, SUM_SELECT_SCAN, SUM_NO_INDEX_USED FROM performance_schema.prepared_statements_instances ORDER BY STATEMENT_NAME, SQL_TEXT; +STATEMENT_NAME st +SQL_TEXT SELECT SUM(1000 + ?) AS total +COUNT_REPREPARE 0 +COUNT_EXECUTE 0 +SUM_ROWS_SENT 0 +SUM_SELECT_SCAN 0 +SUM_NO_INDEX_USED 0 +UPDATE performance_schema.setup_instruments SET ENABLED = 'NO' +WHERE NAME like "statement/sql/execute%"; +SET @d=3274; +EXECUTE st USING @d; +total +4274 +SELECT STATEMENT_NAME, SQL_TEXT, COUNT_REPREPARE, COUNT_EXECUTE, SUM_ROWS_SENT, SUM_SELECT_SCAN, SUM_NO_INDEX_USED FROM performance_schema.prepared_statements_instances ORDER BY STATEMENT_NAME, SQL_TEXT; +STATEMENT_NAME st +SQL_TEXT SELECT SUM(1000 + ?) AS total +COUNT_REPREPARE 0 +COUNT_EXECUTE 0 +SUM_ROWS_SENT 0 +SUM_SELECT_SCAN 0 +SUM_NO_INDEX_USED 0 +UPDATE performance_schema.setup_instruments SET ENABLED = 'NO' + WHERE NAME like "statement/sql/prepare%"; +DEALLOCATE PREPARE st; +SELECT STATEMENT_NAME, SQL_TEXT, COUNT_REPREPARE, COUNT_EXECUTE, SUM_ROWS_SENT, SUM_SELECT_SCAN, SUM_NO_INDEX_USED FROM performance_schema.prepared_statements_instances ORDER BY STATEMENT_NAME, SQL_TEXT; +UPDATE performance_schema.setup_instruments SET ENABLED = 'YES' + WHERE NAME like "statement/sql/prepare%"; +UPDATE performance_schema.setup_instruments SET ENABLED = 'YES' +WHERE NAME like "statement/sql/execute%"; +CREATE TABLE tab( +Id INT, +name CHAR(10), +age INT +); +INSERT INTO tab VALUES(1,"Nakshatr",25),(2,"chanda",24),(3,"tejas",78); +PREPARE st FROM 'SELECT * FROM tab'; +SELECT STATEMENT_NAME, SQL_TEXT, COUNT_REPREPARE, COUNT_EXECUTE, SUM_ROWS_SENT, SUM_SELECT_SCAN, SUM_NO_INDEX_USED FROM performance_schema.prepared_statements_instances ORDER BY STATEMENT_NAME, SQL_TEXT; +STATEMENT_NAME st +SQL_TEXT SELECT * FROM tab +COUNT_REPREPARE 0 +COUNT_EXECUTE 0 +SUM_ROWS_SENT 0 +SUM_SELECT_SCAN 0 +SUM_NO_INDEX_USED 0 +EXECUTE st; +Id name age +1 Nakshatr 25 +2 chanda 24 +3 tejas 78 +SELECT STATEMENT_NAME, SQL_TEXT, COUNT_REPREPARE, COUNT_EXECUTE, SUM_ROWS_SENT, SUM_SELECT_SCAN, SUM_NO_INDEX_USED FROM performance_schema.prepared_statements_instances ORDER BY STATEMENT_NAME, SQL_TEXT; +STATEMENT_NAME st +SQL_TEXT SELECT * FROM tab +COUNT_REPREPARE 0 +COUNT_EXECUTE 1 +SUM_ROWS_SENT 3 +SUM_SELECT_SCAN 1 +SUM_NO_INDEX_USED 1 +ALTER TABLE tab DROP COLUMN age; +EXECUTE st; +Id name +1 Nakshatr +2 chanda +3 tejas +SELECT STATEMENT_NAME, SQL_TEXT, COUNT_REPREPARE, COUNT_EXECUTE, SUM_ROWS_SENT, SUM_SELECT_SCAN, SUM_NO_INDEX_USED FROM performance_schema.prepared_statements_instances ORDER BY STATEMENT_NAME, SQL_TEXT; +STATEMENT_NAME st +SQL_TEXT SELECT * FROM tab +COUNT_REPREPARE 1 +COUNT_EXECUTE 2 +SUM_ROWS_SENT 6 +SUM_SELECT_SCAN 2 +SUM_NO_INDEX_USED 2 +ALTER TABLE tab ADD COLUMN age INT NULL; +EXECUTE st; +Id name age +1 Nakshatr NULL +2 chanda NULL +3 tejas NULL +SELECT STATEMENT_NAME, SQL_TEXT, COUNT_REPREPARE, COUNT_EXECUTE, SUM_ROWS_SENT, SUM_SELECT_SCAN, SUM_NO_INDEX_USED FROM performance_schema.prepared_statements_instances ORDER BY STATEMENT_NAME, SQL_TEXT; +STATEMENT_NAME st +SQL_TEXT SELECT * FROM tab +COUNT_REPREPARE 2 +COUNT_EXECUTE 3 +SUM_ROWS_SENT 9 +SUM_SELECT_SCAN 3 +SUM_NO_INDEX_USED 3 +TRUNCATE TABLE performance_schema.prepared_statements_instances ; +SELECT STATEMENT_NAME, SQL_TEXT, COUNT_REPREPARE, COUNT_EXECUTE, SUM_ROWS_SENT, SUM_SELECT_SCAN, SUM_NO_INDEX_USED FROM performance_schema.prepared_statements_instances ORDER BY STATEMENT_NAME, SQL_TEXT; +STATEMENT_NAME st +SQL_TEXT SELECT * FROM tab +COUNT_REPREPARE 0 +COUNT_EXECUTE 0 +SUM_ROWS_SENT 0 +SUM_SELECT_SCAN 0 +SUM_NO_INDEX_USED 0 +DEALLOCATE PREPARE st; +SELECT STATEMENT_NAME, SQL_TEXT, COUNT_REPREPARE, COUNT_EXECUTE, SUM_ROWS_SENT, SUM_SELECT_SCAN, SUM_NO_INDEX_USED FROM performance_schema.prepared_statements_instances ORDER BY STATEMENT_NAME, SQL_TEXT; +TRUNCATE TABLE performance_schema.prepared_statements_instances ; +TRUNCATE TABLE performance_schema.events_statements_history_long ; +DROP TABLE tab; +DROP DATABASE db; diff --git a/mysql-test/suite/perfschema/r/prepared_stmts_by_stored_programs.result b/mysql-test/suite/perfschema/r/prepared_stmts_by_stored_programs.result new file mode 100644 index 00000000..318c4a1d --- /dev/null +++ b/mysql-test/suite/perfschema/r/prepared_stmts_by_stored_programs.result @@ -0,0 +1,126 @@ +TRUNCATE TABLE performance_schema.prepared_statements_instances; +CREATE DATABASE db; +USE db; +CREATE TABLE t +( +a INT, +b CHAR(10), +name CHAR(10) +); +SET sql_mode = 'NO_ENGINE_SUBSTITUTION'; +INSERT INTO t VALUES (1,"kuchipudi","Vempati"); +INSERT INTO t VALUES (2,"odissi","Mohapatra"); +INSERT INTO t VALUES (3,"kathak","Maharaj"); +INSERT INTO t VALUES (4,"mohiyattam","Kalyanikutty"); +Warnings: +Warning 1265 Data truncated for column 'name' at row 1 +INSERT INTO t VALUES (5,"manipuri","Guru"); +INSERT INTO t VALUES (6,"kathakali","Manavedan"); +SET sql_mode= default; +CREATE PROCEDURE p1() +BEGIN +PREPARE st FROM 'SELECT * FROM t WHERE a<=?' ; +SET @a=3; +EXECUTE st using @a; +END| +CALL p1()| +a b name +1 kuchipudi Vempati +2 odissi Mohapatra +3 kathak Maharaj +SELECT STATEMENT_NAME, SQL_TEXT, COUNT_EXECUTE, COUNT_REPREPARE, OWNER_OBJECT_TYPE, OWNER_OBJECT_SCHEMA, OWNER_OBJECT_NAME FROM performance_schema.prepared_statements_instances| +STATEMENT_NAME SQL_TEXT COUNT_EXECUTE COUNT_REPREPARE OWNER_OBJECT_TYPE OWNER_OBJECT_SCHEMA OWNER_OBJECT_NAME +st SELECT * FROM t WHERE a<=? 1 0 PROCEDURE db p1 +DEALLOCATE PREPARE st| +SELECT STATEMENT_NAME, SQL_TEXT, COUNT_EXECUTE, COUNT_REPREPARE, OWNER_OBJECT_TYPE, OWNER_OBJECT_SCHEMA, OWNER_OBJECT_NAME FROM performance_schema.prepared_statements_instances| +STATEMENT_NAME SQL_TEXT COUNT_EXECUTE COUNT_REPREPARE OWNER_OBJECT_TYPE OWNER_OBJECT_SCHEMA OWNER_OBJECT_NAME +CREATE PROCEDURE p2() +BEGIN +PREPARE st1 FROM 'INSERT INTO t SELECT * FROM t WHERE a<=?' ; +END| +CALL p2()| +SELECT STATEMENT_NAME, SQL_TEXT, COUNT_EXECUTE, COUNT_REPREPARE, OWNER_OBJECT_TYPE, OWNER_OBJECT_SCHEMA, OWNER_OBJECT_NAME FROM performance_schema.prepared_statements_instances| +STATEMENT_NAME SQL_TEXT COUNT_EXECUTE COUNT_REPREPARE OWNER_OBJECT_TYPE OWNER_OBJECT_SCHEMA OWNER_OBJECT_NAME +st1 INSERT INTO t SELECT * FROM t WHERE a<=? 0 0 PROCEDURE db p2 +SET @a=4| +EXECUTE st1 using @a| +SELECT STATEMENT_NAME, SQL_TEXT, COUNT_EXECUTE, COUNT_REPREPARE, OWNER_OBJECT_TYPE, OWNER_OBJECT_SCHEMA, OWNER_OBJECT_NAME FROM performance_schema.prepared_statements_instances| +STATEMENT_NAME SQL_TEXT COUNT_EXECUTE COUNT_REPREPARE OWNER_OBJECT_TYPE OWNER_OBJECT_SCHEMA OWNER_OBJECT_NAME +st1 INSERT INTO t SELECT * FROM t WHERE a<=? 1 0 PROCEDURE db p2 +CREATE PROCEDURE p3() +BEGIN +SET @a=2; +EXECUTE st1 using @a; +END| +CALL p3()| +SELECT STATEMENT_NAME, SQL_TEXT, COUNT_EXECUTE, COUNT_REPREPARE, OWNER_OBJECT_TYPE, OWNER_OBJECT_SCHEMA, OWNER_OBJECT_NAME FROM performance_schema.prepared_statements_instances| +STATEMENT_NAME SQL_TEXT COUNT_EXECUTE COUNT_REPREPARE OWNER_OBJECT_TYPE OWNER_OBJECT_SCHEMA OWNER_OBJECT_NAME +st1 INSERT INTO t SELECT * FROM t WHERE a<=? 2 0 PROCEDURE db p2 +DEALLOCATE PREPARE st1| +SELECT STATEMENT_NAME, SQL_TEXT, COUNT_EXECUTE, COUNT_REPREPARE, OWNER_OBJECT_TYPE, OWNER_OBJECT_SCHEMA, OWNER_OBJECT_NAME FROM performance_schema.prepared_statements_instances| +STATEMENT_NAME SQL_TEXT COUNT_EXECUTE COUNT_REPREPARE OWNER_OBJECT_TYPE OWNER_OBJECT_SCHEMA OWNER_OBJECT_NAME +PREPARE st2 FROM 'UPDATE t SET a=a+1 WHERE b=?'| +SELECT STATEMENT_NAME, SQL_TEXT, COUNT_EXECUTE, COUNT_REPREPARE, OWNER_OBJECT_TYPE, OWNER_OBJECT_SCHEMA, OWNER_OBJECT_NAME FROM performance_schema.prepared_statements_instances| +STATEMENT_NAME SQL_TEXT COUNT_EXECUTE COUNT_REPREPARE OWNER_OBJECT_TYPE OWNER_OBJECT_SCHEMA OWNER_OBJECT_NAME +st2 UPDATE t SET a=a+1 WHERE b=? 0 0 NULL NULL NULL +CREATE PROCEDURE p4() +BEGIN +SET @b='kuchipudi'; +EXECUTE st2 USING @b; +END| +CALL p4()| +SELECT STATEMENT_NAME, SQL_TEXT, COUNT_EXECUTE, COUNT_REPREPARE, OWNER_OBJECT_TYPE, OWNER_OBJECT_SCHEMA, OWNER_OBJECT_NAME FROM performance_schema.prepared_statements_instances| +STATEMENT_NAME SQL_TEXT COUNT_EXECUTE COUNT_REPREPARE OWNER_OBJECT_TYPE OWNER_OBJECT_SCHEMA OWNER_OBJECT_NAME +st2 UPDATE t SET a=a+1 WHERE b=? 1 0 NULL NULL NULL +ALTER TABLE t DROP COLUMN name; +# COUNT_REPREPARE must be 1 +CALL p4()| +SELECT STATEMENT_NAME, SQL_TEXT, COUNT_EXECUTE, COUNT_REPREPARE, OWNER_OBJECT_TYPE, OWNER_OBJECT_SCHEMA, OWNER_OBJECT_NAME FROM performance_schema.prepared_statements_instances| +STATEMENT_NAME SQL_TEXT COUNT_EXECUTE COUNT_REPREPARE OWNER_OBJECT_TYPE OWNER_OBJECT_SCHEMA OWNER_OBJECT_NAME +st2 UPDATE t SET a=a+1 WHERE b=? 2 1 NULL NULL NULL +DEALLOCATE PREPARE st2| +SELECT STATEMENT_NAME, SQL_TEXT, COUNT_EXECUTE, COUNT_REPREPARE, OWNER_OBJECT_TYPE, OWNER_OBJECT_SCHEMA, OWNER_OBJECT_NAME FROM performance_schema.prepared_statements_instances| +STATEMENT_NAME SQL_TEXT COUNT_EXECUTE COUNT_REPREPARE OWNER_OBJECT_TYPE OWNER_OBJECT_SCHEMA OWNER_OBJECT_NAME +CREATE PROCEDURE p5() +BEGIN +SET @a=1; +SELECT @a; +END| +PREPARE st3 FROM 'CALL p5()'| +SELECT STATEMENT_NAME, SQL_TEXT, COUNT_EXECUTE, COUNT_REPREPARE, OWNER_OBJECT_TYPE, OWNER_OBJECT_SCHEMA, OWNER_OBJECT_NAME FROM performance_schema.prepared_statements_instances| +STATEMENT_NAME SQL_TEXT COUNT_EXECUTE COUNT_REPREPARE OWNER_OBJECT_TYPE OWNER_OBJECT_SCHEMA OWNER_OBJECT_NAME +st3 CALL p5() 0 0 NULL NULL NULL +EXECUTE st3| +@a +1 +SELECT STATEMENT_NAME, SQL_TEXT, COUNT_EXECUTE, COUNT_REPREPARE, OWNER_OBJECT_TYPE, OWNER_OBJECT_SCHEMA, OWNER_OBJECT_NAME FROM performance_schema.prepared_statements_instances| +STATEMENT_NAME SQL_TEXT COUNT_EXECUTE COUNT_REPREPARE OWNER_OBJECT_TYPE OWNER_OBJECT_SCHEMA OWNER_OBJECT_NAME +st3 CALL p5() 1 0 NULL NULL NULL +DEALLOCATE PREPARE st3| +SELECT STATEMENT_NAME, SQL_TEXT, COUNT_EXECUTE, COUNT_REPREPARE, OWNER_OBJECT_TYPE, OWNER_OBJECT_SCHEMA, OWNER_OBJECT_NAME FROM performance_schema.prepared_statements_instances| +STATEMENT_NAME SQL_TEXT COUNT_EXECUTE COUNT_REPREPARE OWNER_OBJECT_TYPE OWNER_OBJECT_SCHEMA OWNER_OBJECT_NAME +CREATE TABLE tab(a INT); +SET GLOBAL event_scheduler=ON; +CREATE EVENT e1 ON SCHEDULE EVERY 10 HOUR DO +BEGIN +PREPARE st FROM 'INSERT INTO tab VALUES(?)'; +SET @a=1; +EXECUTE st USING @a; +END| +SELECT * FROM tab LIMIT 1; +a +1 +SET GLOBAL event_scheduler=OFF; +SELECT STATEMENT_NAME, SQL_TEXT, COUNT_EXECUTE, COUNT_REPREPARE, OWNER_OBJECT_TYPE, OWNER_OBJECT_SCHEMA, OWNER_OBJECT_NAME FROM performance_schema.prepared_statements_instances; +STATEMENT_NAME SQL_TEXT COUNT_EXECUTE COUNT_REPREPARE OWNER_OBJECT_TYPE OWNER_OBJECT_SCHEMA OWNER_OBJECT_NAME +TRUNCATE TABLE performance_schema.prepared_statements_instances; +TRUNCATE TABLE performance_schema.events_statements_history_long; +DROP TABLE t; +DROP TABLE tab; +DROP PROCEDURE p1; +DROP PROCEDURE p2; +DROP PROCEDURE p3; +DROP PROCEDURE p4; +DROP PROCEDURE p5; +DROP EVENT IF EXISTS e1; +DROP DATABASE db; diff --git a/mysql-test/suite/perfschema/r/privilege.result b/mysql-test/suite/perfschema/r/privilege.result new file mode 100644 index 00000000..75b01842 --- /dev/null +++ b/mysql-test/suite/perfschema/r/privilege.result @@ -0,0 +1,616 @@ +show grants; +Grants for root@localhost +GRANT ALL PRIVILEGES ON *.* TO `root`@`localhost` WITH GRANT OPTION +GRANT PROXY ON ''@'%' TO 'root'@'localhost' WITH GRANT OPTION +create user 'pfs_user_1'@localhost; +create user 'pfs_user_2'@localhost; +create user 'pfs_user_3'@localhost; +grant SELECT,INSERT,UPDATE,DELETE,DROP,CREATE on test.* to 'pfs_user_1'@localhost; +grant SELECT,INSERT,UPDATE,DELETE,DROP,CREATE on test.* to 'pfs_user_2'@localhost; +grant SELECT,INSERT,UPDATE,DELETE,DROP,CREATE on test.* to 'pfs_user_3'@localhost; +grant ALL on *.* to 'pfs_user_1'@localhost with GRANT OPTION; +grant ALL on performance_schema.* to 'pfs_user_2'@localhost +with GRANT OPTION; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +grant CREATE on performance_schema.* to 'pfs_user_2'@localhost; +grant DROP on performance_schema.* to 'pfs_user_2'@localhost; +grant REFERENCES on performance_schema.* to 'pfs_user_2'@localhost; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +grant INDEX on performance_schema.* to 'pfs_user_2'@localhost; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +grant ALTER on performance_schema.* to 'pfs_user_2'@localhost; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +grant CREATE TEMPORARY TABLES on performance_schema.* to 'pfs_user_2'@localhost; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +grant EXECUTE on performance_schema.* to 'pfs_user_2'@localhost; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +grant CREATE VIEW on performance_schema.* to 'pfs_user_2'@localhost; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +grant SHOW VIEW on performance_schema.* to 'pfs_user_2'@localhost; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +grant CREATE ROUTINE on performance_schema.* to 'pfs_user_2'@localhost; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +grant ALTER ROUTINE on performance_schema.* to 'pfs_user_2'@localhost; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +grant EVENT on performance_schema.* to 'pfs_user_2'@localhost; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +grant TRIGGER on performance_schema.* to 'pfs_user_2'@localhost; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +grant SELECT on performance_schema.* to 'pfs_user_2'@localhost; +grant INSERT on performance_schema.* to 'pfs_user_2'@localhost; +grant UPDATE on performance_schema.* to 'pfs_user_2'@localhost; +grant DELETE on performance_schema.* to 'pfs_user_2'@localhost; +grant LOCK TABLES on performance_schema.* to 'pfs_user_2'@localhost; +grant ALL on performance_schema.setup_instruments to 'pfs_user_3'@localhost +with GRANT OPTION; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +grant CREATE on performance_schema.setup_instruments to 'pfs_user_3'@localhost; +grant DROP on performance_schema.setup_instruments to 'pfs_user_3'@localhost; +grant REFERENCES on performance_schema.setup_instruments to 'pfs_user_3'@localhost; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +grant INDEX on performance_schema.setup_instruments to 'pfs_user_3'@localhost; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +grant ALTER on performance_schema.setup_instruments to 'pfs_user_3'@localhost; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +grant CREATE VIEW on performance_schema.setup_instruments to 'pfs_user_3'@localhost; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +grant SHOW VIEW on performance_schema.setup_instruments to 'pfs_user_3'@localhost; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +grant TRIGGER on performance_schema.setup_instruments to 'pfs_user_3'@localhost; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +grant INSERT on performance_schema.setup_instruments to 'pfs_user_3'@localhost; +ERROR 42000: INSERT, GRANT command denied to user 'root'@'localhost' for table `performance_schema`.`setup_instruments` +grant DELETE on performance_schema.setup_instruments to 'pfs_user_3'@localhost; +ERROR 42000: DELETE, GRANT command denied to user 'root'@'localhost' for table `performance_schema`.`setup_instruments` +grant SELECT on performance_schema.setup_instruments to 'pfs_user_3'@localhost +with GRANT OPTION; +grant UPDATE on performance_schema.setup_instruments to 'pfs_user_3'@localhost +with GRANT OPTION; +grant ALL on performance_schema.events_waits_current to 'pfs_user_3'@localhost +with GRANT OPTION; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +grant CREATE on performance_schema.events_waits_current to 'pfs_user_3'@localhost; +grant DROP on performance_schema.events_waits_current to 'pfs_user_3'@localhost; +grant REFERENCES on performance_schema.events_waits_current to 'pfs_user_3'@localhost; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +grant INDEX on performance_schema.events_waits_current to 'pfs_user_3'@localhost; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +grant ALTER on performance_schema.events_waits_current to 'pfs_user_3'@localhost; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +grant CREATE VIEW on performance_schema.events_waits_current to 'pfs_user_3'@localhost; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +grant SHOW VIEW on performance_schema.events_waits_current to 'pfs_user_3'@localhost; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +grant TRIGGER on performance_schema.events_waits_current to 'pfs_user_3'@localhost; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +grant INSERT on performance_schema.events_waits_current to 'pfs_user_3'@localhost; +ERROR 42000: INSERT, GRANT command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_current` +grant UPDATE on performance_schema.events_waits_current to 'pfs_user_3'@localhost; +ERROR 42000: UPDATE, GRANT command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_current` +grant DELETE on performance_schema.events_waits_current to 'pfs_user_3'@localhost; +ERROR 42000: DELETE, GRANT command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_current` +grant SELECT on performance_schema.events_waits_current to 'pfs_user_3'@localhost +with GRANT OPTION; +grant ALL on performance_schema.file_instances to 'pfs_user_3'@localhost +with GRANT OPTION; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +grant CREATE on performance_schema.file_instances to 'pfs_user_3'@localhost; +grant DROP on performance_schema.file_instances to 'pfs_user_3'@localhost; +grant REFERENCES on performance_schema.file_instances to 'pfs_user_3'@localhost; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +grant INDEX on performance_schema.file_instances to 'pfs_user_3'@localhost; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +grant ALTER on performance_schema.file_instances to 'pfs_user_3'@localhost; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +grant CREATE VIEW on performance_schema.file_instances to 'pfs_user_3'@localhost; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +grant SHOW VIEW on performance_schema.file_instances to 'pfs_user_3'@localhost; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +grant TRIGGER on performance_schema.file_instances to 'pfs_user_3'@localhost; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +grant INSERT on performance_schema.file_instances to 'pfs_user_3'@localhost; +ERROR 42000: INSERT, GRANT command denied to user 'root'@'localhost' for table `performance_schema`.`file_instances` +grant UPDATE on performance_schema.file_instances to 'pfs_user_3'@localhost; +ERROR 42000: UPDATE, GRANT command denied to user 'root'@'localhost' for table `performance_schema`.`file_instances` +grant DELETE on performance_schema.file_instances to 'pfs_user_3'@localhost; +ERROR 42000: DELETE, GRANT command denied to user 'root'@'localhost' for table `performance_schema`.`file_instances` +grant SELECT on performance_schema.file_instances to 'pfs_user_3'@localhost +with GRANT OPTION; +grant LOCK TABLES on performance_schema.* to 'pfs_user_3'@localhost +with GRANT OPTION; +flush privileges; +drop table if exists test.t1; +rename table performance_schema.setup_instruments to test.t1; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +rename table performance_schema.events_waits_current to test.t1; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +rename table performance_schema.file_instances to test.t1; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +rename table performance_schema.setup_instruments to performance_schema.t1; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +rename table performance_schema.events_waits_current to performance_schema.t1; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +rename table performance_schema.file_instances to performance_schema.t1; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +rename table performance_schema.setup_instruments +to performance_schema.events_waits_current; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +rename table performance_schema.events_waits_current +to performance_schema.setup_instruments; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +create procedure performance_schema.my_proc() begin end; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +create function performance_schema.my_func() returns int return 0; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +create event performance_schema.my_event on schedule every 15 minute +do begin end; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +create trigger performance_schema.bi_setup_instruments +before insert on performance_schema.setup_instruments +for each row begin end; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +create trigger performance_schema.bi_events_waits_current +before insert on performance_schema.events_waits_current +for each row begin end; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +create trigger performance_schema.bi_file_instances +before insert on performance_schema.file_instances +for each row begin end; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +create table test.t1(a int) engine=PERFORMANCE_SCHEMA; +ERROR HY000: Can't create table `test`.`t1` (errno: 131 "Command not supported by the engine") +create table test.t1 like performance_schema.setup_instruments; +ERROR HY000: Can't create table `test`.`t1` (errno: 131 "Command not supported by the engine") +create table test.t1 like performance_schema.events_waits_current; +ERROR HY000: Can't create table `test`.`t1` (errno: 131 "Command not supported by the engine") +create table test.t1 like performance_schema.file_instances; +ERROR HY000: Can't create table `test`.`t1` (errno: 131 "Command not supported by the engine") +insert into performance_schema.setup_instruments +set name="foo"; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`setup_instruments` +insert into performance_schema.events_waits_current +set name="foo"; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_current` +insert into performance_schema.file_instances +set name="foo"; +ERROR 42000: INSERT command denied to user 'root'@'localhost' for table `performance_schema`.`file_instances` +delete from performance_schema.setup_instruments; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`setup_instruments` +delete from performance_schema.events_waits_current; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_current` +delete from performance_schema.file_instances; +ERROR 42000: DELETE command denied to user 'root'@'localhost' for table `performance_schema`.`file_instances` +lock table performance_schema.setup_instruments read; +unlock tables; +lock table performance_schema.setup_instruments write; +unlock tables; +lock table performance_schema.events_waits_current read; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_current` +unlock tables; +lock table performance_schema.events_waits_current write; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`events_waits_current` +unlock tables; +lock table performance_schema.file_instances read; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`file_instances` +unlock tables; +lock table performance_schema.file_instances write; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table `performance_schema`.`file_instances` +unlock tables; +# +# WL#4818, NFS2: Can use grants to give normal user access +# to view data from _current and _history tables +# +# Should work as pfs_user_1 and pfs_user_2, but not as pfs_user_3. +# (Except for events_waits_current, which is granted.) +SELECT "can select" FROM performance_schema.events_waits_history LIMIT 1; +can select +can select +SELECT "can select" FROM performance_schema.events_waits_history_long LIMIT 1; +can select +can select +SELECT "can select" FROM performance_schema.events_waits_current LIMIT 1; +can select +can select +SELECT "can select" FROM performance_schema.events_waits_summary_by_instance LIMIT 1; +can select +can select +SELECT "can select" FROM performance_schema.file_summary_by_instance LIMIT 1; +can select +can select +connect con1, localhost, pfs_user_1, , ; +drop table if exists test.t1; +rename table performance_schema.setup_instruments to test.t1; +ERROR 42000: Access denied for user 'pfs_user_1'@'localhost' to database 'performance_schema' +rename table performance_schema.events_waits_current to test.t1; +ERROR 42000: Access denied for user 'pfs_user_1'@'localhost' to database 'performance_schema' +rename table performance_schema.file_instances to test.t1; +ERROR 42000: Access denied for user 'pfs_user_1'@'localhost' to database 'performance_schema' +rename table performance_schema.setup_instruments to performance_schema.t1; +ERROR 42000: Access denied for user 'pfs_user_1'@'localhost' to database 'performance_schema' +rename table performance_schema.events_waits_current to performance_schema.t1; +ERROR 42000: Access denied for user 'pfs_user_1'@'localhost' to database 'performance_schema' +rename table performance_schema.file_instances to performance_schema.t1; +ERROR 42000: Access denied for user 'pfs_user_1'@'localhost' to database 'performance_schema' +rename table performance_schema.setup_instruments +to performance_schema.events_waits_current; +ERROR 42000: Access denied for user 'pfs_user_1'@'localhost' to database 'performance_schema' +rename table performance_schema.events_waits_current +to performance_schema.setup_instruments; +ERROR 42000: Access denied for user 'pfs_user_1'@'localhost' to database 'performance_schema' +create procedure performance_schema.my_proc() begin end; +ERROR 42000: Access denied for user 'pfs_user_1'@'localhost' to database 'performance_schema' +create function performance_schema.my_func() returns int return 0; +ERROR 42000: Access denied for user 'pfs_user_1'@'localhost' to database 'performance_schema' +create event performance_schema.my_event on schedule every 15 minute +do begin end; +ERROR 42000: Access denied for user 'pfs_user_1'@'localhost' to database 'performance_schema' +create trigger performance_schema.bi_setup_instruments +before insert on performance_schema.setup_instruments +for each row begin end; +ERROR 42000: Access denied for user 'pfs_user_1'@'localhost' to database 'performance_schema' +create trigger performance_schema.bi_events_waits_current +before insert on performance_schema.events_waits_current +for each row begin end; +ERROR 42000: Access denied for user 'pfs_user_1'@'localhost' to database 'performance_schema' +create trigger performance_schema.bi_file_instances +before insert on performance_schema.file_instances +for each row begin end; +ERROR 42000: Access denied for user 'pfs_user_1'@'localhost' to database 'performance_schema' +create table test.t1(a int) engine=PERFORMANCE_SCHEMA; +ERROR HY000: Can't create table `test`.`t1` (errno: 131 "Command not supported by the engine") +create table test.t1 like performance_schema.setup_instruments; +ERROR HY000: Can't create table `test`.`t1` (errno: 131 "Command not supported by the engine") +create table test.t1 like performance_schema.events_waits_current; +ERROR HY000: Can't create table `test`.`t1` (errno: 131 "Command not supported by the engine") +create table test.t1 like performance_schema.file_instances; +ERROR HY000: Can't create table `test`.`t1` (errno: 131 "Command not supported by the engine") +insert into performance_schema.setup_instruments +set name="foo"; +ERROR 42000: INSERT command denied to user 'pfs_user_1'@'localhost' for table `performance_schema`.`setup_instruments` +insert into performance_schema.events_waits_current +set name="foo"; +ERROR 42000: INSERT command denied to user 'pfs_user_1'@'localhost' for table `performance_schema`.`events_waits_current` +insert into performance_schema.file_instances +set name="foo"; +ERROR 42000: INSERT command denied to user 'pfs_user_1'@'localhost' for table `performance_schema`.`file_instances` +delete from performance_schema.setup_instruments; +ERROR 42000: DELETE command denied to user 'pfs_user_1'@'localhost' for table `performance_schema`.`setup_instruments` +delete from performance_schema.events_waits_current; +ERROR 42000: DELETE command denied to user 'pfs_user_1'@'localhost' for table `performance_schema`.`events_waits_current` +delete from performance_schema.file_instances; +ERROR 42000: DELETE command denied to user 'pfs_user_1'@'localhost' for table `performance_schema`.`file_instances` +lock table performance_schema.setup_instruments read; +unlock tables; +lock table performance_schema.setup_instruments write; +unlock tables; +lock table performance_schema.events_waits_current read; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'pfs_user_1'@'localhost' for table `performance_schema`.`events_waits_current` +unlock tables; +lock table performance_schema.events_waits_current write; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'pfs_user_1'@'localhost' for table `performance_schema`.`events_waits_current` +unlock tables; +lock table performance_schema.file_instances read; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'pfs_user_1'@'localhost' for table `performance_schema`.`file_instances` +unlock tables; +lock table performance_schema.file_instances write; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'pfs_user_1'@'localhost' for table `performance_schema`.`file_instances` +unlock tables; +# +# WL#4818, NFS2: Can use grants to give normal user access +# to view data from _current and _history tables +# +# Should work as pfs_user_1 and pfs_user_2, but not as pfs_user_3. +# (Except for events_waits_current, which is granted.) +SELECT "can select" FROM performance_schema.events_waits_history LIMIT 1; +can select +can select +SELECT "can select" FROM performance_schema.events_waits_history_long LIMIT 1; +can select +can select +SELECT "can select" FROM performance_schema.events_waits_current LIMIT 1; +can select +can select +SELECT "can select" FROM performance_schema.events_waits_summary_by_instance LIMIT 1; +can select +can select +SELECT "can select" FROM performance_schema.file_summary_by_instance LIMIT 1; +can select +can select +disconnect con1; +connect con2, localhost, pfs_user_2, , ; +drop table if exists test.t1; +rename table performance_schema.setup_instruments to test.t1; +ERROR 42000: Access denied for user 'pfs_user_2'@'localhost' to database 'performance_schema' +rename table performance_schema.events_waits_current to test.t1; +ERROR 42000: Access denied for user 'pfs_user_2'@'localhost' to database 'performance_schema' +rename table performance_schema.file_instances to test.t1; +ERROR 42000: Access denied for user 'pfs_user_2'@'localhost' to database 'performance_schema' +rename table performance_schema.setup_instruments to performance_schema.t1; +ERROR 42000: Access denied for user 'pfs_user_2'@'localhost' to database 'performance_schema' +rename table performance_schema.events_waits_current to performance_schema.t1; +ERROR 42000: Access denied for user 'pfs_user_2'@'localhost' to database 'performance_schema' +rename table performance_schema.file_instances to performance_schema.t1; +ERROR 42000: Access denied for user 'pfs_user_2'@'localhost' to database 'performance_schema' +rename table performance_schema.setup_instruments +to performance_schema.events_waits_current; +ERROR 42000: Access denied for user 'pfs_user_2'@'localhost' to database 'performance_schema' +rename table performance_schema.events_waits_current +to performance_schema.setup_instruments; +ERROR 42000: Access denied for user 'pfs_user_2'@'localhost' to database 'performance_schema' +create procedure performance_schema.my_proc() begin end; +ERROR 42000: Access denied for user 'pfs_user_2'@'localhost' to database 'performance_schema' +create function performance_schema.my_func() returns int return 0; +ERROR 42000: Access denied for user 'pfs_user_2'@'localhost' to database 'performance_schema' +create event performance_schema.my_event on schedule every 15 minute +do begin end; +ERROR 42000: Access denied for user 'pfs_user_2'@'localhost' to database 'performance_schema' +create trigger performance_schema.bi_setup_instruments +before insert on performance_schema.setup_instruments +for each row begin end; +ERROR 42000: Access denied for user 'pfs_user_2'@'localhost' to database 'performance_schema' +create trigger performance_schema.bi_events_waits_current +before insert on performance_schema.events_waits_current +for each row begin end; +ERROR 42000: Access denied for user 'pfs_user_2'@'localhost' to database 'performance_schema' +create trigger performance_schema.bi_file_instances +before insert on performance_schema.file_instances +for each row begin end; +ERROR 42000: Access denied for user 'pfs_user_2'@'localhost' to database 'performance_schema' +create table test.t1(a int) engine=PERFORMANCE_SCHEMA; +ERROR HY000: Can't create table `test`.`t1` (errno: 131 "Command not supported by the engine") +create table test.t1 like performance_schema.setup_instruments; +ERROR HY000: Can't create table `test`.`t1` (errno: 131 "Command not supported by the engine") +create table test.t1 like performance_schema.events_waits_current; +ERROR HY000: Can't create table `test`.`t1` (errno: 131 "Command not supported by the engine") +create table test.t1 like performance_schema.file_instances; +ERROR HY000: Can't create table `test`.`t1` (errno: 131 "Command not supported by the engine") +insert into performance_schema.setup_instruments +set name="foo"; +ERROR 42000: INSERT command denied to user 'pfs_user_2'@'localhost' for table `performance_schema`.`setup_instruments` +insert into performance_schema.events_waits_current +set name="foo"; +ERROR 42000: INSERT command denied to user 'pfs_user_2'@'localhost' for table `performance_schema`.`events_waits_current` +insert into performance_schema.file_instances +set name="foo"; +ERROR 42000: INSERT command denied to user 'pfs_user_2'@'localhost' for table `performance_schema`.`file_instances` +delete from performance_schema.setup_instruments; +ERROR 42000: DELETE command denied to user 'pfs_user_2'@'localhost' for table `performance_schema`.`setup_instruments` +delete from performance_schema.events_waits_current; +ERROR 42000: DELETE command denied to user 'pfs_user_2'@'localhost' for table `performance_schema`.`events_waits_current` +delete from performance_schema.file_instances; +ERROR 42000: DELETE command denied to user 'pfs_user_2'@'localhost' for table `performance_schema`.`file_instances` +lock table performance_schema.setup_instruments read; +unlock tables; +lock table performance_schema.setup_instruments write; +unlock tables; +lock table performance_schema.events_waits_current read; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'pfs_user_2'@'localhost' for table `performance_schema`.`events_waits_current` +unlock tables; +lock table performance_schema.events_waits_current write; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'pfs_user_2'@'localhost' for table `performance_schema`.`events_waits_current` +unlock tables; +lock table performance_schema.file_instances read; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'pfs_user_2'@'localhost' for table `performance_schema`.`file_instances` +unlock tables; +lock table performance_schema.file_instances write; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'pfs_user_2'@'localhost' for table `performance_schema`.`file_instances` +unlock tables; +# +# WL#4818, NFS2: Can use grants to give normal user access +# to view data from _current and _history tables +# +# Should work as pfs_user_1 and pfs_user_2, but not as pfs_user_3. +# (Except for events_waits_current, which is granted.) +SELECT "can select" FROM performance_schema.events_waits_history LIMIT 1; +can select +can select +SELECT "can select" FROM performance_schema.events_waits_history_long LIMIT 1; +can select +can select +SELECT "can select" FROM performance_schema.events_waits_current LIMIT 1; +can select +can select +SELECT "can select" FROM performance_schema.events_waits_summary_by_instance LIMIT 1; +can select +can select +SELECT "can select" FROM performance_schema.file_summary_by_instance LIMIT 1; +can select +can select +disconnect con2; +connect con3, localhost, pfs_user_3, , ; +drop table if exists test.t1; +rename table performance_schema.setup_instruments to test.t1; +ERROR 42000: Access denied for user 'pfs_user_3'@'localhost' to database 'performance_schema' +rename table performance_schema.events_waits_current to test.t1; +ERROR 42000: Access denied for user 'pfs_user_3'@'localhost' to database 'performance_schema' +rename table performance_schema.file_instances to test.t1; +ERROR 42000: Access denied for user 'pfs_user_3'@'localhost' to database 'performance_schema' +rename table performance_schema.setup_instruments to performance_schema.t1; +ERROR 42000: Access denied for user 'pfs_user_3'@'localhost' to database 'performance_schema' +rename table performance_schema.events_waits_current to performance_schema.t1; +ERROR 42000: Access denied for user 'pfs_user_3'@'localhost' to database 'performance_schema' +rename table performance_schema.file_instances to performance_schema.t1; +ERROR 42000: Access denied for user 'pfs_user_3'@'localhost' to database 'performance_schema' +rename table performance_schema.setup_instruments +to performance_schema.events_waits_current; +ERROR 42000: Access denied for user 'pfs_user_3'@'localhost' to database 'performance_schema' +rename table performance_schema.events_waits_current +to performance_schema.setup_instruments; +ERROR 42000: Access denied for user 'pfs_user_3'@'localhost' to database 'performance_schema' +create procedure performance_schema.my_proc() begin end; +ERROR 42000: Access denied for user 'pfs_user_3'@'localhost' to database 'performance_schema' +create function performance_schema.my_func() returns int return 0; +ERROR 42000: Access denied for user 'pfs_user_3'@'localhost' to database 'performance_schema' +create event performance_schema.my_event on schedule every 15 minute +do begin end; +ERROR 42000: Access denied for user 'pfs_user_3'@'localhost' to database 'performance_schema' +create trigger performance_schema.bi_setup_instruments +before insert on performance_schema.setup_instruments +for each row begin end; +ERROR 42000: Access denied for user 'pfs_user_3'@'localhost' to database 'performance_schema' +create trigger performance_schema.bi_events_waits_current +before insert on performance_schema.events_waits_current +for each row begin end; +ERROR 42000: Access denied for user 'pfs_user_3'@'localhost' to database 'performance_schema' +create trigger performance_schema.bi_file_instances +before insert on performance_schema.file_instances +for each row begin end; +ERROR 42000: Access denied for user 'pfs_user_3'@'localhost' to database 'performance_schema' +create table test.t1(a int) engine=PERFORMANCE_SCHEMA; +ERROR HY000: Can't create table `test`.`t1` (errno: 131 "Command not supported by the engine") +create table test.t1 like performance_schema.setup_instruments; +ERROR HY000: Can't create table `test`.`t1` (errno: 131 "Command not supported by the engine") +create table test.t1 like performance_schema.events_waits_current; +ERROR HY000: Can't create table `test`.`t1` (errno: 131 "Command not supported by the engine") +create table test.t1 like performance_schema.file_instances; +ERROR HY000: Can't create table `test`.`t1` (errno: 131 "Command not supported by the engine") +insert into performance_schema.setup_instruments +set name="foo"; +ERROR 42000: INSERT command denied to user 'pfs_user_3'@'localhost' for table `performance_schema`.`setup_instruments` +insert into performance_schema.events_waits_current +set name="foo"; +ERROR 42000: INSERT command denied to user 'pfs_user_3'@'localhost' for table `performance_schema`.`events_waits_current` +insert into performance_schema.file_instances +set name="foo"; +ERROR 42000: INSERT command denied to user 'pfs_user_3'@'localhost' for table `performance_schema`.`file_instances` +delete from performance_schema.setup_instruments; +ERROR 42000: DELETE command denied to user 'pfs_user_3'@'localhost' for table `performance_schema`.`setup_instruments` +delete from performance_schema.events_waits_current; +ERROR 42000: DELETE command denied to user 'pfs_user_3'@'localhost' for table `performance_schema`.`events_waits_current` +delete from performance_schema.file_instances; +ERROR 42000: DELETE command denied to user 'pfs_user_3'@'localhost' for table `performance_schema`.`file_instances` +lock table performance_schema.setup_instruments read; +unlock tables; +lock table performance_schema.setup_instruments write; +unlock tables; +lock table performance_schema.events_waits_current read; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'pfs_user_3'@'localhost' for table `performance_schema`.`events_waits_current` +unlock tables; +lock table performance_schema.events_waits_current write; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'pfs_user_3'@'localhost' for table `performance_schema`.`events_waits_current` +unlock tables; +lock table performance_schema.file_instances read; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'pfs_user_3'@'localhost' for table `performance_schema`.`file_instances` +unlock tables; +lock table performance_schema.file_instances write; +ERROR 42000: SELECT, LOCK TABLES command denied to user 'pfs_user_3'@'localhost' for table `performance_schema`.`file_instances` +unlock tables; +# +# WL#4818, NFS2: Can use grants to give normal user access +# to view data from _current and _history tables +# +# Should work as pfs_user_1 and pfs_user_2, but not as pfs_user_3. +# (Except for events_waits_current, which is granted.) +SELECT "can select" FROM performance_schema.events_waits_history LIMIT 1; +ERROR 42000: SELECT command denied to user 'pfs_user_3'@'localhost' for table `performance_schema`.`events_waits_history` +SELECT "can select" FROM performance_schema.events_waits_history_long LIMIT 1; +ERROR 42000: SELECT command denied to user 'pfs_user_3'@'localhost' for table `performance_schema`.`events_waits_history_long` +SELECT "can select" FROM performance_schema.events_waits_current LIMIT 1; +can select +can select +SELECT "can select" FROM performance_schema.events_waits_summary_by_instance LIMIT 1; +ERROR 42000: SELECT command denied to user 'pfs_user_3'@'localhost' for table `performance_schema`.`events_waits_summary_by_instance` +SELECT "can select" FROM performance_schema.file_summary_by_instance LIMIT 1; +ERROR 42000: SELECT command denied to user 'pfs_user_3'@'localhost' for table `performance_schema`.`file_summary_by_instance` +disconnect con3; +connection default; +revoke all privileges, grant option from 'pfs_user_1'@localhost; +revoke all privileges, grant option from 'pfs_user_2'@localhost; +revoke all privileges, grant option from 'pfs_user_3'@localhost; +drop user 'pfs_user_1'@localhost; +drop user 'pfs_user_2'@localhost; +drop user 'pfs_user_3'@localhost; +flush privileges; +# Test cases from WL#4818 +# Setup user +CREATE user pfs_user_4; +connect pfs_user_4, localhost, pfs_user_4, ,"*NO-ONE*"; +# +# WL#4818, NFS4: Normal user does not have access to view data +# without grants +# +connection pfs_user_4; +# Select as pfs_user_4 should fail without grant +SELECT event_id FROM performance_schema.events_waits_history; +ERROR 42000: SELECT command denied to user 'pfs_user_4'@'localhost' for table `performance_schema`.`events_waits_history` +SELECT event_id FROM performance_schema.events_waits_history_long; +ERROR 42000: SELECT command denied to user 'pfs_user_4'@'localhost' for table `performance_schema`.`events_waits_history_long` +SELECT event_id FROM performance_schema.events_waits_current; +ERROR 42000: SELECT command denied to user 'pfs_user_4'@'localhost' for table `performance_schema`.`events_waits_current` +SELECT event_name FROM performance_schema.events_waits_summary_by_instance; +ERROR 42000: SELECT command denied to user 'pfs_user_4'@'localhost' for table `performance_schema`.`events_waits_summary_by_instance` +SELECT event_name FROM performance_schema.file_summary_by_instance; +ERROR 42000: SELECT command denied to user 'pfs_user_4'@'localhost' for table `performance_schema`.`file_summary_by_instance` +# +# WL#4818, NFS3: Normal user does not have access to change what is +# instrumented without grants +# +connection pfs_user_4; +# User pfs_user_4 should not be allowed to tweak instrumentation without +# explicit grant +UPDATE performance_schema.setup_instruments SET enabled = 'NO', timed = 'YES'; +ERROR 42000: UPDATE command denied to user 'pfs_user_4'@'localhost' for table `performance_schema`.`setup_instruments` +UPDATE performance_schema.setup_instruments SET enabled = 'YES' +WHERE name LIKE 'wait/synch/mutex/%' + OR name LIKE 'wait/synch/rwlock/%'; +ERROR 42000: UPDATE command denied to user 'pfs_user_4'@'localhost' for table `performance_schema`.`setup_instruments` +UPDATE performance_schema.setup_consumers SET enabled = 'YES'; +ERROR 42000: UPDATE command denied to user 'pfs_user_4'@'localhost' for table `performance_schema`.`setup_consumers` +UPDATE performance_schema.setup_timers SET timer_name = 'TICK'; +ERROR 42000: UPDATE command denied to user 'pfs_user_4'@'localhost' for table `performance_schema`.`setup_timers` +TRUNCATE TABLE performance_schema.events_waits_history_long; +ERROR 42000: DROP command denied to user 'pfs_user_4'@'localhost' for table `performance_schema`.`events_waits_history_long` +TRUNCATE TABLE performance_schema.events_waits_history; +ERROR 42000: DROP command denied to user 'pfs_user_4'@'localhost' for table `performance_schema`.`events_waits_history` +TRUNCATE TABLE performance_schema.events_waits_current; +ERROR 42000: DROP command denied to user 'pfs_user_4'@'localhost' for table `performance_schema`.`events_waits_current` +# +# WL#4814, NFS1: Can use grants to give normal user access +# to turn on and off instrumentation +# +connection default; +# Grant access to change tables with the root account +GRANT UPDATE ON performance_schema.setup_consumers TO pfs_user_4; +GRANT UPDATE, SELECT ON performance_schema.setup_timers TO pfs_user_4; +GRANT UPDATE, SELECT ON performance_schema.setup_instruments TO pfs_user_4; +GRANT DROP ON performance_schema.events_waits_current TO pfs_user_4; +GRANT DROP ON performance_schema.events_waits_history TO pfs_user_4; +GRANT DROP ON performance_schema.events_waits_history_long TO pfs_user_4; +connection pfs_user_4; +# User pfs_user_4 should now be allowed to tweak instrumentation +UPDATE performance_schema.setup_instruments SET enabled = 'NO', timed = 'YES'; +UPDATE performance_schema.setup_instruments SET enabled = 'YES' +WHERE name LIKE 'wait/synch/mutex/%' + OR name LIKE 'wait/synch/rwlock/%'; +UPDATE performance_schema.setup_consumers SET enabled = 'YES'; +UPDATE performance_schema.setup_timers SET timer_name = 'TICK' WHERE name <> "wait"; +Warnings: +Warning 1681 'performance_schema.setup_timers' is deprecated and will be removed in a future release +TRUNCATE TABLE performance_schema.events_waits_history_long; +TRUNCATE TABLE performance_schema.events_waits_history; +TRUNCATE TABLE performance_schema.events_waits_current; +# Clean up +disconnect pfs_user_4; +connection default; +REVOKE ALL PRIVILEGES, GRANT OPTION FROM pfs_user_4; +DROP USER pfs_user_4; +flush privileges; +UPDATE performance_schema.setup_instruments SET enabled = 'YES', timed = 'YES'; +UPDATE performance_schema.setup_consumers SET enabled = 'YES'; +UPDATE performance_schema.setup_timers SET timer_name = 'MICROSECOND' where name="idle"; +Warnings: +Warning 1681 'performance_schema.setup_timers' is deprecated and will be removed in a future release +UPDATE performance_schema.setup_timers SET timer_name = 'NANOSECOND' where name="stage"; +Warnings: +Warning 1681 'performance_schema.setup_timers' is deprecated and will be removed in a future release +UPDATE performance_schema.setup_timers SET timer_name = 'NANOSECOND' where name="statement"; +Warnings: +Warning 1681 'performance_schema.setup_timers' is deprecated and will be removed in a future release +# +# WL#2284: Increase the length of a user name +# +CREATE USER 'user_name_len_22_01234'@localhost; +GRANT ALL ON performance_schema.* TO 'user_name_len_22_01234'@localhost with GRANT OPTION; +ERROR 42000: Access denied for user 'root'@'localhost' to database 'performance_schema' +REVOKE ALL PRIVILEGES, GRANT OPTION FROM 'user_name_len_22_01234'@localhost; +DROP USER 'user_name_len_22_01234'@localhost; diff --git a/mysql-test/suite/perfschema/r/privilege_table_io.result b/mysql-test/suite/perfschema/r/privilege_table_io.result new file mode 100644 index 00000000..8be4b958 --- /dev/null +++ b/mysql-test/suite/perfschema/r/privilege_table_io.result @@ -0,0 +1,178 @@ +# restart +drop table if exists test.marker; +create table test.marker(a int); +update performance_schema.setup_consumers set enabled='NO'; +update performance_schema.setup_instruments set enabled='NO'; +update performance_schema.setup_instruments set enabled='YES' + where name like "wait/io/table/%"; +truncate table performance_schema.events_waits_history_long; +flush status; +flush tables; +# We are forced to suppress here the server response. +optimize table mysql.user; +optimize table mysql.db; +optimize table mysql.proxies_priv; +optimize table mysql.roles_mapping; +optimize table mysql.tables_priv; +optimize table mysql.procs_priv; +optimize table mysql.servers; +optimize table mysql.roles_mapping; +update performance_schema.setup_consumers set enabled='YES'; +update performance_schema.setup_objects set enabled='YES' + where object_type='TABLE' and object_schema= 'mysql'; +flush privileges; +insert into test.marker set a = 1; +insert into test.marker set a = 1; +insert into test.marker set a = 1; +show global variables like "performance_schema%"; +Variable_name Value +performance_schema ON +performance_schema_accounts_size 100 +performance_schema_digests_size 200 +performance_schema_events_stages_history_long_size 1000 +performance_schema_events_stages_history_size 10 +performance_schema_events_statements_history_long_size 1000 +performance_schema_events_statements_history_size 10 +performance_schema_events_transactions_history_long_size 1000 +performance_schema_events_transactions_history_size 10 +performance_schema_events_waits_history_long_size 10000 +performance_schema_events_waits_history_size 10 +performance_schema_hosts_size 100 +performance_schema_max_cond_classes 90 +performance_schema_max_cond_instances 1000 +performance_schema_max_digest_length 1024 +performance_schema_max_file_classes 80 +performance_schema_max_file_handles 32768 +performance_schema_max_file_instances 10000 +performance_schema_max_index_stat 5000 +performance_schema_max_memory_classes 320 +performance_schema_max_metadata_locks 10000 +performance_schema_max_mutex_classes 210 +performance_schema_max_mutex_instances 5000 +performance_schema_max_prepared_statements_instances 100 +performance_schema_max_program_instances 5000 +performance_schema_max_rwlock_classes 50 +performance_schema_max_rwlock_instances 5000 +performance_schema_max_socket_classes 10 +performance_schema_max_socket_instances 1000 +performance_schema_max_sql_text_length 1024 +performance_schema_max_stage_classes 160 +performance_schema_max_statement_classes 222 +performance_schema_max_statement_stack 10 +performance_schema_max_table_handles 1000 +performance_schema_max_table_instances 500 +performance_schema_max_table_lock_stat 500 +performance_schema_max_thread_classes 50 +performance_schema_max_thread_instances 200 +performance_schema_session_connect_attrs_size 2048 +performance_schema_setup_actors_size 100 +performance_schema_setup_objects_size 100 +performance_schema_users_size 100 +show global status like "performance_schema%"; +Variable_name Value +Performance_schema_accounts_lost 0 +Performance_schema_cond_classes_lost 0 +Performance_schema_cond_instances_lost 0 +Performance_schema_digest_lost 0 +Performance_schema_file_classes_lost 0 +Performance_schema_file_handles_lost 0 +Performance_schema_file_instances_lost 0 +Performance_schema_hosts_lost 0 +Performance_schema_index_stat_lost 0 +Performance_schema_locker_lost 0 +Performance_schema_memory_classes_lost 0 +Performance_schema_metadata_lock_lost 0 +Performance_schema_mutex_classes_lost 0 +Performance_schema_mutex_instances_lost 0 +Performance_schema_nested_statement_lost 0 +Performance_schema_prepared_statements_lost 0 +Performance_schema_program_lost 0 +Performance_schema_rwlock_classes_lost 0 +Performance_schema_rwlock_instances_lost 0 +Performance_schema_session_connect_attrs_lost 0 +Performance_schema_socket_classes_lost 0 +Performance_schema_socket_instances_lost 0 +Performance_schema_stage_classes_lost 0 +Performance_schema_statement_classes_lost 0 +Performance_schema_table_handles_lost 0 +Performance_schema_table_instances_lost 0 +Performance_schema_table_lock_stat_lost 0 +Performance_schema_thread_classes_lost 0 +Performance_schema_thread_instances_lost 0 +Performance_schema_users_lost 0 +update performance_schema.setup_consumers set enabled='NO'; +select event_name, +left(source, locate(":", source)) as short_source, +object_type, object_schema, +if (locate("#sql-", object_name), "#sql-XXXX", object_name) +as pretty_name, +operation, number_of_bytes +from performance_schema.events_waits_history_long +where event_name like 'wait/io/table/%' + and object_schema in ("test", "mysql") +order by thread_id, event_id; +event_name short_source object_type object_schema pretty_name operation number_of_bytes +wait/io/table/sql/handler TABLE mysql global_priv fetch 1 +wait/io/table/sql/handler TABLE mysql global_priv fetch 1 +wait/io/table/sql/handler TABLE mysql global_priv fetch 1 +wait/io/table/sql/handler TABLE mysql global_priv fetch 1 +wait/io/table/sql/handler TABLE mysql global_priv fetch 1 +wait/io/table/sql/handler TABLE mysql global_priv fetch 1 +wait/io/table/sql/handler TABLE mysql db fetch 1 +wait/io/table/sql/handler TABLE mysql proxies_priv fetch 1 +wait/io/table/sql/handler TABLE mysql proxies_priv fetch 1 +wait/io/table/sql/handler TABLE mysql proxies_priv fetch 1 +wait/io/table/sql/handler TABLE mysql proxies_priv fetch 1 +wait/io/table/sql/handler TABLE mysql proxies_priv fetch 1 +wait/io/table/sql/handler TABLE mysql roles_mapping fetch 1 +wait/io/table/sql/handler TABLE mysql tables_priv fetch 1 +wait/io/table/sql/handler TABLE mysql tables_priv fetch 1 +wait/io/table/sql/handler TABLE mysql procs_priv fetch 1 +wait/io/table/sql/handler TABLE mysql servers fetch 1 +wait/io/table/sql/handler TABLE mysql table_stats fetch 1 +wait/io/table/sql/handler TABLE mysql column_stats fetch 1 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test marker insert 1 +wait/io/table/sql/handler TABLE test marker insert 1 +show global status like 'performance_schema_%'; +Variable_name Value +Performance_schema_accounts_lost 0 +Performance_schema_cond_classes_lost 0 +Performance_schema_cond_instances_lost 0 +Performance_schema_digest_lost 0 +Performance_schema_file_classes_lost 0 +Performance_schema_file_handles_lost 0 +Performance_schema_file_instances_lost 0 +Performance_schema_hosts_lost 0 +Performance_schema_index_stat_lost 0 +Performance_schema_locker_lost 0 +Performance_schema_memory_classes_lost 0 +Performance_schema_metadata_lock_lost 0 +Performance_schema_mutex_classes_lost 0 +Performance_schema_mutex_instances_lost 0 +Performance_schema_nested_statement_lost 0 +Performance_schema_prepared_statements_lost 0 +Performance_schema_program_lost 0 +Performance_schema_rwlock_classes_lost 0 +Performance_schema_rwlock_instances_lost 0 +Performance_schema_session_connect_attrs_lost 0 +Performance_schema_socket_classes_lost 0 +Performance_schema_socket_instances_lost 0 +Performance_schema_stage_classes_lost 0 +Performance_schema_statement_classes_lost 0 +Performance_schema_table_handles_lost 0 +Performance_schema_table_instances_lost 0 +Performance_schema_table_lock_stat_lost 0 +Performance_schema_thread_classes_lost 0 +Performance_schema_thread_instances_lost 0 +Performance_schema_users_lost 0 +truncate performance_schema.events_waits_history_long; +flush status; +update performance_schema.setup_consumers set enabled='NO'; +truncate performance_schema.events_waits_history_long; +drop table test.marker; +flush status; +update performance_schema.setup_instruments set enabled='YES'; +update performance_schema.setup_consumers set enabled='YES'; +update performance_schema.setup_objects set enabled='NO' + where object_type='TABLE' and object_schema= 'mysql'; diff --git a/mysql-test/suite/perfschema/r/processlist.result b/mysql-test/suite/perfschema/r/processlist.result new file mode 100644 index 00000000..40c5a0f0 --- /dev/null +++ b/mysql-test/suite/perfschema/r/processlist.result @@ -0,0 +1,201 @@ +## +## Test the Performance Schema-based implementation of SHOW PROCESSLIST. +## +## Test cases: +## 1. Execute the new SHOW [FULL] PROCESSLIST and SELECT on performance_schema.processlist +## 2. Execute the legacy SHOW [FULL] PROCESSLIST and SELECT on information_schema.processlist +## 3. Verify that performance_schema_show_processlist = ON executes the new implementation +## 4. Verify that performance_schema_show_processlist = OFF executes the legacy code path +## +## Results must be manually verified. + +### Setup ### + +select @@global.performance_schema_show_processlist into @save_processlist; + +create user user1@localhost, user2@localhost, +user3@localhost, user4@localhost; + +grant ALL on *.* to user1@localhost; +grant ALL on *.* to user2@localhost; +grant ALL on *.* to user3@localhost; +grant ALL on *.* to user4@localhost; + +flush privileges; + +use test; +create table test.t1 (s1 int, s2 int, s3 int, s4 int); + +# Switch to (con0, localhost, root, , ) + +insert into test.t1 values(1, 1, 1, 1); +insert into test.t1 values(2, 2, 2, 2); +insert into test.t1 values(3, 3, 3, 3); +insert into test.t1 values(4, 4, 4, 4); + +# Lock test.t1, insert/update/deletes will block +lock tables t1 read; + +# Connect (con1, localhost, user1, , ) +insert into test.t1 values (0, 0, 0, 0); + +# Connect (con2, localhost, user2, , ) +update test.t1 set s1 = s1 + 1, s2 = s2 + 2, s3 = s3 + 3, s4 = ((s4 + 4) * (s4 + 5)) + 12345 + 67890 + 11111 + 22222 + 33333 + 44444 + 55555 + 99999;; + +# Connect (con3, localhost, user3, , ) +delete from test.t1 where s1 = 3; + +# Connect (con4, localhost, user4, , ) +insert into test.t1 values (4, 4, 4, 4); + +# Connection default + +# Wait for queries to appear in the processlist table + + +### Execute new SHOW [FULL] PROCESSLIST and SELECT on performance_schema.processlist + +set @@global.performance_schema_show_processlist = on; + +SHOW FULL PROCESSLIST; +Id User Host db Command Time State Info + event_scheduler NULL