Skip to content

Session state and variable helpers

Internal interfaces behind SET, SHOW, user variables and authentication cache management.

Internal interfaces behind SET, SHOW, user variables and authentication cache management.

C

SignaturePurposeSource definition
mysql.clear_user_variables() → voidClear the session’s user variables.SQL · C

F

SignaturePurposeSource definition
mysql.flush_auth_cache() → bigintClear the fast-authentication cache. EXECUTE is restricted.SQL · C

G

SignaturePurposeSource definition
mysql.get_system_global_variable(text) → textRead a global @@ variable.SQL
mysql.get_system_session_variable(text) → textRead a session @@ variable.SQL
mysql.get_system_variable(text, boolean) → textResolve a system variable for its requested scope.SQL · C
mysql.get_user_var(variable_name character varying) → byteaRead a MySQL @user variable.SQL · C
mysql.getenv(text) → textRead a server environment variable for installation. EXECUTE is restricted.SQL · C

S

SignaturePurposeSource definition
mysql.set_system_charset_variable(text) → voidApply SET CHARACTER SET to the current connection.SQL · C
mysql.set_system_global_variable(text, anycompatible) → voidSet the global value of a system variable.SQL
mysql.set_system_names_variable(text) → voidApply SET NAMES to the current connection.SQL · C
mysql.set_system_names_variable(text, text) → voidApply SET NAMES to the current connection.SQL · C
mysql.set_system_session_variable(text, anycompatible) → voidSet the session value of a system variable.SQL
mysql.set_system_variable(text, text, boolean) → booleanAssign a system variable in the selected scope.SQL · C
mysql.set_user_var(variable_name character varying, variable_value anycompatible) → voidStore a MySQL @user variable for SET or expression evaluation.SQL · C
mysql.set_user_var_in_expr(variable_name character varying, variable_value anycompatible) → byteaStore a MySQL @user variable for SET or expression evaluation.SQL · C
mysql.show_system_variable(text, boolean) → textResolve a system variable for its requested scope.SQL · C