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
34c28c6b
Commit
34c28c6b
authored
Mar 24, 2004
by
serg@serg.mylan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SHOW PRIVILEGES updated (Bug#3227)
parent
403001ff
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
20 deletions
+28
-20
Docs/README.1st
Docs/README.1st
+0
-0
sql/sql_acl.h
sql/sql_acl.h
+6
-0
sql/sql_show.cc
sql/sql_show.cc
+22
-20
No files found.
Docs/README.1st
100755 → 100644
View file @
34c28c6b
File mode changed from 100755 to 100644
sql/sql_acl.h
View file @
34c28c6b
...
...
@@ -36,6 +36,12 @@
#define REPL_SLAVE_ACL (1L << 19)
#define REPL_CLIENT_ACL (1L << 20)
/*
don't forget to update
static struct show_privileges_st sys_privileges[]
in sql_show.cc when adding new privileges!
*/
#define DB_ACLS \
(UPDATE_ACL | SELECT_ACL | INSERT_ACL | DELETE_ACL | CREATE_ACL | DROP_ACL | \
...
...
sql/sql_show.cc
View file @
34c28c6b
...
...
@@ -219,30 +219,32 @@ struct show_privileges_st {
const
char
*
comment
;
};
/*
TODO: Update with new privileges
*/
static
struct
show_privileges_st
sys_privileges
[]
=
{
{
"Select"
,
"Tables"
,
"To retrieve rows from table"
},
{
"Insert"
,
"Tables"
,
"To insert data into tables"
},
{
"Update"
,
"Tables"
,
"To update existing rows "
},
{
"Delete"
,
"Tables"
,
"To delete existing rows"
},
{
"Index"
,
"Tables"
,
"To create or drop indexes"
},
{
"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"
},
{
"Delete"
,
"Tables"
,
"To delete existing rows"
},
{
"Drop"
,
"Databases,Tables"
,
"To drop databases and tables"
},
{
"Grant"
,
"Databases,Tables"
,
"To give to other users those privileges you possess"
},
{
"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"
},
{
"Insert"
,
"Tables"
,
"To insert data into tables"
},
{
"Lock tables"
,
"Databases"
,
"To use LOCK TABLES (together with SELECT privilege)"
},
{
"Process"
,
"Server Admin"
,
"To view the plain text of currently executing queries"
},
{
"References"
,
"Databases,Tables"
,
"To have references on tables"
},
{
"Reload"
,
"Server Admin"
,
"To reload or refresh tables, logs and privileges"
},
{
"Replication client"
,
"Server Admin"
,
"To ask where the slave or master servers are"
},
{
"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"
},
{
"Process"
,
"Server Admin"
,
"To view the plain text of currently executing queries"
},
{
"File"
,
"File access on server"
,
"To read and write files on 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"
},
{
NullS
,
NullS
,
NullS
}
};
int
mysqld_show_privileges
(
THD
*
thd
)
{
List
<
Item
>
field_list
;
...
...
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