~ubuntu-branches/ubuntu/trusty/mysql-5.6/trusty

« back to all changes in this revision

Viewing changes to mysql-test/suite/auth_sec/t/mysql_old_plugin.test_old

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2014-02-12 11:54:27 UTC
  • Revision ID: package-import@ubuntu.com-20140212115427-oq6tfsqxl1wuwehi
Tags: upstream-5.6.15
ImportĀ upstreamĀ versionĀ 5.6.15

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
###############################################################################
 
2
#                                                                             #
 
3
# Authorization and authentication using the MYSQL_OLD_PASSWORD pligin at     # 
 
4
# server and client side                                                      #
 
5
#                                                                             #
 
6
#                                                                             #
 
7
#                                                                             #
 
8
# Creation Date: 2012-12-10                                                   #
 
9
# Author : Tanjot Singh Uppal                                                 #
 
10
#                                                                             #
 
11
#                                                                             #
 
12
# Description:Test Cases of authenticating the hashed password using the      #
 
13
# mysql_old_password plugin at the server side as well as the client side     #
 
14
#                                                                             #
 
15
#                                                                             #
 
16
###############################################################################
 
17
 
 
18
--source include/not_embedded.inc
 
19
--source include/have_ssl.inc
 
20
--source include/have_sha256_rsa_auth.inc
 
21
--source include/mysql_upgrade_preparation.inc
 
22
 
 
23
# This test will intentionally generate errors in the server error log
 
24
# when a broken password is inserted into the mysql.user table.
 
25
# The below suppression is to clear those errors.
 
26
 
 
27
 
 
28
--disable_query_log
 
29
call mtr.add_suppression(".*Password salt for user.*");
 
30
--enable_query_log
 
31
 
 
32
--echo
 
33
--echo 
 
34
--echo ===========================================================================================================================================
 
35
--echo Checking the password authentication using the mysql_old_password plugin at the client and mysql_native_password plugin at the server side
 
36
--echo ===========================================================================================================================================
 
37
--echo 
 
38
 
 
39
select @@Global.old_passwords;
 
40
--echo 0 Expected
 
41
 
 
42
select @@session.old_passwords;
 
43
--echo 0 Expected
 
44
 
 
45
# Checking the password authentication with mysql_old_password plugin
 
46
# Creating 2 users and encrypting the server side password with the mysql_old_password plugin
 
47
 
 
48
CREATE USER 'Tanjotuser1'@'localhost' IDENTIFIED WITH 'mysql_old_password';
 
49
 
 
50
CREATE USER 'Tanjotuser2'@'127.0.0.1' IDENTIFIED WITH 'mysql_old_password';
 
51
 
 
52
# Verifying the server side plugin used to be mysql_old_password
 
53
 
 
54
select (select plugin from mysql.user where User='Tanjotuser1' and Host='localhost')='mysql_old_password';
 
55
--echo 1 Expected
 
56
 
 
57
select (select plugin from mysql.user where User='Tanjotuser2' and Host='127.0.0.1')='mysql_old_password';
 
58
--echo 1 Expected
 
59
 
 
60
# Verifying the client connection using the same mysql_old_password plugin and NULL password
 
61
 
 
62
connect(con1,localhost,Tanjotuser1,,,);
 
63
connect(con2,127.0.0.1,Tanjotuser2,,,);
 
64
 
 
65
# Verifying the client connection using the same mysql_old_password plugin and junk password
 
66
 
 
67
--error ER_SERVER_IS_IN_SECURE_AUTH_MODE
 
68
connect(con3,localhost,Tanjotuser1," ",,);
 
69
 
 
70
--error ER_SERVER_IS_IN_SECURE_AUTH_MODE
 
71
connect(con4,127.0.0.1,Tanjotuser2," ",,);
 
72
 
 
73
# setting the password for the 2 users using the mysql_old_password plugin
 
74
 
 
75
connection default;
 
76
 
 
77
SET @@session.old_passwords=1;
 
78
 
 
79
SET PASSWORD FOR 'Tanjotuser1'@'localhost'=PASSWORD('abc');
 
80
SET PASSWORD FOR 'Tanjotuser2'@'127.0.0.1'=PASSWORD('abc');
 
81
 
 
82
# Validating the old_passwords value from the created users.
 
83
 
 
84
--disable_warnings
 
85
set @@global.secure_auth=0;
 
86
--enable_warnings
 
87
 
 
88
 
 
89
--echo **** connecting Tanjotuser1 with server 
 
90
--exec $MYSQL -uTanjotuser1 -pabc -hlocalhost --default_auth=mysql_native_password -e "select @@session.old_passwords"
 
91
--echo 1 Expected
 
92
 
 
93
--echo **** connecting Tanjotuser2 with server 
 
94
--exec $MYSQL -uTanjotuser2 -pabc -h127.0.0.1 --default_auth=mysql_native_password -e "select @@session.old_passwords"
 
95
--echo 1 Expected
 
96
 
 
97
 
 
98
 
 
99
--echo **** connecting Tanjotuser1 with server 
 
100
--exec $MYSQL -uTanjotuser1 -pabc -hlocalhost --default_auth=mysql_old_password -e "select @@session.old_passwords"
 
101
--echo 1 Expected
 
102
 
 
103
--echo **** connecting Tanjotuser2 with server 
 
104
--exec $MYSQL -uTanjotuser2 -pabc -h127.0.0.1 --default_auth=mysql_old_password -e "select @@session.old_passwords"
 
105
--echo 1 Expected
 
106
 
 
107
 
 
108
 
 
109
--echo **** connecting Tanjotuser1 with server 
 
110
--exec $MYSQL -uTanjotuser1 -pabc -hlocalhost --default_auth=sha256_password -e "select @@session.old_passwords"
 
111
--echo 1 Expected
 
112
 
 
113
--echo **** connecting Tanjotuser2 with server 
 
114
--exec $MYSQL -uTanjotuser2 -pabc -h127.0.0.1 --default_auth=sha256_password -e "select @@session.old_passwords"
 
115
--echo 1 Expected
 
116
 
 
117
 
 
118
 
 
119
--echo **** connecting Tanjotuser1 with server 
 
120
--exec $MYSQL -uTanjotuser1 -pabc -hlocalhost -e "select @@session.old_passwords"
 
121
--echo 1 Expected
 
122
 
 
123
--echo **** connecting Tanjotuser2 with server 
 
124
--exec $MYSQL -uTanjotuser2 -pabc -h127.0.0.1 -e "select @@session.old_passwords"
 
125
--echo 1 Expected
 
126
 
 
127
--disable_warnings
 
128
set @@global.secure_auth=1;
 
129
--enable_warnings
 
130
 
 
131
 
 
132
# Verifying the client connection using the same mysql_old_password plugin and NULL password
 
133
 
 
134
--error ER_ACCESS_DENIED_ERROR
 
135
connect(con5,localhost,Tanjotuser1,,,);
 
136
--error ER_ACCESS_DENIED_ERROR
 
137
connect(con6,127.0.0.1,Tanjotuser2,,,);
 
138
 
 
139
# Verifying the client connection using the same mysql_old_password plugin and junk password
 
140
 
 
141
--error ER_SERVER_IS_IN_SECURE_AUTH_MODE
 
142
connect(con7,localhost,Tanjotuser1," ",,);
 
143
--error ER_SERVER_IS_IN_SECURE_AUTH_MODE
 
144
connect(con8,127.0.0.1,Tanjotuser2," ",,);
 
145
 
 
146
--error ER_SERVER_IS_IN_SECURE_AUTH_MODE
 
147
connect(con9,localhost,Tanjotuser1,"%",,);
 
148
--error ER_SERVER_IS_IN_SECURE_AUTH_MODE
 
149
connect(con10,127.0.0.1,Tanjotuser2,"%",,);
 
150
 
 
151
--error ER_SERVER_IS_IN_SECURE_AUTH_MODE
 
152
connect(con11,localhost,Tanjotuser1,"_",,);
 
153
--error ER_SERVER_IS_IN_SECURE_AUTH_MODE
 
154
connect(con12,127.0.0.1,Tanjotuser2,"_",,);
 
155
 
 
156
--error ER_SERVER_IS_IN_SECURE_AUTH_MODE
 
157
connect(con13,localhost,Tanjotuser1,"0",,);
 
158
--error ER_SERVER_IS_IN_SECURE_AUTH_MODE
 
159
connect(con14,127.0.0.1,Tanjotuser2,"0",,);
 
160
 
 
161
--error ER_SERVER_IS_IN_SECURE_AUTH_MODE
 
162
connect(con15,localhost,Tanjotuser1,"^",,);
 
163
--error ER_SERVER_IS_IN_SECURE_AUTH_MODE
 
164
connect(con16,127.0.0.1,Tanjotuser2,"^",,);
 
165
 
 
166
--error ER_SERVER_IS_IN_SECURE_AUTH_MODE
 
167
connect(con17,localhost,Tanjotuser1,'\$',,);
 
168
--error ER_SERVER_IS_IN_SECURE_AUTH_MODE
 
169
connect(con18,127.0.0.1,Tanjotuser2,'\$',,);
 
170
 
 
171
--error ER_SERVER_IS_IN_SECURE_AUTH_MODE
 
172
connect(con19,localhost,Tanjotuser1,"&",,);
 
173
--error ER_SERVER_IS_IN_SECURE_AUTH_MODE
 
174
connect(con20,127.0.0.1,Tanjotuser2,"&",,);
 
175
 
 
176
 
 
177
# Verifying the client connection using the same mysql_old_password plugin and correct password with secure_auth enabled
 
178
 
 
179
connection default;
 
180
 
 
181
select @@global.secure_auth;
 
182
--echo 1 Expected
 
183
 
 
184
--error ER_SERVER_IS_IN_SECURE_AUTH_MODE
 
185
connect(con21,localhost,Tanjotuser1,abc,,);
 
186
--error ER_SERVER_IS_IN_SECURE_AUTH_MODE
 
187
connect(con22,127.0.0.1,Tanjotuser2,abc,,);
 
188
 
 
189
# Verifying the client connection using the same mysql_old_password plugin and correct password with secure_auth disabled
 
190
 
 
191
connection default;
 
192
 
 
193
--disable_warnings
 
194
set @@global.secure_auth=0;
 
195
--enable_warnings
 
196
 
 
197
--disable_warnings
 
198
connect(con23,localhost,Tanjotuser1,abc,,);
 
199
connect(con24,127.0.0.1,Tanjotuser2,abc,,);
 
200
--enable_warnings
 
201
 
 
202
# Below section is hashed till the bug16040690 is fixed.
 
203
 
 
204
#--error ER_SERVER_IS_IN_SECURE_AUTH_MODE
 
205
#connect(con25,localhost,Tanjotuser1,"abc ",,);
 
206
#--error ER_SERVER_IS_IN_SECURE_AUTH_MODE
 
207
#connect(con26,127.0.0.1,Tanjotuser2,"abc ",,);
 
208
 
 
209
#--error ER_SERVER_IS_IN_SECURE_AUTH_MODE
 
210
#connect(con27,localhost,Tanjotuser1," abc",,);
 
211
#--error ER_SERVER_IS_IN_SECURE_AUTH_MODE
 
212
#connect(con28,127.0.0.1,Tanjotuser2," abc",,);
 
213
 
 
214
--error ER_ACCESS_DENIED_ERROR
 
215
connect(con29,localhost,Tanjotuser1,"0abc",,);
 
216
--error ER_ACCESS_DENIED_ERROR
 
217
connect(con30,127.0.0.1,Tanjotuser2,"0abc",,);
 
218
 
 
219
--error ER_ACCESS_DENIED_ERROR
 
220
connect(con31,localhost,Tanjotuser1,"abc0",,);
 
221
--error ER_ACCESS_DENIED_ERROR
 
222
connect(con32,127.0.0.1,Tanjotuser2,"abc0",,);
 
223
 
 
224
--error ER_ACCESS_DENIED_ERROR
 
225
connect(con33,localhost,Tanjotuser1,"@abc",,);
 
226
--error ER_ACCESS_DENIED_ERROR
 
227
connect(con34,127.0.0.1,Tanjotuser2,"@abc",,);
 
228
 
 
229
# Dropping the created users
 
230
 
 
231
connection default;
 
232
 
 
233
DROP USER 'Tanjotuser1'@'localhost';
 
234
DROP USER 'Tanjotuser2'@'127.0.0.1';
 
235
 
 
236
--echo
 
237
--echo 
 
238
--echo ====================================================================================================
 
239
--echo checking the integrity of long password (more than 40 chars) using mysql_old_password plugin
 
240
--echo ====================================================================================================
 
241
--echo
 
242
 
 
243
 
 
244
# Checking the password authentication with mysql_old_password plugin
 
245
# Creating 2 users and encrypting the server side password with the mysql_old_password plugin
 
246
 
 
247
CREATE USER 'Tanjotuser1'@'localhost' IDENTIFIED WITH 'mysql_old_password';
 
248
 
 
249
CREATE USER 'Tanjotuser2'@'127.0.0.1' IDENTIFIED WITH 'mysql_old_password';
 
250
 
 
251
# setting the password for the 2 users using the mysql_old_password plugin
 
252
 
 
253
SET @@session.old_passwords=1;
 
254
 
 
255
SET PASSWORD FOR 'Tanjotuser1'@'localhost'=PASSWORD('$$$$$$$$$$^^^^^^^^^^&&&&&&&&&&**********((((((((((##########!!!!!!!!!!@@@@@@@@@@          @@@@@@@@@@__________');
 
256
SET PASSWORD FOR 'Tanjotuser2'@'127.0.0.1'=PASSWORD('$$$$$$$$$$^^^^^^^^^^&&&&&&&&&&**********((((((((((##########!!!!!!!!!!@@@@@@@@@@          @@@@@@@@@@__________');
 
257
 
 
258
 
 
259
# Verifying the client connection using the same mysql_old_password plugin and correct password with secure_auth disabled
 
260
 
 
261
--disable_warnings
 
262
set @@global.secure_auth=0;
 
263
--enable_warnings
 
264
 
 
265
--disable_warnings
 
266
connect(con35,localhost,Tanjotuser1,"\$\$\$\$\$\$\$\$\$\$^^^^^^^^^^&&&&&&&&&&**********((((((((((##########!!!!!!!!!!@@@@@@@@@@          @@@@@@@@@@__________",,);
 
267
connect(con36,127.0.0.1,Tanjotuser2,"\$\$\$\$\$\$\$\$\$\$^^^^^^^^^^&&&&&&&&&&**********((((((((((##########!!!!!!!!!!@@@@@@@@@@          @@@@@@@@@@__________",,);
 
268
--enable_warnings
 
269
 
 
270
# Verifying the client access denied passing null password
 
271
 
 
272
--error ER_ACCESS_DENIED_ERROR
 
273
connect(con37,localhost,Tanjotuser1," ",,);
 
274
--error ER_ACCESS_DENIED_ERROR
 
275
connect(con38,127.0.0.1,Tanjotuser2," ",,);
 
276
 
 
277
--error ER_ACCESS_DENIED_ERROR
 
278
connect(con39,localhost,Tanjotuser1,,,);
 
279
--error ER_ACCESS_DENIED_ERROR
 
280
connect(con40,127.0.0.1,Tanjotuser2,,,);
 
281
 
 
282
--error ER_ACCESS_DENIED_ERROR
 
283
connect(con41,localhost,Tanjotuser1,"@_",,);
 
284
--error ER_ACCESS_DENIED_ERROR
 
285
connect(con42,127.0.0.1,Tanjotuser2,"@_",,);
 
286
 
 
287
--error ER_ACCESS_DENIED_ERROR
 
288
connect(con43,localhost,Tanjotuser1,"$_",,);
 
289
--error ER_ACCESS_DENIED_ERROR
 
290
connect(con44,127.0.0.1,Tanjotuser2,"$_",,);
 
291
 
 
292
 
 
293
# Dropping the created users
 
294
 
 
295
connection default;
 
296
 
 
297
DROP USER 'Tanjotuser1'@'localhost';
 
298
DROP USER 'Tanjotuser2'@'127.0.0.1';
 
299
 
 
300
--echo
 
301
--echo 
 
302
--echo ============================================================================================================================================
 
303
--echo Checking the password authentication using the mysql_old_password plugin at the client and mysql_old_password plugin at the server side
 
304
--echo ============================================================================================================================================
 
305
--echo 
 
306
 
 
307
--echo # Restart server with default-authentication-plugin=mysql_old_password;
 
308
 
 
309
let $restart_file= $MYSQLTEST_VARDIR/tmp/mysqld.1.expect;
 
310
--exec echo "wait" > $restart_file
 
311
--shutdown_server 10
 
312
--source include/wait_until_disconnected.inc
 
313
-- exec echo "restart:--default-authentication-plugin=mysql_old_password  " > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
 
314
-- enable_reconnect
 
315
-- source include/wait_until_connected_again.inc
 
316
 
 
317
# Below section is hased till bug 16014394 is fixed
 
318
 
 
319
#select @@Global.old_passwords;
 
320
#--echo 1 Expected
 
321
 
 
322
select @@session.old_passwords;
 
323
--echo 0 Expected
 
324
 
 
325
# Checking the password authentication with mysql_old_password plugin
 
326
# Creating 2 users and encrypting the server side password with the mysql_old_password plugin
 
327
 
 
328
CREATE USER 'Tanjotuser1'@'localhost' IDENTIFIED WITH 'mysql_old_password';
 
329
 
 
330
CREATE USER 'Tanjotuser2'@'127.0.0.1' IDENTIFIED WITH 'mysql_old_password';
 
331
 
 
332
# Verifying the server side plugin used to be mysql_old_password
 
333
 
 
334
select (select plugin from mysql.user where User='Tanjotuser1' and Host='localhost')='mysql_old_password';
 
335
--echo 1 Expected
 
336
 
 
337
select (select plugin from mysql.user where User='Tanjotuser2' and Host='127.0.0.1')='mysql_old_password';
 
338
--echo 1 Expected
 
339
 
 
340
# Verifying the client connection using the same mysql_old_password plugin and NULL password
 
341
 
 
342
connect(con45,localhost,Tanjotuser1,,,);
 
343
connect(con46,127.0.0.1,Tanjotuser2,,,);
 
344
 
 
345
# Verifying the client connection using the same mysql_old_password plugin and junk password
 
346
 
 
347
--error ER_SERVER_IS_IN_SECURE_AUTH_MODE
 
348
connect(con47,localhost,Tanjotuser1," ",,);
 
349
 
 
350
--error ER_SERVER_IS_IN_SECURE_AUTH_MODE
 
351
connect(con48,127.0.0.1,Tanjotuser2," ",,);
 
352
 
 
353
# setting the password for the 2 users using the mysql_old_password plugin
 
354
 
 
355
connection default;
 
356
 
 
357
SET @@session.old_passwords=1;
 
358
 
 
359
SET PASSWORD FOR 'Tanjotuser1'@'localhost'=PASSWORD('abc');
 
360
SET PASSWORD FOR 'Tanjotuser2'@'127.0.0.1'=PASSWORD('abc');
 
361
 
 
362
--disable_warnings
 
363
set @@global.secure_auth=0;
 
364
--enable_warnings
 
365
 
 
366
## The parts of the below section has been hashed out till the bug https://clustra.no.oracle.com/orabugs/bug.php?id=16014394 is fixed
 
367
 
 
368
 
 
369
# Validating the session old_passwords value from the created users.
 
370
 
 
371
#--echo **** connecting Tanjotuser1 with server 
 
372
#--exec $MYSQL -uTanjotuser1 -pabc -hlocalhost --default_auth=mysql_native_password -e "select @@session.old_passwords"
 
373
#--echo 1 Expected
 
374
 
 
375
#--echo **** connecting Tanjotuser2 with server 
 
376
#--exec $MYSQL -uTanjotuser2 -pabc -h127.0.0.1 --default_auth=mysql_native_password -e "select @@session.old_passwords"
 
377
#--echo 1 Expected
 
378
 
 
379
 
 
380
 
 
381
#--echo **** connecting Tanjotuser1 with server 
 
382
#--exec $MYSQL -uTanjotuser1 -pabc -hlocalhost --default_auth=mysql_old_password -e "select @@session.old_passwords"
 
383
#--echo 1 Expected
 
384
 
 
385
#--echo **** connecting Tanjotuser2 with server 
 
386
#--exec $MYSQL -uTanjotuser2 -pabc -h127.0.0.1 --default_auth=mysql_old_password -e "select @@session.old_passwords"
 
387
#--echo 1 Expected
 
388
 
 
389
 
 
390
 
 
391
#--echo **** connecting Tanjotuser1 with server 
 
392
#--exec $MYSQL -uTanjotuser1 -pabc -hlocalhost --default_auth=sha256_password -e "select @@session.old_passwords"
 
393
#--echo 1 Expected
 
394
 
 
395
#--echo **** connecting Tanjotuser2 with server 
 
396
#--exec $MYSQL -uTanjotuser2 -pabc -h127.0.0.1 --default_auth=sha256_password -e "select @@session.old_passwords"
 
397
#--echo 1 Expected
 
398
 
 
399
 
 
400
 
 
401
#--echo **** connecting Tanjotuser1 with server 
 
402
#--exec $MYSQL -uTanjotuser1 -pabc -hlocalhost -e "select @@session.old_passwords"
 
403
#--echo 1 Expected
 
404
 
 
405
#--echo **** connecting Tanjotuser2 with server 
 
406
#--exec $MYSQL -uTanjotuser2 -pabc -h127.0.0.1 -e "select @@session.old_passwords"
 
407
#--echo 1 Expected
 
408
 
 
409
 
 
410
--disable_warnings
 
411
set @@global.secure_auth=1;
 
412
--enable_warnings
 
413
 
 
414
 
 
415
# Verifying the client connection using the same mysql_old_password plugin and NULL password
 
416
 
 
417
--error ER_ACCESS_DENIED_ERROR
 
418
connect(con49,localhost,Tanjotuser1,,,);
 
419
--error ER_ACCESS_DENIED_ERROR
 
420
connect(con50,127.0.0.1,Tanjotuser2,,,);
 
421
 
 
422
# Verifying the client connection using the same mysql_old_password plugin and junk password
 
423
 
 
424
--error ER_SERVER_IS_IN_SECURE_AUTH_MODE
 
425
connect(con51,localhost,Tanjotuser1," ",,);
 
426
--error ER_SERVER_IS_IN_SECURE_AUTH_MODE
 
427
connect(con52,127.0.0.1,Tanjotuser2," ",,);
 
428
 
 
429
--error ER_SERVER_IS_IN_SECURE_AUTH_MODE
 
430
connect(con53,localhost,Tanjotuser1,"%",,);
 
431
--error ER_SERVER_IS_IN_SECURE_AUTH_MODE
 
432
connect(con54,127.0.0.1,Tanjotuser2,"%",,);
 
433
 
 
434
--error ER_SERVER_IS_IN_SECURE_AUTH_MODE
 
435
connect(con55,localhost,Tanjotuser1,"_",,);
 
436
--error ER_SERVER_IS_IN_SECURE_AUTH_MODE
 
437
connect(con56,127.0.0.1,Tanjotuser2,"_",,);
 
438
 
 
439
--error ER_SERVER_IS_IN_SECURE_AUTH_MODE
 
440
connect(con57,localhost,Tanjotuser1,"0",,);
 
441
--error ER_SERVER_IS_IN_SECURE_AUTH_MODE
 
442
connect(con58,127.0.0.1,Tanjotuser2,"0",,);
 
443
 
 
444
--error ER_SERVER_IS_IN_SECURE_AUTH_MODE
 
445
connect(con59,localhost,Tanjotuser1,"^",,);
 
446
--error ER_SERVER_IS_IN_SECURE_AUTH_MODE
 
447
connect(con60,127.0.0.1,Tanjotuser2,"^",,);
 
448
 
 
449
--error ER_SERVER_IS_IN_SECURE_AUTH_MODE
 
450
connect(con61,localhost,Tanjotuser1,"\$",,);
 
451
--error ER_SERVER_IS_IN_SECURE_AUTH_MODE
 
452
connect(con62,127.0.0.1,Tanjotuser2,"\$",,);
 
453
 
 
454
--error ER_SERVER_IS_IN_SECURE_AUTH_MODE
 
455
connect(con63,localhost,Tanjotuser1,"&",,);
 
456
--error ER_SERVER_IS_IN_SECURE_AUTH_MODE
 
457
connect(con64,127.0.0.1,Tanjotuser2,"&",,);
 
458
 
 
459
 
 
460
# Verifying the client connection using the same mysql_old_password plugin and correct password with secure_auth enabled
 
461
 
 
462
connection default;
 
463
 
 
464
select @@global.secure_auth;
 
465
--echo 1 Expected
 
466
 
 
467
--error ER_SERVER_IS_IN_SECURE_AUTH_MODE
 
468
connect(con65,localhost,Tanjotuser1,abc,,);
 
469
--error ER_SERVER_IS_IN_SECURE_AUTH_MODE
 
470
connect(con66,127.0.0.1,Tanjotuser2,abc,,);
 
471
 
 
472
# Verifying the client connection using the same mysql_old_password plugin and correct password with secure_auth disabled
 
473
 
 
474
connection default;
 
475
 
 
476
--disable_warnings
 
477
set @@global.secure_auth=0;
 
478
--enable_warnings
 
479
 
 
480
--disable_warnings
 
481
connect(con67,localhost,Tanjotuser1,abc,,);
 
482
connect(con68,127.0.0.1,Tanjotuser2,abc,,);
 
483
--enable_warnings
 
484
 
 
485
# Below section is hashed till the bug16040690 is fixed.
 
486
 
 
487
#--error ER_SERVER_IS_IN_SECURE_AUTH_MODE
 
488
#connect(con69,localhost,Tanjotuser1,"abc ",,);
 
489
#--error ER_SERVER_IS_IN_SECURE_AUTH_MODE
 
490
#connect(con70,127.0.0.1,Tanjotuser2,"abc ",,);
 
491
 
 
492
#--error ER_SERVER_IS_IN_SECURE_AUTH_MODE
 
493
#connect(con71,localhost,Tanjotuser1," abc",,);
 
494
#--error ER_SERVER_IS_IN_SECURE_AUTH_MODE
 
495
#connect(con72,127.0.0.1,Tanjotuser2," abc",,);
 
496
 
 
497
--error ER_ACCESS_DENIED_ERROR
 
498
connect(con73,localhost,Tanjotuser1,"0abc",,);
 
499
--error ER_ACCESS_DENIED_ERROR
 
500
connect(con74,127.0.0.1,Tanjotuser2,"0abc",,);
 
501
 
 
502
--error ER_ACCESS_DENIED_ERROR
 
503
connect(con75,localhost,Tanjotuser1,"abc0",,);
 
504
--error ER_ACCESS_DENIED_ERROR
 
505
connect(con76,127.0.0.1,Tanjotuser2,"abc0",,);
 
506
 
 
507
--error ER_ACCESS_DENIED_ERROR
 
508
connect(con77,localhost,Tanjotuser1,"@abc",,);
 
509
--error ER_ACCESS_DENIED_ERROR
 
510
connect(con78,127.0.0.1,Tanjotuser2,"@abc",,);
 
511
 
 
512
# Dropping the created users
 
513
 
 
514
connection default;
 
515
 
 
516
DROP USER 'Tanjotuser1'@'localhost';
 
517
DROP USER 'Tanjotuser2'@'127.0.0.1';
 
518
 
 
519
--echo
 
520
--echo 
 
521
--echo ====================================================================================================
 
522
--echo checking the integrity of long password (more than 40 chars) using mysql_old_password plugin
 
523
--echo ====================================================================================================
 
524
--echo
 
525
 
 
526
 
 
527
# Checking the password authentication with mysql_old_password plugin
 
528
# Creating 2 users and encrypting the server side password with the mysql_old_password plugin
 
529
 
 
530
CREATE USER 'Tanjotuser1'@'localhost' IDENTIFIED WITH 'mysql_old_password';
 
531
 
 
532
CREATE USER 'Tanjotuser2'@'127.0.0.1' IDENTIFIED WITH 'mysql_old_password';
 
533
 
 
534
# setting the password for the 2 users using the mysql_old_password plugin
 
535
 
 
536
SET @@session.old_passwords=1;
 
537
 
 
538
SET PASSWORD FOR 'Tanjotuser1'@'localhost'=PASSWORD('$$$$$$$$$$^^^^^^^^^^&&&&&&&&&&**********((((((((((##########!!!!!!!!!!@@@@@@@@@@          @@@@@@@@@@__________');
 
539
SET PASSWORD FOR 'Tanjotuser2'@'127.0.0.1'=PASSWORD('$$$$$$$$$$^^^^^^^^^^&&&&&&&&&&**********((((((((((##########!!!!!!!!!!@@@@@@@@@@          @@@@@@@@@@__________');
 
540
 
 
541
 
 
542
# Verifying the client connection using the same mysql_old_password plugin and correct password with secure_auth disabled
 
543
 
 
544
--disable_warnings
 
545
set @@global.secure_auth=0;
 
546
--enable_warnings
 
547
 
 
548
--disable_warnings
 
549
connect(con79,localhost,Tanjotuser1,"\$\$\$\$\$\$\$\$\$\$^^^^^^^^^^&&&&&&&&&&**********((((((((((##########!!!!!!!!!!@@@@@@@@@@          @@@@@@@@@@__________",,);
 
550
connect(con80,127.0.0.1,Tanjotuser2,"\$\$\$\$\$\$\$\$\$\$^^^^^^^^^^&&&&&&&&&&**********((((((((((##########!!!!!!!!!!@@@@@@@@@@          @@@@@@@@@@__________",,);
 
551
--enable_warnings
 
552
 
 
553
# Verifying the client access denied passing null password
 
554
 
 
555
--error ER_ACCESS_DENIED_ERROR
 
556
connect(con81,localhost,Tanjotuser1," ",,);
 
557
--error ER_ACCESS_DENIED_ERROR
 
558
connect(con82,127.0.0.1,Tanjotuser2," ",,);
 
559
 
 
560
--error ER_ACCESS_DENIED_ERROR
 
561
connect(con83,localhost,Tanjotuser1,,,);
 
562
--error ER_ACCESS_DENIED_ERROR
 
563
connect(con84,127.0.0.1,Tanjotuser2,,,);
 
564
 
 
565
--error ER_ACCESS_DENIED_ERROR
 
566
connect(con85,localhost,Tanjotuser1,"@_",,);
 
567
--error ER_ACCESS_DENIED_ERROR
 
568
connect(con86,127.0.0.1,Tanjotuser2,"@_",,);
 
569
 
 
570
--error ER_ACCESS_DENIED_ERROR
 
571
connect(con87,localhost,Tanjotuser1,"$_",,);
 
572
--error ER_ACCESS_DENIED_ERROR
 
573
connect(con88,127.0.0.1,Tanjotuser2,"$_",,);
 
574
 
 
575
 
 
576
# Dropping the created users
 
577
 
 
578
connection default;
 
579
 
 
580
DROP USER 'Tanjotuser1'@'localhost';
 
581
DROP USER 'Tanjotuser2'@'127.0.0.1';
 
582
 
 
583
 
 
584
--echo
 
585
--echo 
 
586
--echo ============================================================================================================================================
 
587
--echo Checking the password authentication using the mysql_old_password plugin at the client and sha256_password plugin at the server side
 
588
--echo ============================================================================================================================================
 
589
--echo 
 
590
 
 
591
--echo # Restart server with default-authentication-plugin=sha256_password;
 
592
 
 
593
let $restart_file= $MYSQLTEST_VARDIR/tmp/mysqld.1.expect;
 
594
--exec echo "wait" > $restart_file
 
595
--shutdown_server 10
 
596
--source include/wait_until_disconnected.inc
 
597
-- exec echo "restart:--default-authentication-plugin=sha256_password  " > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
 
598
-- enable_reconnect
 
599
-- source include/wait_until_connected_again.inc
 
600
 
 
601
 
 
602
 
 
603
select @@Global.old_passwords;
 
604
--echo 2 Expected
 
605
 
 
606
select @@session.old_passwords;
 
607
--echo 0 Expected
 
608
 
 
609
# Checking the password authentication with mysql_old_password plugin
 
610
# Creating 2 users and encrypting the server side password with the mysql_old_password plugin
 
611
 
 
612
CREATE USER 'Tanjotuser1'@'localhost' IDENTIFIED WITH 'mysql_old_password';
 
613
 
 
614
CREATE USER 'Tanjotuser2'@'127.0.0.1' IDENTIFIED WITH 'mysql_old_password';
 
615
 
 
616
# Verifying the server side plugin used to be mysql_old_password
 
617
 
 
618
select (select plugin from mysql.user where User='Tanjotuser1' and Host='localhost')='mysql_old_password';
 
619
--echo 1 Expected
 
620
 
 
621
select (select plugin from mysql.user where User='Tanjotuser2' and Host='127.0.0.1')='mysql_old_password';
 
622
--echo 1 Expected
 
623
 
 
624
# Verifying the client connection using the same mysql_old_password plugin and NULL password
 
625
 
 
626
connect(con89,localhost,Tanjotuser1,,,);
 
627
connect(con90,127.0.0.1,Tanjotuser2,,,);
 
628
 
 
629
# Verifying the client connection using the same mysql_old_password plugin and junk password
 
630
 
 
631
--error ER_SERVER_IS_IN_SECURE_AUTH_MODE
 
632
connect(con91,localhost,Tanjotuser1," ",,);
 
633
 
 
634
--error ER_SERVER_IS_IN_SECURE_AUTH_MODE
 
635
connect(con92,127.0.0.1,Tanjotuser2," ",,);
 
636
 
 
637
# setting the password for the 2 users using the mysql_old_password plugin
 
638
 
 
639
connection default;
 
640
 
 
641
SET @@session.old_passwords=1;
 
642
 
 
643
SET PASSWORD FOR 'Tanjotuser1'@'localhost'=PASSWORD('abc');
 
644
SET PASSWORD FOR 'Tanjotuser2'@'127.0.0.1'=PASSWORD('abc');
 
645
 
 
646
 
 
647
# Validating the old_passwords value from the created users.
 
648
 
 
649
--disable_warnings
 
650
set @@global.secure_auth=0;
 
651
--enable_warnings
 
652
 
 
653
 
 
654
--echo **** connecting Tanjotuser1 with server 
 
655
--exec $MYSQL -uTanjotuser1 -pabc -hlocalhost --default_auth=mysql_native_password -e "select @@session.old_passwords"
 
656
--echo 1 Expected
 
657
 
 
658
--echo **** connecting Tanjotuser2 with server 
 
659
--exec $MYSQL -uTanjotuser2 -pabc -h127.0.0.1 --default_auth=mysql_native_password -e "select @@session.old_passwords"
 
660
--echo 1 Expected
 
661
 
 
662
 
 
663
 
 
664
--echo **** connecting Tanjotuser1 with server 
 
665
--exec $MYSQL -uTanjotuser1 -pabc -hlocalhost --default_auth=mysql_old_password -e "select @@session.old_passwords"
 
666
--echo 1 Expected
 
667
 
 
668
--echo **** connecting Tanjotuser2 with server 
 
669
--exec $MYSQL -uTanjotuser2 -pabc -h127.0.0.1 --default_auth=mysql_old_password -e "select @@session.old_passwords"
 
670
--echo 1 Expected
 
671
 
 
672
 
 
673
 
 
674
--echo **** connecting Tanjotuser1 with server 
 
675
--exec $MYSQL -uTanjotuser1 -pabc -hlocalhost --default_auth=sha256_password -e "select @@session.old_passwords"
 
676
--echo 1 Expected
 
677
 
 
678
--echo **** connecting Tanjotuser2 with server 
 
679
--exec $MYSQL -uTanjotuser2 -pabc -h127.0.0.1 --default_auth=sha256_password -e "select @@session.old_passwords"
 
680
--echo 1 Expected
 
681
 
 
682
 
 
683
 
 
684
--echo **** connecting Tanjotuser1 with server 
 
685
--exec $MYSQL -uTanjotuser1 -pabc -hlocalhost -e "select @@session.old_passwords"
 
686
--echo 1 Expected
 
687
 
 
688
--echo **** connecting Tanjotuser2 with server 
 
689
--exec $MYSQL -uTanjotuser2 -pabc -h127.0.0.1 -e "select @@session.old_passwords"
 
690
--echo 1 Expected
 
691
 
 
692
--disable_warnings
 
693
set @@global.secure_auth=1;
 
694
--enable_warnings
 
695
 
 
696
 
 
697
# Verifying the client connection using the same mysql_old_password plugin and NULL password
 
698
 
 
699
--error ER_ACCESS_DENIED_ERROR
 
700
connect(con93,localhost,Tanjotuser1,,,);
 
701
--error ER_ACCESS_DENIED_ERROR
 
702
connect(con94,127.0.0.1,Tanjotuser2,,,);
 
703
 
 
704
# Verifying the client connection using the same mysql_old_password plugin and junk password
 
705
 
 
706
--error ER_SERVER_IS_IN_SECURE_AUTH_MODE
 
707
connect(con95,localhost,Tanjotuser1," ",,);
 
708
--error ER_SERVER_IS_IN_SECURE_AUTH_MODE
 
709
connect(con96,127.0.0.1,Tanjotuser2," ",,);
 
710
 
 
711
--error ER_SERVER_IS_IN_SECURE_AUTH_MODE
 
712
connect(con97,localhost,Tanjotuser1,"%",,);
 
713
--error ER_SERVER_IS_IN_SECURE_AUTH_MODE
 
714
connect(con98,127.0.0.1,Tanjotuser2,"%",,);
 
715
 
 
716
--error ER_SERVER_IS_IN_SECURE_AUTH_MODE
 
717
connect(con99,localhost,Tanjotuser1,"_",,);
 
718
--error ER_SERVER_IS_IN_SECURE_AUTH_MODE
 
719
connect(con100,127.0.0.1,Tanjotuser2,"_",,);
 
720
 
 
721
--error ER_SERVER_IS_IN_SECURE_AUTH_MODE
 
722
connect(con101,localhost,Tanjotuser1,"0",,);
 
723
--error ER_SERVER_IS_IN_SECURE_AUTH_MODE
 
724
connect(con102,127.0.0.1,Tanjotuser2,"0",,);
 
725
 
 
726
--error ER_SERVER_IS_IN_SECURE_AUTH_MODE
 
727
connect(con103,localhost,Tanjotuser1,"^",,);
 
728
--error ER_SERVER_IS_IN_SECURE_AUTH_MODE
 
729
connect(con104,127.0.0.1,Tanjotuser2,"^",,);
 
730
 
 
731
--error ER_SERVER_IS_IN_SECURE_AUTH_MODE
 
732
connect(con105,localhost,Tanjotuser1,"\$",,);
 
733
--error ER_SERVER_IS_IN_SECURE_AUTH_MODE
 
734
connect(con106,127.0.0.1,Tanjotuser2,"\$",,);
 
735
 
 
736
--error ER_SERVER_IS_IN_SECURE_AUTH_MODE
 
737
connect(con107,localhost,Tanjotuser1,"&",,);
 
738
--error ER_SERVER_IS_IN_SECURE_AUTH_MODE
 
739
connect(con108,127.0.0.1,Tanjotuser2,"&",,);
 
740
 
 
741
 
 
742
# Verifying the client connection using the same mysql_old_password plugin and correct password with secure_auth enabled
 
743
 
 
744
connection default;
 
745
 
 
746
select @@global.secure_auth;
 
747
--echo 1 Expected
 
748
 
 
749
--error ER_SERVER_IS_IN_SECURE_AUTH_MODE
 
750
connect(con109,localhost,Tanjotuser1,abc,,);
 
751
--error ER_SERVER_IS_IN_SECURE_AUTH_MODE
 
752
connect(con110,127.0.0.1,Tanjotuser2,abc,,);
 
753
 
 
754
# Verifying the client connection using the same mysql_old_password plugin and correct password with secure_auth disabled
 
755
 
 
756
connection default;
 
757
 
 
758
--disable_warnings
 
759
set @@global.secure_auth=0;
 
760
--enable_warnings
 
761
 
 
762
--disable_warnings
 
763
connect(con111,localhost,Tanjotuser1,abc,,);
 
764
connect(con112,127.0.0.1,Tanjotuser2,abc,,);
 
765
--enable_warnings
 
766
 
 
767
# Below section is hashed till the bug16040690 is fixed.
 
768
 
 
769
#--error ER_SERVER_IS_IN_SECURE_AUTH_MODE
 
770
#connect(con113,localhost,Tanjotuser1,"abc ",,);
 
771
#--error ER_SERVER_IS_IN_SECURE_AUTH_MODE
 
772
#connect(con114,127.0.0.1,Tanjotuser2,"abc ",,);
 
773
 
 
774
#--error ER_SERVER_IS_IN_SECURE_AUTH_MODE
 
775
#connect(con115,localhost,Tanjotuser1," abc",,);
 
776
#--error ER_SERVER_IS_IN_SECURE_AUTH_MODE
 
777
#connect(con116,127.0.0.1,Tanjotuser2," abc",,);
 
778
 
 
779
--error ER_ACCESS_DENIED_ERROR
 
780
connect(con117,localhost,Tanjotuser1,"0abc",,);
 
781
--error ER_ACCESS_DENIED_ERROR
 
782
connect(con118,127.0.0.1,Tanjotuser2,"0abc",,);
 
783
 
 
784
--error ER_ACCESS_DENIED_ERROR
 
785
connect(con119,localhost,Tanjotuser1,"abc0",,);
 
786
--error ER_ACCESS_DENIED_ERROR
 
787
connect(con120,127.0.0.1,Tanjotuser2,"abc0",,);
 
788
 
 
789
--error ER_ACCESS_DENIED_ERROR
 
790
connect(con121,localhost,Tanjotuser1,"@abc",,);
 
791
--error ER_ACCESS_DENIED_ERROR
 
792
connect(con122,127.0.0.1,Tanjotuser2,"@abc",,);
 
793
 
 
794
# Dropping the created users
 
795
 
 
796
connection default;
 
797
 
 
798
DROP USER 'Tanjotuser1'@'localhost';
 
799
DROP USER 'Tanjotuser2'@'127.0.0.1';
 
800
 
 
801
--echo
 
802
--echo 
 
803
--echo ====================================================================================================
 
804
--echo checking the integrity of long password (more than 40 chars) using mysql_old_password plugin
 
805
--echo ====================================================================================================
 
806
--echo
 
807
 
 
808
 
 
809
# Checking the password authentication with mysql_old_password plugin
 
810
# Creating 2 users and encrypting the server side password with the mysql_old_password plugin
 
811
 
 
812
CREATE USER 'Tanjotuser1'@'localhost' IDENTIFIED WITH 'mysql_old_password';
 
813
 
 
814
CREATE USER 'Tanjotuser2'@'127.0.0.1' IDENTIFIED WITH 'mysql_old_password';
 
815
 
 
816
# setting the password for the 2 users using the mysql_old_password plugin
 
817
 
 
818
SET @@session.old_passwords=1;
 
819
 
 
820
SET PASSWORD FOR 'Tanjotuser1'@'localhost'=PASSWORD('$$$$$$$$$$^^^^^^^^^^&&&&&&&&&&**********((((((((((##########!!!!!!!!!!@@@@@@@@@@          @@@@@@@@@@__________');
 
821
SET PASSWORD FOR 'Tanjotuser2'@'127.0.0.1'=PASSWORD('$$$$$$$$$$^^^^^^^^^^&&&&&&&&&&**********((((((((((##########!!!!!!!!!!@@@@@@@@@@          @@@@@@@@@@__________');
 
822
 
 
823
 
 
824
# Verifying the client connection using the same mysql_old_password plugin and correct password with secure_auth disabled
 
825
 
 
826
--disable_warnings
 
827
set @@global.secure_auth=0;
 
828
--enable_warnings
 
829
 
 
830
--disable_warnings
 
831
connect(con123,localhost,Tanjotuser1,"\$\$\$\$\$\$\$\$\$\$^^^^^^^^^^&&&&&&&&&&**********((((((((((##########!!!!!!!!!!@@@@@@@@@@          @@@@@@@@@@__________",,);
 
832
connect(con124,127.0.0.1,Tanjotuser2,"\$\$\$\$\$\$\$\$\$\$^^^^^^^^^^&&&&&&&&&&**********((((((((((##########!!!!!!!!!!@@@@@@@@@@          @@@@@@@@@@__________",,);
 
833
--enable_warnings
 
834
 
 
835
# Verifying the client access denied passing null password
 
836
 
 
837
--error ER_ACCESS_DENIED_ERROR
 
838
connect(con125,localhost,Tanjotuser1," ",,);
 
839
--error ER_ACCESS_DENIED_ERROR
 
840
connect(con126,127.0.0.1,Tanjotuser2," ",,);
 
841
 
 
842
--error ER_ACCESS_DENIED_ERROR
 
843
connect(con127,localhost,Tanjotuser1,,,);
 
844
--error ER_ACCESS_DENIED_ERROR
 
845
connect(con128,127.0.0.1,Tanjotuser2,,,);
 
846
 
 
847
--error ER_ACCESS_DENIED_ERROR
 
848
connect(con129,localhost,Tanjotuser1,"@_",,);
 
849
--error ER_ACCESS_DENIED_ERROR
 
850
connect(con130,127.0.0.1,Tanjotuser2,"@_",,);
 
851
 
 
852
--error ER_ACCESS_DENIED_ERROR
 
853
connect(con131,localhost,Tanjotuser1,"$_",,);
 
854
--error ER_ACCESS_DENIED_ERROR
 
855
connect(con132,127.0.0.1,Tanjotuser2,"$_",,);
 
856
 
 
857
 
 
858
# Dropping the created users
 
859
 
 
860
disconnect con1;
 
861
disconnect con2;
 
862
#disconnect con3;
 
863
#disconnect con4;
 
864
#disconnect con5;
 
865
#disconnect con6;
 
866
#disconnect con7;
 
867
#disconnect con8;
 
868
#disconnect con9;
 
869
#disconnect con10;
 
870
#disconnect con11;
 
871
#disconnect con12;
 
872
#disconnect con13;
 
873
#disconnect con14;
 
874
#disconnect con15;
 
875
#disconnect con16;
 
876
#disconnect con17;
 
877
#disconnect con18;
 
878
#disconnect con19;
 
879
#disconnect con20;
 
880
#disconnect con21;
 
881
#disconnect con22;
 
882
disconnect con23;
 
883
disconnect con24;
 
884
#disconnect con25;
 
885
#disconnect con26;
 
886
#disconnect con27;
 
887
#disconnect con28;
 
888
#disconnect con29;
 
889
#disconnect con30;
 
890
#disconnect con31;
 
891
#disconnect con32;
 
892
#disconnect con33;
 
893
#disconnect con34;
 
894
#disconnect con35;
 
895
#disconnect con36;
 
896
#disconnect con37;
 
897
#disconnect con38;
 
898
#disconnect con39;
 
899
#disconnect con40;
 
900
#disconnect con41;
 
901
#disconnect con42;
 
902
#disconnect con43;
 
903
#disconnect con44;
 
904
disconnect con45;
 
905
disconnect con46;
 
906
#disconnect con47;
 
907
#disconnect con48;
 
908
#disconnect con49;
 
909
#disconnect con50;
 
910
#disconnect con51;
 
911
#disconnect con52;
 
912
#disconnect con53;
 
913
#disconnect con54;
 
914
#disconnect con55;
 
915
#disconnect con56;
 
916
#disconnect con57;
 
917
#disconnect con58;
 
918
#disconnect con59;
 
919
#disconnect con60;
 
920
#disconnect con61;
 
921
#disconnect con62;
 
922
#disconnect con63;
 
923
#disconnect con64;
 
924
#disconnect con65;
 
925
#disconnect con66;
 
926
#disconnect con67;
 
927
#disconnect con68;
 
928
#disconnect con69;
 
929
#disconnect con70;
 
930
#disconnect con71;
 
931
#disconnect con72;
 
932
#disconnect con73;
 
933
#disconnect con74;
 
934
#disconnect con75;
 
935
#disconnect con76;
 
936
#disconnect con77;
 
937
#disconnect con78;
 
938
disconnect con79;
 
939
disconnect con80;
 
940
#disconnect con81;
 
941
#disconnect con82;
 
942
#disconnect con83;
 
943
#disconnect con84;
 
944
#disconnect con85;
 
945
#disconnect con86;
 
946
#disconnect con87;
 
947
#disconnect con88;
 
948
disconnect con89;
 
949
disconnect con90;
 
950
#disconnect con91;
 
951
#disconnect con92;
 
952
#disconnect con93;
 
953
#disconnect con94;
 
954
#disconnect con95;
 
955
#disconnect con96;
 
956
#disconnect con97;
 
957
#disconnect con98;
 
958
#disconnect con99;
 
959
#disconnect con100;
 
960
#disconnect con101;
 
961
#disconnect con102;
 
962
#disconnect con103;
 
963
#disconnect con104;
 
964
#disconnect con105;
 
965
#disconnect con106;
 
966
#disconnect con107;
 
967
#disconnect con108;
 
968
#disconnect con109;
 
969
#disconnect con110;
 
970
disconnect con111;
 
971
disconnect con112;
 
972
#disconnect con113;
 
973
#disconnect con114;
 
974
#disconnect con115;
 
975
#disconnect con116;
 
976
#disconnect con117;
 
977
#disconnect con118;
 
978
#disconnect con119;
 
979
#disconnect con120;
 
980
#disconnect con121;
 
981
#disconnect con122;
 
982
disconnect con123;
 
983
disconnect con124;
 
984
#disconnect con125;
 
985
#disconnect con126;
 
986
#disconnect con127;
 
987
#disconnect con128;
 
988
#disconnect con129;
 
989
#disconnect con130;
 
990
#disconnect con131;
 
991
#disconnect con132;
 
992
 
 
993
 
 
994
connection default;
 
995
 
 
996
DROP USER 'Tanjotuser1'@'localhost';
 
997
DROP USER 'Tanjotuser2'@'127.0.0.1';