File tree Expand file tree Collapse file tree 4 files changed +10
-10
lines changed Expand file tree Collapse file tree 4 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 1
1
INSTALL SONAME 'auth_named_pipe';
2
2
CREATE USER 'USERNAME' IDENTIFIED WITH named_pipe;
3
- GRANT ALL PRIVILEGES ON *.* to USERNAME;
3
+ GRANT ALL PRIVILEGES ON *.* to ' USERNAME' ;
4
4
DROP USER 'USERNAME';
5
5
UNINSTALL SONAME 'auth_named_pipe';
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ INSTALL SONAME 'auth_named_pipe';
18
18
--replace_result $USERNAME USERNAME
19
19
eval CREATE USER '$USERNAME' IDENTIFIED WITH named_pipe;
20
20
--replace_result $USERNAME USERNAME
21
- eval GRANT ALL PRIVILEGES ON *.* to $USERNAME;
21
+ eval GRANT ALL PRIVILEGES ON *.* to ' $USERNAME' ;
22
22
23
23
let $targetdir=$MYSQLTEST_VARDIR/tmp/backup;
24
24
--disable_result_log
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ install plugin unix_socket soname 'auth_socket.so';
2
2
#
3
3
# with named user
4
4
#
5
- create user USER identified via unix_socket;
5
+ create user ' USER' identified via unix_socket;
6
6
#
7
7
# name match = ok
8
8
#
@@ -12,7 +12,7 @@ USER@localhost USER@% test
12
12
#
13
13
# name does not match = failure
14
14
#
15
- drop user USER;
15
+ drop user ' USER' ;
16
16
#
17
17
# and now with anonymous user
18
18
#
Original file line number Diff line number Diff line change @@ -12,9 +12,9 @@ eval install plugin unix_socket soname '$AUTH_SOCKET_SO';
12
12
--echo # with named user
13
13
--echo #
14
14
15
- --let $replace=create user $USER
16
- --replace_result $replace "create user USER"
17
- eval create user $USER identified via unix_socket;
15
+ --let $replace=create user ' $USER'
16
+ --replace_result $replace "create user ' USER' "
17
+ eval create user ' $USER' identified via unix_socket;
18
18
19
19
--write_file $MYSQLTEST_VARDIR/tmp/peercred_test.txt
20
20
--let $replace1=$USER@localhost
34
34
--error 1
35
35
--exec $MYSQL_TEST -u foobar --plugin-dir=$plugindir < $MYSQLTEST_VARDIR/tmp/peercred_test.txt
36
36
37
- --let $replace=drop user $USER
38
- --replace_result $replace "drop user USER"
39
- eval drop user $USER;
37
+ --let $replace=drop user ' $USER'
38
+ --replace_result $replace "drop user ' USER' "
39
+ eval drop user ' $USER' ;
40
40
41
41
--echo #
42
42
--echo # and now with anonymous user
You can’t perform that action at this time.
0 commit comments