mysql.procs_priv Table
You are viewing an old version of this article. View
the current version here.
The mysql.procs_priv
table contains information about stored procedure and stored function privileges. See CREATE PROCEDURE and CREATE FUNCTION on creating these.
The INFORMATION_SCHEMA.ROUTINES table derives its contents from mysql.procs_priv
.
The mysql.procs_priv
table contains the following fields:
Field | Type | Null | Key | Default | Description |
---|---|---|---|---|---|
Host | char(60) | NO | PRI | Host (together with Db , User , Routine_name and Routine_type makes up the unique identifier for this record). | |
Db | char(64) | NO | PRI | Database (together with Host , User , Routine_name and Routine_type makes up the unique identifier for this record). | |
User | char(80) | NO | PRI | User (together with Host , Db , Routine_name and Routine_type makes up the unique identifier for this record). | |
Routine_name | char(64) | NO | PRI | Routine_name (together with Host , Db User and Routine_type makes up the unique identifier for this record). | |
Routine_type | enum('FUNCTION','PROCEDURE') | NO | PRI | NULL | Whether the routine is a stored procedure or stored function. |
Grantor | char(141) | NO | MUL | ||
Proc_priv | set('Execute','Alter Routine','Grant') | NO | The routine privilege. See Function Privileges and Procedure Privileges for details. | ||
Timestamp | timestamp | NO | CURRENT_TIMESTAMP |
The Acl_function_grants status variable, added in MariaDB 10.1.4, indicates how many rows the mysql.columns_priv
table contains with the .FUNCTION
routine type.
Comments
Comments loading...
Content reproduced on this site is the property of its respective owners,
and this content is not reviewed in advance by MariaDB. The views, information and opinions
expressed by this content do not necessarily represent those of MariaDB or any other party.