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
d3616b41
Commit
d3616b41
authored
Oct 12, 2016
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mariadb_10.1.8_create_system_tables__no_test.patch
parent
88693ddd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
4 deletions
+0
-4
scripts/mysql_system_tables_data.sql
scripts/mysql_system_tables_data.sql
+0
-4
No files found.
scripts/mysql_system_tables_data.sql
View file @
d3616b41
...
...
@@ -30,8 +30,6 @@ SELECT LOWER( REPLACE((SELECT REPLACE(@@hostname,'_','\_')),'%','\%') )INTO @cur
-- Fill "db" table with default grants for anyone to
-- access database 'test' and 'test_%' if "db" table didn't exist
CREATE
TEMPORARY
TABLE
tmp_db
LIKE
db
;
INSERT
INTO
tmp_db
VALUES
(
'%'
,
'test'
,
''
,
'Y'
,
'Y'
,
'Y'
,
'Y'
,
'Y'
,
'Y'
,
'N'
,
'Y'
,
'Y'
,
'Y'
,
'Y'
,
'Y'
,
'Y'
,
'Y'
,
'Y'
,
'N'
,
'N'
,
'Y'
,
'Y'
);
INSERT
INTO
tmp_db
VALUES
(
'%'
,
'test
\_
%'
,
''
,
'Y'
,
'Y'
,
'Y'
,
'Y'
,
'Y'
,
'Y'
,
'N'
,
'Y'
,
'Y'
,
'Y'
,
'Y'
,
'Y'
,
'Y'
,
'Y'
,
'Y'
,
'N'
,
'N'
,
'Y'
,
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,
''
,
''
,
''
,
0
,
0
,
0
,
0
,
''
,
''
,
'N'
,
'N'
,
''
,
0
);
INSERT
INTO
tmp_user
(
host
,
user
)
VALUES
(
'localhost'
,
''
);
INSERT
INTO
tmp_user
(
host
,
user
)
SELECT
@
current_hostname
,
''
FROM
dual
WHERE
@
current_hostname
!=
'localhost'
;
INSERT
INTO
user
SELECT
*
FROM
tmp_user
WHERE
@
had_user_table
=
0
;
DROP
TABLE
tmp_user
;
...
...
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