403Webshell
Server IP : 172.67.216.182  /  Your IP : 104.23.175.112
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/sys_vars/t/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/server/mysql/src/mysql-test/suite/sys_vars/t/old_passwords_func.test
############# mysql-test\t\old_passwords_func.test ############################
#                                                                             #
# Variable Name: old_passwords                                                #
# Scope: GLOBAL & SESSION                                                     #
# Access Type: Dynamic                                                        #
# Data Type: BOOLEAN                                                          #
# Default Value: FALSE                                                        #
# Values:       TRUE, FALSE                                                   #
#                                                                             #
#                                                                             #
# Creation Date: 2008-03-12                                                   #
# Author:  Sharique Abdullah                                                  #
#                                                                             #
# Description: Test Cases of Dynamic System Variable "old_passwords"          #
#              that checks behavior of this variable in the following ways    #
#              * Functionality based on different values                      #
#                                                                             #
# Reference: http://dev.mysql.com/doc/refman/5.0/en                           #
#                /server-options.html#option_mysqld_old-passwords             #
#                                                                             #
###############################################################################

#
# Setup
#

--source include/not_embedded.inc

SET @global_old_passwords = @@GLOBAL.old_passwords;
SET @session_old_passwords = @@SESSION.old_passwords;


--echo '#------------------------FN_DYNVARS_115_01---------------------------#'

--echo ** Connection default **
connection default;

#
# 2 Users with FALSE value
#

SET GLOBAL old_passwords = 0;
SET SESSION old_passwords = 0;

CREATE USER 'userNewPass1'@'localhost' IDENTIFIED BY 'pass1';
CREATE USER 'userNewPass2'@'localhost' IDENTIFIED BY 'pass2';

--echo ** Connecting con1 using username 'userNewPass1' **
connect (con1,localhost,userNewPass1,pass1,);
SELECT CURRENT_USER();
--echo userNewPass1@localhost Expected

--echo ** Connecting con2 using username 'userNewPass2' **
connect (con2,localhost,userNewPass2,pass2,);
SELECT CURRENT_USER();
--echo userNewPass2@localhost Expected

--echo ** Connection default **
connection default;

--echo ** Disconnecting con1, con2  **
disconnect con1;
disconnect con2;

#
# Cleanup
#

DROP USER 'userNewPass1'@'localhost';
DROP USER 'userNewPass2'@'localhost';

SET @@GLOBAL.old_passwords = @global_old_passwords;
SET @@SESSION.old_passwords = @session_old_passwords;

Youez - 2016 - github.com/yon3zu
LinuXploit