| Server IP : 88.99.149.37 / Your IP : 216.73.216.141 Web Server : nginx/1.31.2 System : Linux server-88-99-149-37 6.12.0-124.56.5.el10_1.x86_64 #1 SMP PREEMPT_DYNAMIC Fri May 15 06:12:08 EDT 2026 x86_64 User : muralimurth ( 1015) PHP Version : 8.4.23 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/local/mysql/mysql-test/main/ |
Upload File : |
# # MDEV-4824 userstats - wrong user statistics # # Tests will be skipped for the view protocol because the view protocol creates # an additional util connection and other statistics data # Skip this test for ps protocol because the previous commit changes the expected # the value of bytes_expected in the userstats output. --source include/no_view_protocol.inc --disable_ps_protocol --source include/not_embedded.inc set @save_userstat=@@global.userstat; create user foo@localhost identified by 'foo'; flush user_statistics; set global userstat=1; --disable_ps2_protocol connect(foo, localhost, foo, foo, "*NO-ONE*"); --disable_cursor_protocol select 1; --enable_cursor_protocol disconnect foo; connection default; # wait for user_statistics changes to become visible let $wait_condition= select count(*) = 1 from information_schema.processlist; --source include/wait_condition.inc # 41 is for ps-procotol --replace_result 41 18 select user, bytes_received from information_schema.user_statistics where user = 'foo'; --replace_result $MASTER_MYSOCK MASTER_SOCKET $MASTER_MYPORT MASTER_PORT --error ER_ACCESS_DENIED_ERROR connect(foo, localhost, foo, bar, test); connection default; --replace_result 41 18 select user, bytes_received from information_schema.user_statistics where user = 'foo'; --enable_ps2_protocol drop user foo@localhost; set global userstat=@save_userstat; --enable_ps_protocol