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
ded2e96a
Commit
ded2e96a
authored
Jul 20, 2004
by
paul@kite-hub.kitebird.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sql_show.cc:
Add views privileges to SHOW PRIVILEGES output. (Bug #4656)
parent
a3c4a6d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
sql/sql_show.cc
sql/sql_show.cc
+5
-3
No files found.
sql/sql_show.cc
View file @
ded2e96a
...
...
@@ -247,10 +247,11 @@ struct show_privileges_st {
static
struct
show_privileges_st
sys_privileges
[]
=
{
{
"Alter"
,
"Tables"
,
"To alter the table"
},
{
"Create temporary tables"
,
"Databases"
,
"To use CREATE TEMPORARY TABLE"
},
{
"Create"
,
"Databases,Tables,Indexes"
,
"To create new databases and tables"
},
{
"Create temporary tables"
,
"Databases"
,
"To use CREATE TEMPORARY TABLE"
},
{
"Create view"
,
"Tables"
,
"To create new views"
},
{
"Delete"
,
"Tables"
,
"To delete existing rows"
},
{
"Drop"
,
"Databases,Tables"
,
"To drop databases
and table
s"
},
{
"Drop"
,
"Databases,Tables"
,
"To drop databases
, tables, and view
s"
},
{
"File"
,
"File access on server"
,
"To read and write files on the server"
},
{
"Grant option"
,
"Databases,Tables"
,
"To give to other users those privileges you possess"
},
{
"Index"
,
"Tables"
,
"To create or drop indexes"
},
...
...
@@ -263,7 +264,8 @@ static struct show_privileges_st sys_privileges[]=
{
"Replication slave"
,
"Server Admin"
,
"To read binary log events from the master"
},
{
"Select"
,
"Tables"
,
"To retrieve rows from table"
},
{
"Show databases"
,
"Server Admin"
,
"To see all databases with SHOW DATABASES"
},
{
"Shutdown"
,
"Server Admin"
,
"To shutdown the server"
},
{
"Show view"
,
"Tables"
,
"To see views with SHOW CREATE VIEW"
},
{
"Shutdown"
,
"Server Admin"
,
"To shut down the server"
},
{
"Super"
,
"Server Admin"
,
"To use KILL thread, SET GLOBAL, CHANGE MASTER, etc."
},
{
"Update"
,
"Tables"
,
"To update existing rows"
},
{
"Usage"
,
"Server Admin"
,
"No privileges - allow connect only"
},
...
...
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