Server IP : 104.21.38.3 / Your IP : 172.70.188.160 Web Server : Apache System : Linux krdc-ubuntu-s-2vcpu-4gb-amd-blr1-01.localdomain 5.15.0-142-generic #152-Ubuntu SMP Mon May 19 10:54:31 UTC 2025 x86_64 User : www ( 1000) PHP Version : 7.4.33 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /www/server/mysql/src/mysql-test/suite/connection_control/inc/ |
Upload File : |
# Following variables should be set: # $USER Name of the user # $PASSWORD Password to be supplied # $SUCCESS Whether a successful connection is expected or not # $DELAY_STATS Expected value of Connection_control_delay_generated # $USE_AUTH_PLUGIN Whether an authentication plugin is to be used or not # $CLIENT_AUTH_PLUGIN Authentication plugin connection default; disable_query_log; disable_result_log; if ($SUCCESS == 0) { --echo # Connection attempt should fail. if ($USE_AUTH_PLUGIN == 0) { --error 1 --exec $MYSQL -u$USER -p$PASSWORD -e "SELECT 1;" 2>&1 } if ($USE_AUTH_PLUGIN == 1) { --error 1 --exec $MYSQL -u$USER $CLIENT_AUTH_PLUGIN -p$PASSWORD -e "SELECT 1;" 2>&1 } } if ($SUCCESS != 0) { --echo # Connection attempt should succeed. if ($USE_AUTH_PLUGIN == 0) { --exec $MYSQL -u$USER -p$PASSWORD -e "SELECT 1;" 2>&1 } if ($USE_AUTH_PLUGIN == 1) { --exec $MYSQL -u$USER $CLIENT_AUTH_PLUGIN -p$PASSWORD -e "SELECT 1;" 2>&1 } } enable_result_log; --echo Connection_control_delay_generated should be $DELAY_STATS SHOW STATUS LIKE 'Connection_control_delay_generated'; enable_query_log;