|
| 1 | +create user natauth@localhost identified via 'mysql_native_password' using '*94BDCEBE19083CE2A1F959FD02F964C7AF4CFC29'; |
| 2 | +create user newpass@localhost identified by password '*94BDCEBE19083CE2A1F959FD02F964C7AF4CFC29'; |
| 3 | +create user newpassnat@localhost identified via 'mysql_native_password'; |
| 4 | +set password for newpassnat@localhost = '*94BDCEBE19083CE2A1F959FD02F964C7AF4CFC29'; |
| 5 | +create user oldauth@localhost identified with 'mysql_old_password' using '378b243e220ca493'; |
| 6 | +create user oldpass@localhost identified by password '378b243e220ca493'; |
| 7 | +create user oldpassold@localhost identified with 'mysql_old_password'; |
| 8 | +set password for oldpassold@localhost = '378b243e220ca493'; |
| 9 | +select user, host, password, plugin, authentication_string from mysql.user where user != 'root'; |
| 10 | +user host password plugin authentication_string |
| 11 | +natauth localhost mysql_native_password *94BDCEBE19083CE2A1F959FD02F964C7AF4CFC29 |
| 12 | +newpass localhost *94BDCEBE19083CE2A1F959FD02F964C7AF4CFC29 |
| 13 | +newpassnat localhost *94BDCEBE19083CE2A1F959FD02F964C7AF4CFC29 |
| 14 | +oldauth localhost mysql_old_password 378b243e220ca493 |
| 15 | +oldpass localhost 378b243e220ca493 |
| 16 | +oldpassold localhost 378b243e220ca493 |
| 17 | +connect con,localhost,natauth,test,; |
| 18 | +select current_user(); |
| 19 | +current_user() |
| 20 | +natauth@localhost |
| 21 | +disconnect con; |
| 22 | +connect con,localhost,newpass,test,; |
| 23 | +select current_user(); |
| 24 | +current_user() |
| 25 | +newpass@localhost |
| 26 | +disconnect con; |
| 27 | +connect con,localhost,newpassnat,test,; |
| 28 | +select current_user(); |
| 29 | +current_user() |
| 30 | +newpassnat@localhost |
| 31 | +disconnect con; |
| 32 | +connect con,localhost,oldauth,test,; |
| 33 | +select current_user(); |
| 34 | +current_user() |
| 35 | +oldauth@localhost |
| 36 | +disconnect con; |
| 37 | +connect con,localhost,oldpass,test,; |
| 38 | +select current_user(); |
| 39 | +current_user() |
| 40 | +oldpass@localhost |
| 41 | +disconnect con; |
| 42 | +connect con,localhost,oldpassold,test,; |
| 43 | +select current_user(); |
| 44 | +current_user() |
| 45 | +oldpassold@localhost |
| 46 | +disconnect con; |
| 47 | +connection default; |
| 48 | +flush privileges; |
| 49 | +connect con,localhost,natauth,test,; |
| 50 | +select current_user(); |
| 51 | +current_user() |
| 52 | +natauth@localhost |
| 53 | +disconnect con; |
| 54 | +connect con,localhost,newpass,test,; |
| 55 | +select current_user(); |
| 56 | +current_user() |
| 57 | +newpass@localhost |
| 58 | +disconnect con; |
| 59 | +connect con,localhost,newpassnat,test,; |
| 60 | +select current_user(); |
| 61 | +current_user() |
| 62 | +newpassnat@localhost |
| 63 | +disconnect con; |
| 64 | +connect con,localhost,oldauth,test,; |
| 65 | +select current_user(); |
| 66 | +current_user() |
| 67 | +oldauth@localhost |
| 68 | +disconnect con; |
| 69 | +connect con,localhost,oldpass,test,; |
| 70 | +select current_user(); |
| 71 | +current_user() |
| 72 | +oldpass@localhost |
| 73 | +disconnect con; |
| 74 | +connect con,localhost,oldpassold,test,; |
| 75 | +select current_user(); |
| 76 | +current_user() |
| 77 | +oldpassold@localhost |
| 78 | +disconnect con; |
| 79 | +connection default; |
| 80 | +set password for natauth@localhost = PASSWORD('test2'); |
| 81 | +set password for newpass@localhost = PASSWORD('test2'); |
| 82 | +set password for newpassnat@localhost = PASSWORD('test2'); |
| 83 | +set password for oldauth@localhost = PASSWORD('test2'); |
| 84 | +set password for oldpass@localhost = PASSWORD('test2'); |
| 85 | +set password for oldpassold@localhost = PASSWORD('test2'); |
| 86 | +select user, host, password, plugin, authentication_string from mysql.user where user != 'root'; |
| 87 | +user host password plugin authentication_string |
| 88 | +natauth localhost *7CEB3FDE5F7A9C4CE5FBE610D7D8EDA62EBE5F4E |
| 89 | +newpass localhost *7CEB3FDE5F7A9C4CE5FBE610D7D8EDA62EBE5F4E |
| 90 | +newpassnat localhost *7CEB3FDE5F7A9C4CE5FBE610D7D8EDA62EBE5F4E |
| 91 | +oldauth localhost *7CEB3FDE5F7A9C4CE5FBE610D7D8EDA62EBE5F4E |
| 92 | +oldpass localhost *7CEB3FDE5F7A9C4CE5FBE610D7D8EDA62EBE5F4E |
| 93 | +oldpassold localhost *7CEB3FDE5F7A9C4CE5FBE610D7D8EDA62EBE5F4E |
| 94 | +connect con,localhost,natauth,test2,; |
| 95 | +select current_user(); |
| 96 | +current_user() |
| 97 | +natauth@localhost |
| 98 | +disconnect con; |
| 99 | +connect con,localhost,newpass,test2,; |
| 100 | +select current_user(); |
| 101 | +current_user() |
| 102 | +newpass@localhost |
| 103 | +disconnect con; |
| 104 | +connect con,localhost,newpassnat,test2,; |
| 105 | +select current_user(); |
| 106 | +current_user() |
| 107 | +newpassnat@localhost |
| 108 | +disconnect con; |
| 109 | +connect con,localhost,oldauth,test2,; |
| 110 | +select current_user(); |
| 111 | +current_user() |
| 112 | +oldauth@localhost |
| 113 | +disconnect con; |
| 114 | +connect con,localhost,oldpass,test2,; |
| 115 | +select current_user(); |
| 116 | +current_user() |
| 117 | +oldpass@localhost |
| 118 | +disconnect con; |
| 119 | +connect con,localhost,oldpassold,test2,; |
| 120 | +select current_user(); |
| 121 | +current_user() |
| 122 | +oldpassold@localhost |
| 123 | +disconnect con; |
| 124 | +connection default; |
| 125 | +flush privileges; |
| 126 | +connect con,localhost,natauth,test2,; |
| 127 | +select current_user(); |
| 128 | +current_user() |
| 129 | +natauth@localhost |
| 130 | +disconnect con; |
| 131 | +connect con,localhost,newpass,test2,; |
| 132 | +select current_user(); |
| 133 | +current_user() |
| 134 | +newpass@localhost |
| 135 | +disconnect con; |
| 136 | +connect con,localhost,newpassnat,test2,; |
| 137 | +select current_user(); |
| 138 | +current_user() |
| 139 | +newpassnat@localhost |
| 140 | +disconnect con; |
| 141 | +connect con,localhost,oldauth,test2,; |
| 142 | +select current_user(); |
| 143 | +current_user() |
| 144 | +oldauth@localhost |
| 145 | +disconnect con; |
| 146 | +connect con,localhost,oldpass,test2,; |
| 147 | +select current_user(); |
| 148 | +current_user() |
| 149 | +oldpass@localhost |
| 150 | +disconnect con; |
| 151 | +connect con,localhost,oldpassold,test2,; |
| 152 | +select current_user(); |
| 153 | +current_user() |
| 154 | +oldpassold@localhost |
| 155 | +disconnect con; |
| 156 | +connection default; |
| 157 | +drop user natauth@localhost, newpass@localhost, newpassnat@localhost; |
| 158 | +drop user oldauth@localhost, oldpass@localhost, oldpassold@localhost; |
0 commit comments