Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
ec043ace
Commit
ec043ace
authored
May 21, 2013
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Plain Diff
5.3 merge
parents
62ab6982
fce7fc43
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
mysql-test/r/empty_user_table.result
mysql-test/r/empty_user_table.result
+1
-1
mysql-test/t/empty_user_table.test
mysql-test/t/empty_user_table.test
+3
-1
No files found.
mysql-test/r/empty_user_table.result
View file @
ec043ace
...
@@ -2,7 +2,7 @@ create table t1 as select * from mysql.user;
...
@@ -2,7 +2,7 @@ create table t1 as select * from mysql.user;
truncate table mysql.user;
truncate table mysql.user;
flush privileges;
flush privileges;
connect(localhost,u1,,test,MASTER_PORT,MASTER_SOCKET);
connect(localhost,u1,,test,MASTER_PORT,MASTER_SOCKET);
ERROR 28000: Access denied for user 'u1'@'localhost' (using password: NO)
Got one of the listed errors
insert mysql.user select * from t1;
insert mysql.user select * from t1;
drop table t1;
drop table t1;
flush privileges;
flush privileges;
mysql-test/t/empty_user_table.test
View file @
ec043ace
...
@@ -8,8 +8,10 @@ create table t1 as select * from mysql.user;
...
@@ -8,8 +8,10 @@ create table t1 as select * from mysql.user;
truncate
table
mysql
.
user
;
truncate
table
mysql
.
user
;
flush
privileges
;
flush
privileges
;
# connecting via unix socket gives ER_ACCESS_DENIED_ERROR
# connecting via tcp/ip gives ER_HOST_NOT_PRIVILEGED
--
replace_result
$MASTER_MYSOCK
MASTER_SOCKET
$MASTER_MYPORT
MASTER_PORT
--
replace_result
$MASTER_MYSOCK
MASTER_SOCKET
$MASTER_MYPORT
MASTER_PORT
--
error
ER_ACCESS_DENIED_ERROR
--
error
ER_ACCESS_DENIED_ERROR
,
ER_HOST_NOT_PRIVILEGED
connect
(
fail
,
localhost
,
u1
);
connect
(
fail
,
localhost
,
u1
);
insert
mysql
.
user
select
*
from
t1
;
insert
mysql
.
user
select
*
from
t1
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment