This is a read-only copy of the MariaDB Knowledgebase generated on 2024-12-22. For the latest, interactive version please visit https://mariadb.com/kb/.

mysql.procs_priv Table

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.

MariaDB starting with 10.4

In MariaDB 10.4 and later, this table uses the Aria storage engine.

MariaDB until 10.3

In MariaDB 10.3 and before, this table uses the MyISAM storage engine.

The mysql.procs_priv table contains the following fields:

FieldTypeNullKeyDefaultDescription
Hostchar(60)NOPRIHost (together with Db, User, Routine_name and Routine_type makes up the unique identifier for this record).
Dbchar(64)NOPRIDatabase (together with Host, User, Routine_name and Routine_type makes up the unique identifier for this record).
Userchar(80)NOPRIUser (together with Host, Db, Routine_name and Routine_type makes up the unique identifier for this record).
Routine_namechar(64)NOPRIRoutine_name (together with Host, Db User and Routine_type makes up the unique identifier for this record).
Routine_typeenum('FUNCTION','PROCEDURE', 'PACKAGE', 'PACKAGE BODY')NOPRINULLWhether the routine is a stored procedure, stored function, or, from MariaDB 10.3.5, a package or package body.
Grantorchar(141)NOMUL
Proc_privset('Execute','Alter Routine','Grant')NOThe routine privilege. See Function Privileges and Procedure Privileges for details.
TimestamptimestampNOCURRENT_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.

The Acl_procedure_grants status variable, added in MariaDB 10.1.4, indicates how many rows the mysql.columns_priv table contains with the PROCEDURE routine type.

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.