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
3afa32dc
Commit
3afa32dc
authored
Jul 27, 2007
by
stewart@willster.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save the data from mysql.db that we delete (side effect that made read_only fail)
parent
f9d977f9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
mysql-test/r/ndb_bug26793.result
mysql-test/r/ndb_bug26793.result
+4
-0
mysql-test/t/ndb_bug26793.test
mysql-test/t/ndb_bug26793.test
+5
-0
No files found.
mysql-test/r/ndb_bug26793.result
View file @
3afa32dc
...
@@ -3,7 +3,11 @@ CREATE TABLE `test` (
...
@@ -3,7 +3,11 @@ CREATE TABLE `test` (
`id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
`id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
`t` VARCHAR( 10 ) NOT NULL
`t` VARCHAR( 10 ) NOT NULL
) ENGINE = ndbcluster;
) ENGINE = ndbcluster;
create table test.db_temp as select * from mysql.db where user='';
delete from mysql.db where user='';
delete from mysql.db where user='';
flush privileges;
flush privileges;
GRANT USAGE ON *.* TO user1@localhost IDENTIFIED BY 'pass';
GRANT USAGE ON *.* TO user1@localhost IDENTIFIED BY 'pass';
DROP TABLE `test`.`test`;
DROP TABLE `test`.`test`;
insert into mysql.db select * from test.db_temp;
drop table db_temp;
flush privileges;
mysql-test/t/ndb_bug26793.test
View file @
3afa32dc
...
@@ -9,6 +9,7 @@ CREATE TABLE `test` (
...
@@ -9,6 +9,7 @@ CREATE TABLE `test` (
`t`
VARCHAR
(
10
)
NOT
NULL
`t`
VARCHAR
(
10
)
NOT
NULL
)
ENGINE
=
ndbcluster
;
)
ENGINE
=
ndbcluster
;
create
table
test
.
db_temp
as
select
*
from
mysql
.
db
where
user
=
''
;
delete
from
mysql
.
db
where
user
=
''
;
delete
from
mysql
.
db
where
user
=
''
;
flush
privileges
;
flush
privileges
;
...
@@ -31,3 +32,7 @@ enable_result_log;
...
@@ -31,3 +32,7 @@ enable_result_log;
connect
(
root
,
localhost
,
root
,,
test
);
connect
(
root
,
localhost
,
root
,,
test
);
connection
root
;
connection
root
;
DROP
TABLE
`test`
.
`test`
;
DROP
TABLE
`test`
.
`test`
;
insert
into
mysql
.
db
select
*
from
test
.
db_temp
;
drop
table
db_temp
;
flush
privileges
;
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