Current Path : /home/usr.opt/mysql57/mysql-test/suite/sys_vars/t/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //home/usr.opt/mysql57/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;