@@ -316,7 +316,7 @@ Grants for user3@%
316
316
GRANT USAGE ON *.* TO 'user3'@'%'
317
317
GRANT ALL PRIVILEGES ON `roelt`.`test2` TO 'user3'@'%'
318
318
DROP USER 'user3'@'%';
319
- End of 5.1 tests
319
+ # End of 5.1 tests
320
320
The --upgrade-system-tables option was used, user tables won't be touched.
321
321
Phase 1/7: Checking and upgrading mysql database
322
322
Processing databases
@@ -505,7 +505,7 @@ length(table_name)
505
505
79
506
506
79
507
507
drop table extralongname_extralongname_extralongname_extralongname_ext;
508
- End of 10.0 tests
508
+ # End of 10.0 tests
509
509
set sql_mode=default;
510
510
# Droping the previously created mysql_upgrade_info file..
511
511
create table test.t1(a int) engine=MyISAM;
@@ -569,8 +569,8 @@ t1 CREATE TABLE `t1` (
569
569
) ENGINE=MyISAM DEFAULT CHARSET=latin1
570
570
DROP TABLE test.t1;
571
571
SET GLOBAL enforce_storage_engine=NULL;
572
- End of 10.1 tests
573
- Start of 10.3 tests
572
+ # End of 10.1 tests
573
+ # End of 10.2 tests
574
574
#
575
575
# Ensure that mysql_upgrade correctly sets truncate_versioning_priv
576
576
# on upgrade from 10.2
@@ -591,3 +591,36 @@ DROP USER 'user3'@'%';
591
591
update mysql.db set Delete_history_priv='Y' where db like 'test%';
592
592
drop table mysql.global_priv;
593
593
rename table mysql.global_priv_bak to mysql.global_priv;
594
+ # End of 10.3 tests
595
+ drop view mysql.user_bak;
596
+ create user 'user3'@'localhost' identified with mysql_native_password as password('a_password');
597
+ show create user user3@localhost;
598
+ CREATE USER for user3@localhost
599
+ CREATE USER 'user3'@'localhost' IDENTIFIED BY PASSWORD '*5DC1D11F45824A9DD613961F05C1EC1E7A1601AA'
600
+ update mysql.user set password=authentication_string, authentication_string='' where user='user3';
601
+ select password,plugin,authentication_string from mysql.user where user='user3';
602
+ password plugin authentication_string
603
+ *5DC1D11F45824A9DD613961F05C1EC1E7A1601AA mysql_native_password
604
+ flush privileges;
605
+ show create user user3@localhost;
606
+ CREATE USER for user3@localhost
607
+ CREATE USER 'user3'@'localhost' IDENTIFIED BY PASSWORD '*5DC1D11F45824A9DD613961F05C1EC1E7A1601AA'
608
+ connect con1,localhost,user3,a_password;
609
+ select current_user();
610
+ current_user()
611
+ user3@localhost
612
+ disconnect con1;
613
+ connection default;
614
+ # mysql_upgrade --force --silent 2>&1
615
+ show create user user3@localhost;
616
+ CREATE USER for user3@localhost
617
+ CREATE USER 'user3'@'localhost' IDENTIFIED BY PASSWORD '*5DC1D11F45824A9DD613961F05C1EC1E7A1601AA'
618
+ connect con1,localhost,user3,a_password;
619
+ select current_user();
620
+ current_user()
621
+ user3@localhost
622
+ disconnect con1;
623
+ connection default;
624
+ drop user user3@localhost;
625
+ drop table mysql.global_priv;
626
+ rename table mysql.global_priv_bak to mysql.global_priv;
0 commit comments