Commit fce1a53d authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

MDEV-9077 sys schema . use 'mariadb.sys'@'localhost' as definer for views

parent 5ce22bac
...@@ -17,7 +17,7 @@ DROP FUNCTION IF EXISTS extract_schema_from_file_name; ...@@ -17,7 +17,7 @@ DROP FUNCTION IF EXISTS extract_schema_from_file_name;
DELIMITER $$ DELIMITER $$
CREATE DEFINER='root'@'localhost' FUNCTION extract_schema_from_file_name ( CREATE DEFINER='mariadb.sys'@'localhost' FUNCTION extract_schema_from_file_name (
path VARCHAR(512) path VARCHAR(512)
) )
RETURNS VARCHAR(64) RETURNS VARCHAR(64)
......
...@@ -17,7 +17,7 @@ DROP FUNCTION IF EXISTS extract_table_from_file_name; ...@@ -17,7 +17,7 @@ DROP FUNCTION IF EXISTS extract_table_from_file_name;
DELIMITER $$ DELIMITER $$
CREATE DEFINER='root'@'localhost' FUNCTION extract_table_from_file_name ( CREATE DEFINER='mariadb.sys'@'localhost' FUNCTION extract_table_from_file_name (
path VARCHAR(512) path VARCHAR(512)
) )
RETURNS VARCHAR(64) RETURNS VARCHAR(64)
......
...@@ -17,7 +17,7 @@ DROP FUNCTION IF EXISTS format_bytes; ...@@ -17,7 +17,7 @@ DROP FUNCTION IF EXISTS format_bytes;
DELIMITER $$ DELIMITER $$
CREATE DEFINER='root'@'localhost' FUNCTION format_bytes ( CREATE DEFINER='mariadb.sys'@'localhost' FUNCTION format_bytes (
-- We feed in and return TEXT here, as aggregates of -- We feed in and return TEXT here, as aggregates of
-- bytes can return numbers larger than BIGINT UNSIGNED -- bytes can return numbers larger than BIGINT UNSIGNED
bytes TEXT bytes TEXT
......
...@@ -17,7 +17,7 @@ DROP FUNCTION IF EXISTS format_path; ...@@ -17,7 +17,7 @@ DROP FUNCTION IF EXISTS format_path;
DELIMITER $$ DELIMITER $$
CREATE DEFINER='root'@'localhost' FUNCTION format_path ( CREATE DEFINER='mariadb.sys'@'localhost' FUNCTION format_path (
in_path VARCHAR(512) in_path VARCHAR(512)
) )
RETURNS VARCHAR(512) CHARSET UTF8 RETURNS VARCHAR(512) CHARSET UTF8
......
...@@ -17,7 +17,7 @@ DROP FUNCTION IF EXISTS format_path; ...@@ -17,7 +17,7 @@ DROP FUNCTION IF EXISTS format_path;
DELIMITER $$ DELIMITER $$
CREATE DEFINER='root'@'localhost' FUNCTION format_path ( CREATE DEFINER='mariadb.sys'@'localhost' FUNCTION format_path (
in_path VARCHAR(512) in_path VARCHAR(512)
) )
RETURNS VARCHAR(512) CHARSET UTF8 RETURNS VARCHAR(512) CHARSET UTF8
......
...@@ -17,7 +17,7 @@ DROP FUNCTION IF EXISTS format_statement; ...@@ -17,7 +17,7 @@ DROP FUNCTION IF EXISTS format_statement;
DELIMITER $$ DELIMITER $$
CREATE DEFINER='root'@'localhost' FUNCTION format_statement ( CREATE DEFINER='mariadb.sys'@'localhost' FUNCTION format_statement (
statement LONGTEXT statement LONGTEXT
) )
RETURNS LONGTEXT RETURNS LONGTEXT
......
...@@ -17,7 +17,7 @@ DROP FUNCTION IF EXISTS format_time; ...@@ -17,7 +17,7 @@ DROP FUNCTION IF EXISTS format_time;
DELIMITER $$ DELIMITER $$
CREATE DEFINER='root'@'localhost' FUNCTION format_time ( CREATE DEFINER='mariadb.sys'@'localhost' FUNCTION format_time (
-- We feed in and return TEXT here, as aggregates of -- We feed in and return TEXT here, as aggregates of
-- picoseconds can return numbers larger than BIGINT UNSIGNED -- picoseconds can return numbers larger than BIGINT UNSIGNED
picoseconds TEXT picoseconds TEXT
......
...@@ -17,7 +17,7 @@ DROP FUNCTION IF EXISTS list_add; ...@@ -17,7 +17,7 @@ DROP FUNCTION IF EXISTS list_add;
DELIMITER $$ DELIMITER $$
CREATE DEFINER='root'@'localhost' FUNCTION list_add ( CREATE DEFINER='mariadb.sys'@'localhost' FUNCTION list_add (
in_list TEXT, in_list TEXT,
in_add_value TEXT in_add_value TEXT
) )
......
...@@ -17,7 +17,7 @@ DROP FUNCTION IF EXISTS list_drop; ...@@ -17,7 +17,7 @@ DROP FUNCTION IF EXISTS list_drop;
DELIMITER $$ DELIMITER $$
CREATE DEFINER='root'@'localhost' FUNCTION list_drop ( CREATE DEFINER='mariadb.sys'@'localhost' FUNCTION list_drop (
in_list TEXT, in_list TEXT,
in_drop_value TEXT in_drop_value TEXT
) )
......
...@@ -17,7 +17,7 @@ DROP FUNCTION IF EXISTS ps_is_account_enabled; ...@@ -17,7 +17,7 @@ DROP FUNCTION IF EXISTS ps_is_account_enabled;
DELIMITER $$ DELIMITER $$
CREATE DEFINER='root'@'localhost' FUNCTION ps_is_account_enabled ( CREATE DEFINER='mariadb.sys'@'localhost' FUNCTION ps_is_account_enabled (
in_host VARCHAR(60), in_host VARCHAR(60),
in_user VARCHAR(16) in_user VARCHAR(16)
) )
......
...@@ -17,7 +17,7 @@ DROP FUNCTION IF EXISTS ps_is_account_enabled; ...@@ -17,7 +17,7 @@ DROP FUNCTION IF EXISTS ps_is_account_enabled;
DELIMITER $$ DELIMITER $$
CREATE DEFINER='root'@'localhost' FUNCTION ps_is_account_enabled ( CREATE DEFINER='mariadb.sys'@'localhost' FUNCTION ps_is_account_enabled (
in_host VARCHAR(60), in_host VARCHAR(60),
in_user VARCHAR(32) in_user VARCHAR(32)
) )
......
...@@ -17,7 +17,7 @@ DROP FUNCTION IF EXISTS ps_is_consumer_enabled; ...@@ -17,7 +17,7 @@ DROP FUNCTION IF EXISTS ps_is_consumer_enabled;
DELIMITER $$ DELIMITER $$
CREATE DEFINER='root'@'localhost' FUNCTION ps_is_consumer_enabled ( CREATE DEFINER='mariadb.sys'@'localhost' FUNCTION ps_is_consumer_enabled (
in_consumer varchar(64) in_consumer varchar(64)
) )
RETURNS enum('YES', 'NO') RETURNS enum('YES', 'NO')
......
...@@ -17,7 +17,7 @@ DROP FUNCTION IF EXISTS ps_is_instrument_default_enabled; ...@@ -17,7 +17,7 @@ DROP FUNCTION IF EXISTS ps_is_instrument_default_enabled;
DELIMITER $$ DELIMITER $$
CREATE DEFINER='root'@'localhost' FUNCTION ps_is_instrument_default_enabled ( CREATE DEFINER='mariadb.sys'@'localhost' FUNCTION ps_is_instrument_default_enabled (
in_instrument VARCHAR(128) in_instrument VARCHAR(128)
) )
RETURNS ENUM('YES', 'NO') RETURNS ENUM('YES', 'NO')
......
...@@ -17,7 +17,7 @@ DROP FUNCTION IF EXISTS ps_is_instrument_default_timed; ...@@ -17,7 +17,7 @@ DROP FUNCTION IF EXISTS ps_is_instrument_default_timed;
DELIMITER $$ DELIMITER $$
CREATE DEFINER='root'@'localhost' FUNCTION ps_is_instrument_default_timed ( CREATE DEFINER='mariadb.sys'@'localhost' FUNCTION ps_is_instrument_default_timed (
in_instrument VARCHAR(128) in_instrument VARCHAR(128)
) )
RETURNS ENUM('YES', 'NO') RETURNS ENUM('YES', 'NO')
......
...@@ -17,7 +17,7 @@ DROP FUNCTION IF EXISTS ps_is_thread_instrumented; ...@@ -17,7 +17,7 @@ DROP FUNCTION IF EXISTS ps_is_thread_instrumented;
DELIMITER $$ DELIMITER $$
CREATE DEFINER='root'@'localhost' FUNCTION ps_is_thread_instrumented ( CREATE DEFINER='mariadb.sys'@'localhost' FUNCTION ps_is_thread_instrumented (
in_connection_id BIGINT UNSIGNED in_connection_id BIGINT UNSIGNED
) RETURNS ENUM('YES', 'NO', 'UNKNOWN') ) RETURNS ENUM('YES', 'NO', 'UNKNOWN')
COMMENT ' COMMENT '
......
...@@ -17,7 +17,7 @@ DROP FUNCTION IF EXISTS ps_thread_account; ...@@ -17,7 +17,7 @@ DROP FUNCTION IF EXISTS ps_thread_account;
DELIMITER $$ DELIMITER $$
CREATE DEFINER='root'@'localhost' FUNCTION ps_thread_account ( CREATE DEFINER='mariadb.sys'@'localhost' FUNCTION ps_thread_account (
in_thread_id BIGINT UNSIGNED in_thread_id BIGINT UNSIGNED
) RETURNS TEXT ) RETURNS TEXT
COMMENT ' COMMENT '
......
...@@ -17,7 +17,7 @@ DROP FUNCTION IF EXISTS ps_thread_id; ...@@ -17,7 +17,7 @@ DROP FUNCTION IF EXISTS ps_thread_id;
DELIMITER $$ DELIMITER $$
CREATE DEFINER='root'@'localhost' FUNCTION ps_thread_id ( CREATE DEFINER='mariadb.sys'@'localhost' FUNCTION ps_thread_id (
in_connection_id BIGINT UNSIGNED in_connection_id BIGINT UNSIGNED
) RETURNS BIGINT UNSIGNED ) RETURNS BIGINT UNSIGNED
COMMENT ' COMMENT '
......
...@@ -17,7 +17,7 @@ DROP FUNCTION IF EXISTS ps_thread_stack; ...@@ -17,7 +17,7 @@ DROP FUNCTION IF EXISTS ps_thread_stack;
DELIMITER $$ DELIMITER $$
CREATE DEFINER='root'@'localhost' FUNCTION ps_thread_stack ( CREATE DEFINER='mariadb.sys'@'localhost' FUNCTION ps_thread_stack (
thd_id BIGINT UNSIGNED, thd_id BIGINT UNSIGNED,
debug BOOLEAN debug BOOLEAN
) )
......
...@@ -17,7 +17,7 @@ DROP FUNCTION IF EXISTS ps_thread_trx_info; ...@@ -17,7 +17,7 @@ DROP FUNCTION IF EXISTS ps_thread_trx_info;
DELIMITER $$ DELIMITER $$
CREATE DEFINER='root'@'localhost' FUNCTION ps_thread_trx_info ( CREATE DEFINER='mariadb.sys'@'localhost' FUNCTION ps_thread_trx_info (
in_thread_id BIGINT UNSIGNED in_thread_id BIGINT UNSIGNED
) RETURNS LONGTEXT ) RETURNS LONGTEXT
COMMENT ' COMMENT '
......
...@@ -22,7 +22,7 @@ DELIMITER $$ ...@@ -22,7 +22,7 @@ DELIMITER $$
-- Before that, user variables could have any length. -- Before that, user variables could have any length.
-- --
-- Based on Paul Dubois' suggestion in Bug #78823/Bug #22011361. -- Based on Paul Dubois' suggestion in Bug #78823/Bug #22011361.
CREATE DEFINER='root'@'localhost' FUNCTION quote_identifier(in_identifier TEXT) CREATE DEFINER='mariadb.sys'@'localhost' FUNCTION quote_identifier(in_identifier TEXT)
RETURNS TEXT CHARSET UTF8 RETURNS TEXT CHARSET UTF8
COMMENT ' COMMENT '
Description Description
......
...@@ -17,7 +17,7 @@ DROP FUNCTION IF EXISTS sys_get_config; ...@@ -17,7 +17,7 @@ DROP FUNCTION IF EXISTS sys_get_config;
DELIMITER $$ DELIMITER $$
CREATE DEFINER='root'@'localhost' FUNCTION sys_get_config ( CREATE DEFINER='mariadb.sys'@'localhost' FUNCTION sys_get_config (
in_variable_name VARCHAR(128), in_variable_name VARCHAR(128),
in_default_value VARCHAR(128) in_default_value VARCHAR(128)
) )
......
...@@ -17,7 +17,7 @@ DROP FUNCTION IF EXISTS version_major; ...@@ -17,7 +17,7 @@ DROP FUNCTION IF EXISTS version_major;
DELIMITER $$ DELIMITER $$
CREATE DEFINER='root'@'localhost' FUNCTION version_major () CREATE DEFINER='mariadb.sys'@'localhost' FUNCTION version_major ()
RETURNS TINYINT UNSIGNED RETURNS TINYINT UNSIGNED
COMMENT ' COMMENT '
Description Description
......
...@@ -17,7 +17,7 @@ DROP FUNCTION IF EXISTS version_minor; ...@@ -17,7 +17,7 @@ DROP FUNCTION IF EXISTS version_minor;
DELIMITER $$ DELIMITER $$
CREATE DEFINER='root'@'localhost' FUNCTION version_minor () CREATE DEFINER='mariadb.sys'@'localhost' FUNCTION version_minor ()
RETURNS TINYINT UNSIGNED RETURNS TINYINT UNSIGNED
COMMENT ' COMMENT '
Description Description
......
...@@ -17,7 +17,7 @@ DROP FUNCTION IF EXISTS version_patch; ...@@ -17,7 +17,7 @@ DROP FUNCTION IF EXISTS version_patch;
DELIMITER $$ DELIMITER $$
CREATE DEFINER='root'@'localhost' FUNCTION version_patch () CREATE DEFINER='mariadb.sys'@'localhost' FUNCTION version_patch ()
RETURNS TINYINT UNSIGNED RETURNS TINYINT UNSIGNED
COMMENT ' COMMENT '
Description Description
......
...@@ -17,7 +17,7 @@ DROP PROCEDURE IF EXISTS create_synonym_db; ...@@ -17,7 +17,7 @@ DROP PROCEDURE IF EXISTS create_synonym_db;
DELIMITER $$ DELIMITER $$
CREATE DEFINER='root'@'localhost' PROCEDURE create_synonym_db ( CREATE DEFINER='mariadb.sys'@'localhost' PROCEDURE create_synonym_db (
IN in_db_name VARCHAR(64), IN in_db_name VARCHAR(64),
IN in_synonym VARCHAR(64) IN in_synonym VARCHAR(64)
) )
......
...@@ -17,7 +17,7 @@ DROP PROCEDURE IF EXISTS diagnostics; ...@@ -17,7 +17,7 @@ DROP PROCEDURE IF EXISTS diagnostics;
DELIMITER $$ DELIMITER $$
CREATE DEFINER='root'@'localhost' PROCEDURE diagnostics ( CREATE DEFINER='mariadb.sys'@'localhost' PROCEDURE diagnostics (
IN in_max_runtime int unsigned, IN in_interval int unsigned, IN in_max_runtime int unsigned, IN in_interval int unsigned,
IN in_auto_config enum ('current', 'medium', 'full') IN in_auto_config enum ('current', 'medium', 'full')
) )
......
...@@ -17,7 +17,7 @@ DROP PROCEDURE IF EXISTS execute_prepared_stmt; ...@@ -17,7 +17,7 @@ DROP PROCEDURE IF EXISTS execute_prepared_stmt;
DELIMITER $$ DELIMITER $$
CREATE DEFINER='root'@'localhost' PROCEDURE execute_prepared_stmt ( CREATE DEFINER='mariadb.sys'@'localhost' PROCEDURE execute_prepared_stmt (
IN in_query longtext CHARACTER SET UTF8 IN in_query longtext CHARACTER SET UTF8
) )
COMMENT ' COMMENT '
......
...@@ -17,7 +17,7 @@ DROP PROCEDURE IF EXISTS ps_setup_disable_background_threads; ...@@ -17,7 +17,7 @@ DROP PROCEDURE IF EXISTS ps_setup_disable_background_threads;
DELIMITER $$ DELIMITER $$
CREATE DEFINER='root'@'localhost' PROCEDURE ps_setup_disable_background_threads () CREATE DEFINER='mariadb.sys'@'localhost' PROCEDURE ps_setup_disable_background_threads ()
COMMENT ' COMMENT '
Description Description
----------- -----------
......
...@@ -17,7 +17,7 @@ DROP PROCEDURE IF EXISTS ps_setup_disable_consumer; ...@@ -17,7 +17,7 @@ DROP PROCEDURE IF EXISTS ps_setup_disable_consumer;
DELIMITER $$ DELIMITER $$
CREATE DEFINER='root'@'localhost' PROCEDURE ps_setup_disable_consumer ( CREATE DEFINER='mariadb.sys'@'localhost' PROCEDURE ps_setup_disable_consumer (
IN consumer VARCHAR(128) IN consumer VARCHAR(128)
) )
COMMENT ' COMMENT '
......
...@@ -17,7 +17,7 @@ DROP PROCEDURE IF EXISTS ps_setup_disable_instrument; ...@@ -17,7 +17,7 @@ DROP PROCEDURE IF EXISTS ps_setup_disable_instrument;
DELIMITER $$ DELIMITER $$
CREATE DEFINER='root'@'localhost' PROCEDURE ps_setup_disable_instrument ( CREATE DEFINER='mariadb.sys'@'localhost' PROCEDURE ps_setup_disable_instrument (
IN in_pattern VARCHAR(128) IN in_pattern VARCHAR(128)
) )
COMMENT ' COMMENT '
......
...@@ -17,7 +17,7 @@ DROP PROCEDURE IF EXISTS ps_setup_disable_thread; ...@@ -17,7 +17,7 @@ DROP PROCEDURE IF EXISTS ps_setup_disable_thread;
DELIMITER $$ DELIMITER $$
CREATE DEFINER='root'@'localhost' PROCEDURE ps_setup_disable_thread ( CREATE DEFINER='mariadb.sys'@'localhost' PROCEDURE ps_setup_disable_thread (
IN in_connection_id BIGINT IN in_connection_id BIGINT
) )
COMMENT ' COMMENT '
......
...@@ -17,7 +17,7 @@ DROP PROCEDURE IF EXISTS ps_setup_enable_background_threads; ...@@ -17,7 +17,7 @@ DROP PROCEDURE IF EXISTS ps_setup_enable_background_threads;
DELIMITER $$ DELIMITER $$
CREATE DEFINER='root'@'localhost' PROCEDURE ps_setup_enable_background_threads () CREATE DEFINER='mariadb.sys'@'localhost' PROCEDURE ps_setup_enable_background_threads ()
COMMENT ' COMMENT '
Description Description
----------- -----------
......
...@@ -17,7 +17,7 @@ DROP PROCEDURE IF EXISTS ps_setup_enable_consumer; ...@@ -17,7 +17,7 @@ DROP PROCEDURE IF EXISTS ps_setup_enable_consumer;
DELIMITER $$ DELIMITER $$
CREATE DEFINER='root'@'localhost' PROCEDURE ps_setup_enable_consumer ( CREATE DEFINER='mariadb.sys'@'localhost' PROCEDURE ps_setup_enable_consumer (
IN consumer VARCHAR(128) IN consumer VARCHAR(128)
) )
COMMENT ' COMMENT '
......
...@@ -17,7 +17,7 @@ DROP PROCEDURE IF EXISTS ps_setup_enable_instrument; ...@@ -17,7 +17,7 @@ DROP PROCEDURE IF EXISTS ps_setup_enable_instrument;
DELIMITER $$ DELIMITER $$
CREATE DEFINER='root'@'localhost' PROCEDURE ps_setup_enable_instrument ( CREATE DEFINER='mariadb.sys'@'localhost' PROCEDURE ps_setup_enable_instrument (
IN in_pattern VARCHAR(128) IN in_pattern VARCHAR(128)
) )
COMMENT ' COMMENT '
......
...@@ -17,7 +17,7 @@ DROP PROCEDURE IF EXISTS ps_setup_enable_thread; ...@@ -17,7 +17,7 @@ DROP PROCEDURE IF EXISTS ps_setup_enable_thread;
DELIMITER $$ DELIMITER $$
CREATE DEFINER='root'@'localhost' PROCEDURE ps_setup_enable_thread ( CREATE DEFINER='mariadb.sys'@'localhost' PROCEDURE ps_setup_enable_thread (
IN in_connection_id BIGINT IN in_connection_id BIGINT
) )
COMMENT ' COMMENT '
......
...@@ -17,7 +17,7 @@ DROP PROCEDURE IF EXISTS ps_setup_reload_saved; ...@@ -17,7 +17,7 @@ DROP PROCEDURE IF EXISTS ps_setup_reload_saved;
DELIMITER $$ DELIMITER $$
CREATE DEFINER='root'@'localhost' PROCEDURE ps_setup_reload_saved () CREATE DEFINER='mariadb.sys'@'localhost' PROCEDURE ps_setup_reload_saved ()
COMMENT ' COMMENT '
Description Description
----------- -----------
......
...@@ -17,7 +17,7 @@ DROP PROCEDURE IF EXISTS ps_setup_reset_to_default; ...@@ -17,7 +17,7 @@ DROP PROCEDURE IF EXISTS ps_setup_reset_to_default;
DELIMITER $$ DELIMITER $$
CREATE DEFINER='root'@'localhost' PROCEDURE ps_setup_reset_to_default ( CREATE DEFINER='mariadb.sys'@'localhost' PROCEDURE ps_setup_reset_to_default (
IN in_verbose BOOLEAN IN in_verbose BOOLEAN
) )
COMMENT ' COMMENT '
......
...@@ -17,7 +17,7 @@ DROP PROCEDURE IF EXISTS ps_setup_reset_to_default; ...@@ -17,7 +17,7 @@ DROP PROCEDURE IF EXISTS ps_setup_reset_to_default;
DELIMITER $$ DELIMITER $$
CREATE DEFINER='root'@'localhost' PROCEDURE ps_setup_reset_to_default ( CREATE DEFINER='mariadb.sys'@'localhost' PROCEDURE ps_setup_reset_to_default (
IN in_verbose BOOLEAN IN in_verbose BOOLEAN
) )
COMMENT ' COMMENT '
......
...@@ -17,7 +17,7 @@ DROP PROCEDURE IF EXISTS ps_setup_save; ...@@ -17,7 +17,7 @@ DROP PROCEDURE IF EXISTS ps_setup_save;
DELIMITER $$ DELIMITER $$
CREATE DEFINER='root'@'localhost' PROCEDURE ps_setup_save ( CREATE DEFINER='mariadb.sys'@'localhost' PROCEDURE ps_setup_save (
IN in_timeout INT IN in_timeout INT
) )
COMMENT ' COMMENT '
......
...@@ -17,7 +17,7 @@ DROP PROCEDURE IF EXISTS ps_setup_show_disabled; ...@@ -17,7 +17,7 @@ DROP PROCEDURE IF EXISTS ps_setup_show_disabled;
DELIMITER $$ DELIMITER $$
CREATE DEFINER='root'@'localhost' PROCEDURE ps_setup_show_disabled ( CREATE DEFINER='mariadb.sys'@'localhost' PROCEDURE ps_setup_show_disabled (
IN in_show_instruments BOOLEAN, IN in_show_instruments BOOLEAN,
IN in_show_threads BOOLEAN IN in_show_threads BOOLEAN
) )
......
...@@ -17,7 +17,7 @@ DROP PROCEDURE IF EXISTS ps_setup_show_disabled_consumers; ...@@ -17,7 +17,7 @@ DROP PROCEDURE IF EXISTS ps_setup_show_disabled_consumers;
DELIMITER $$ DELIMITER $$
CREATE DEFINER='root'@'localhost' PROCEDURE ps_setup_show_disabled_consumers () CREATE DEFINER='mariadb.sys'@'localhost' PROCEDURE ps_setup_show_disabled_consumers ()
COMMENT ' COMMENT '
Description Description
----------- -----------
......
...@@ -17,7 +17,7 @@ DROP PROCEDURE IF EXISTS ps_setup_show_disabled_instruments; ...@@ -17,7 +17,7 @@ DROP PROCEDURE IF EXISTS ps_setup_show_disabled_instruments;
DELIMITER $$ DELIMITER $$
CREATE DEFINER='root'@'localhost' PROCEDURE ps_setup_show_disabled_instruments () CREATE DEFINER='mariadb.sys'@'localhost' PROCEDURE ps_setup_show_disabled_instruments ()
COMMENT ' COMMENT '
Description Description
----------- -----------
......
...@@ -17,7 +17,7 @@ DROP PROCEDURE IF EXISTS ps_setup_show_enabled; ...@@ -17,7 +17,7 @@ DROP PROCEDURE IF EXISTS ps_setup_show_enabled;
DELIMITER $$ DELIMITER $$
CREATE DEFINER='root'@'localhost' PROCEDURE ps_setup_show_enabled ( CREATE DEFINER='mariadb.sys'@'localhost' PROCEDURE ps_setup_show_enabled (
IN in_show_instruments BOOLEAN, IN in_show_instruments BOOLEAN,
IN in_show_threads BOOLEAN IN in_show_threads BOOLEAN
) )
......
...@@ -17,7 +17,7 @@ DROP PROCEDURE IF EXISTS ps_setup_show_enabled_consumers; ...@@ -17,7 +17,7 @@ DROP PROCEDURE IF EXISTS ps_setup_show_enabled_consumers;
DELIMITER $$ DELIMITER $$
CREATE DEFINER='root'@'localhost' PROCEDURE ps_setup_show_enabled_consumers () CREATE DEFINER='mariadb.sys'@'localhost' PROCEDURE ps_setup_show_enabled_consumers ()
COMMENT ' COMMENT '
Description Description
----------- -----------
......
...@@ -17,7 +17,7 @@ DROP PROCEDURE IF EXISTS ps_setup_show_enabled_instruments; ...@@ -17,7 +17,7 @@ DROP PROCEDURE IF EXISTS ps_setup_show_enabled_instruments;
DELIMITER $$ DELIMITER $$
CREATE DEFINER='root'@'localhost' PROCEDURE ps_setup_show_enabled_instruments () CREATE DEFINER='mariadb.sys'@'localhost' PROCEDURE ps_setup_show_enabled_instruments ()
COMMENT ' COMMENT '
Description Description
----------- -----------
......
...@@ -17,7 +17,7 @@ DROP PROCEDURE IF EXISTS ps_statement_avg_latency_histogram; ...@@ -17,7 +17,7 @@ DROP PROCEDURE IF EXISTS ps_statement_avg_latency_histogram;
DELIMITER $$ DELIMITER $$
CREATE DEFINER='root'@'localhost' PROCEDURE ps_statement_avg_latency_histogram () CREATE DEFINER='mariadb.sys'@'localhost' PROCEDURE ps_statement_avg_latency_histogram ()
COMMENT ' COMMENT '
Description Description
----------- -----------
......
...@@ -17,7 +17,7 @@ DROP PROCEDURE IF EXISTS ps_trace_statement_digest; ...@@ -17,7 +17,7 @@ DROP PROCEDURE IF EXISTS ps_trace_statement_digest;
DELIMITER $$ DELIMITER $$
CREATE DEFINER='root'@'localhost' PROCEDURE ps_trace_statement_digest ( CREATE DEFINER='mariadb.sys'@'localhost' PROCEDURE ps_trace_statement_digest (
IN in_digest VARCHAR(32), IN in_digest VARCHAR(32),
IN in_runtime INT, IN in_runtime INT,
IN in_interval DECIMAL(2,2), IN in_interval DECIMAL(2,2),
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
DROP PROCEDURE IF EXISTS ps_trace_thread; DROP PROCEDURE IF EXISTS ps_trace_thread;
DELIMITER $$ DELIMITER $$
CREATE DEFINER='root'@'localhost' PROCEDURE ps_trace_thread ( CREATE DEFINER='mariadb.sys'@'localhost' PROCEDURE ps_trace_thread (
IN in_thread_id BIGINT UNSIGNED, IN in_thread_id BIGINT UNSIGNED,
IN in_outfile VARCHAR(255), IN in_outfile VARCHAR(255),
IN in_max_runtime DECIMAL(20,2), IN in_max_runtime DECIMAL(20,2),
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
DROP PROCEDURE IF EXISTS ps_trace_thread; DROP PROCEDURE IF EXISTS ps_trace_thread;
DELIMITER $$ DELIMITER $$
CREATE DEFINER='root'@'localhost' PROCEDURE ps_trace_thread ( CREATE DEFINER='mariadb.sys'@'localhost' PROCEDURE ps_trace_thread (
IN in_thread_id BIGINT UNSIGNED, IN in_thread_id BIGINT UNSIGNED,
IN in_outfile VARCHAR(255), IN in_outfile VARCHAR(255),
IN in_max_runtime DECIMAL(20,2), IN in_max_runtime DECIMAL(20,2),
......
...@@ -17,7 +17,7 @@ DROP PROCEDURE IF EXISTS ps_truncate_all_tables; ...@@ -17,7 +17,7 @@ DROP PROCEDURE IF EXISTS ps_truncate_all_tables;
DELIMITER $$ DELIMITER $$
CREATE DEFINER='root'@'localhost' PROCEDURE ps_truncate_all_tables ( CREATE DEFINER='mariadb.sys'@'localhost' PROCEDURE ps_truncate_all_tables (
IN in_verbose BOOLEAN IN in_verbose BOOLEAN
) )
COMMENT ' COMMENT '
......
...@@ -17,7 +17,7 @@ DROP PROCEDURE IF EXISTS statement_performance_analyzer; ...@@ -17,7 +17,7 @@ DROP PROCEDURE IF EXISTS statement_performance_analyzer;
DELIMITER $$ DELIMITER $$
CREATE DEFINER='root'@'localhost' PROCEDURE statement_performance_analyzer ( CREATE DEFINER='mariadb.sys'@'localhost' PROCEDURE statement_performance_analyzer (
IN in_action ENUM('snapshot', 'overall', 'delta', 'create_table', 'create_tmp', 'save', 'cleanup'), IN in_action ENUM('snapshot', 'overall', 'delta', 'create_table', 'create_tmp', 'save', 'cleanup'),
IN in_table VARCHAR(129), IN in_table VARCHAR(129),
IN in_views SET ('with_runtimes_in_95th_percentile', 'analysis', 'with_errors_or_warnings', 'with_full_table_scans', 'with_sorting', 'with_temp_tables', 'custom') IN in_views SET ('with_runtimes_in_95th_percentile', 'analysis', 'with_errors_or_warnings', 'with_full_table_scans', 'with_sorting', 'with_temp_tables', 'custom')
......
...@@ -17,7 +17,7 @@ DROP PROCEDURE IF EXISTS table_exists; ...@@ -17,7 +17,7 @@ DROP PROCEDURE IF EXISTS table_exists;
DELIMITER $$ DELIMITER $$
CREATE DEFINER='root'@'localhost' PROCEDURE table_exists ( CREATE DEFINER='mariadb.sys'@'localhost' PROCEDURE table_exists (
IN in_db VARCHAR(64), IN in_table VARCHAR(64), IN in_db VARCHAR(64), IN in_table VARCHAR(64),
OUT out_exists ENUM('', 'BASE TABLE', 'VIEW', 'TEMPORARY') OUT out_exists ENUM('', 'BASE TABLE', 'VIEW', 'TEMPORARY')
) )
......
...@@ -17,7 +17,7 @@ DROP FUNCTION IF EXISTS <function name>; ...@@ -17,7 +17,7 @@ DROP FUNCTION IF EXISTS <function name>;
DELIMITER $$ DELIMITER $$
CREATE DEFINER='root'@'localhost' FUNCTION <function name> ( CREATE DEFINER='mariadb.sys'@'localhost' FUNCTION <function name> (
/* Variables */ /* Variables */
) )
RETURNS <data type> RETURNS <data type>
......
...@@ -17,7 +17,7 @@ DROP PROCEDURE IF EXISTS <procedure_name>; ...@@ -17,7 +17,7 @@ DROP PROCEDURE IF EXISTS <procedure_name>;
DELIMITER $$ DELIMITER $$
CREATE DEFINER='root'@'localhost' PROCEDURE <procedure_name> ( CREATE DEFINER='mariadb.sys'@'localhost' PROCEDURE <procedure_name> (
/* Variables */ /* Variables */
) )
COMMENT ' COMMENT '
......
...@@ -38,7 +38,7 @@ BEGIN NOT ATOMIC ...@@ -38,7 +38,7 @@ BEGIN NOT ATOMIC
END; END;
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = TEMPTABLE ALGORITHM = TEMPTABLE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW innodb_buffer_stats_by_schema ( VIEW innodb_buffer_stats_by_schema (
object_schema, object_schema,
......
...@@ -39,7 +39,7 @@ BEGIN NOT ATOMIC ...@@ -39,7 +39,7 @@ BEGIN NOT ATOMIC
DECLARE EXIT HANDLER FOR SQLEXCEPTION BEGIN END; DECLARE EXIT HANDLER FOR SQLEXCEPTION BEGIN END;
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = TEMPTABLE ALGORITHM = TEMPTABLE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW innodb_buffer_stats_by_table ( VIEW innodb_buffer_stats_by_table (
object_schema, object_schema,
......
...@@ -58,7 +58,7 @@ BEGIN NOT ATOMIC ...@@ -58,7 +58,7 @@ BEGIN NOT ATOMIC
END; END;
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = TEMPTABLE ALGORITHM = TEMPTABLE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW innodb_lock_waits ( VIEW innodb_lock_waits (
wait_started, wait_started,
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = MERGE ALGORITHM = MERGE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW schema_auto_increment_columns ( VIEW schema_auto_increment_columns (
table_schema, table_schema,
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = TEMPTABLE ALGORITHM = TEMPTABLE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW schema_object_overview ( VIEW schema_object_overview (
db, db,
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = TEMPTABLE ALGORITHM = TEMPTABLE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW schema_redundant_indexes ( VIEW schema_redundant_indexes (
table_schema, table_schema,
......
...@@ -36,7 +36,7 @@ BEGIN NOT ATOMIC ...@@ -36,7 +36,7 @@ BEGIN NOT ATOMIC
END; END;
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = TEMPTABLE ALGORITHM = TEMPTABLE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW x$innodb_buffer_stats_by_schema ( VIEW x$innodb_buffer_stats_by_schema (
object_schema, object_schema,
......
...@@ -38,7 +38,7 @@ BEGIN NOT ATOMIC ...@@ -38,7 +38,7 @@ BEGIN NOT ATOMIC
DECLARE EXIT HANDLER FOR SQLEXCEPTION BEGIN END; DECLARE EXIT HANDLER FOR SQLEXCEPTION BEGIN END;
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = TEMPTABLE ALGORITHM = TEMPTABLE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW x$innodb_buffer_stats_by_table ( VIEW x$innodb_buffer_stats_by_table (
object_schema, object_schema,
......
...@@ -58,7 +58,7 @@ DECLARE EXIT HANDLER FOR SQLEXCEPTION BEGIN END; ...@@ -58,7 +58,7 @@ DECLARE EXIT HANDLER FOR SQLEXCEPTION BEGIN END;
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = TEMPTABLE ALGORITHM = TEMPTABLE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW x$innodb_lock_waits ( VIEW x$innodb_lock_waits (
wait_started, wait_started,
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = TEMPTABLE ALGORITHM = TEMPTABLE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW x$schema_flattened_keys ( VIEW x$schema_flattened_keys (
table_schema, table_schema,
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = TEMPTABLE ALGORITHM = TEMPTABLE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW host_summary ( VIEW host_summary (
host, host,
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = TEMPTABLE ALGORITHM = TEMPTABLE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW host_summary ( VIEW host_summary (
host, host,
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = TEMPTABLE ALGORITHM = TEMPTABLE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW host_summary_by_file_io ( VIEW host_summary_by_file_io (
host, host,
......
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = MERGE ALGORITHM = MERGE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW host_summary_by_file_io_type ( VIEW host_summary_by_file_io_type (
host, host,
......
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = MERGE ALGORITHM = MERGE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW host_summary_by_stages ( VIEW host_summary_by_stages (
host, host,
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = TEMPTABLE ALGORITHM = TEMPTABLE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW host_summary_by_statement_latency ( VIEW host_summary_by_statement_latency (
host, host,
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = MERGE ALGORITHM = MERGE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW host_summary_by_statement_type ( VIEW host_summary_by_statement_type (
host, host,
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = TEMPTABLE ALGORITHM = TEMPTABLE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW io_by_thread_by_latency ( VIEW io_by_thread_by_latency (
user, user,
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = MERGE ALGORITHM = MERGE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW io_global_by_file_by_bytes ( VIEW io_global_by_file_by_bytes (
file, file,
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = MERGE ALGORITHM = MERGE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW io_global_by_file_by_latency ( VIEW io_global_by_file_by_latency (
file, file,
......
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = MERGE ALGORITHM = MERGE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW io_global_by_wait_by_bytes ( VIEW io_global_by_wait_by_bytes (
event_name, event_name,
......
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = MERGE ALGORITHM = MERGE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW io_global_by_wait_by_latency ( VIEW io_global_by_wait_by_latency (
event_name, event_name,
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = MERGE ALGORITHM = MERGE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW latest_file_io ( VIEW latest_file_io (
thread, thread,
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = TEMPTABLE ALGORITHM = TEMPTABLE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW memory_by_host_by_current_bytes ( VIEW memory_by_host_by_current_bytes (
host, host,
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = TEMPTABLE ALGORITHM = TEMPTABLE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW memory_by_thread_by_current_bytes ( VIEW memory_by_thread_by_current_bytes (
thread_id, thread_id,
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = TEMPTABLE ALGORITHM = TEMPTABLE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW memory_by_user_by_current_bytes ( VIEW memory_by_user_by_current_bytes (
user, user,
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = MERGE ALGORITHM = MERGE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW memory_global_by_current_bytes ( VIEW memory_global_by_current_bytes (
event_name, event_name,
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = TEMPTABLE ALGORITHM = TEMPTABLE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW memory_global_total ( VIEW memory_global_total (
total_allocated total_allocated
......
...@@ -74,7 +74,7 @@ DECLARE EXIT HANDLER FOR SQLEXCEPTION BEGIN END; ...@@ -74,7 +74,7 @@ DECLARE EXIT HANDLER FOR SQLEXCEPTION BEGIN END;
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = TEMPTABLE ALGORITHM = TEMPTABLE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW metrics ( VIEW metrics (
Variable_name, Variable_name,
......
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = TEMPTABLE ALGORITHM = TEMPTABLE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW metrics ( VIEW metrics (
Variable_name, Variable_name,
......
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = TEMPTABLE ALGORITHM = TEMPTABLE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW processlist ( VIEW processlist (
thd_id, thd_id,
......
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = TEMPTABLE ALGORITHM = TEMPTABLE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW processlist ( VIEW processlist (
thd_id, thd_id,
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = MERGE ALGORITHM = MERGE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW ps_check_lost_instrumentation ( VIEW ps_check_lost_instrumentation (
variable_name, variable_name,
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = MERGE ALGORITHM = MERGE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW ps_check_lost_instrumentation ( VIEW ps_check_lost_instrumentation (
variable_name, variable_name,
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = MERGE ALGORITHM = MERGE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW schema_index_statistics ( VIEW schema_index_statistics (
table_schema, table_schema,
......
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = TEMPTABLE ALGORITHM = TEMPTABLE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW schema_table_lock_waits ( VIEW schema_table_lock_waits (
object_schema, object_schema,
......
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = TEMPTABLE ALGORITHM = TEMPTABLE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW schema_table_statistics ( VIEW schema_table_statistics (
table_schema, table_schema,
......
...@@ -55,7 +55,7 @@ BEGIN NOT ATOMIC ...@@ -55,7 +55,7 @@ BEGIN NOT ATOMIC
DECLARE EXIT HANDLER FOR SQLEXCEPTION BEGIN END; DECLARE EXIT HANDLER FOR SQLEXCEPTION BEGIN END;
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = TEMPTABLE ALGORITHM = TEMPTABLE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW schema_table_statistics_with_buffer ( VIEW schema_table_statistics_with_buffer (
table_schema, table_schema,
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = MERGE ALGORITHM = MERGE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW schema_tables_with_full_table_scans ( VIEW schema_tables_with_full_table_scans (
object_schema, object_schema,
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = MERGE ALGORITHM = MERGE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW schema_unused_indexes ( VIEW schema_unused_indexes (
object_schema, object_schema,
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = MERGE ALGORITHM = MERGE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW session_ssl_status ( VIEW session_ssl_status (
thread_id, thread_id,
......
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
-- --
CREATE OR REPLACE CREATE OR REPLACE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW session VIEW session
AS AS
......
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = MERGE ALGORITHM = MERGE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW statement_analysis ( VIEW statement_analysis (
query, query,
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = MERGE ALGORITHM = MERGE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW statements_with_errors_or_warnings ( VIEW statements_with_errors_or_warnings (
query, query,
......
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = MERGE ALGORITHM = MERGE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW statements_with_full_table_scans ( VIEW statements_with_full_table_scans (
query, query,
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = MERGE ALGORITHM = MERGE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW statements_with_runtimes_in_95th_percentile ( VIEW statements_with_runtimes_in_95th_percentile (
query, query,
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = MERGE ALGORITHM = MERGE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW statements_with_sorting ( VIEW statements_with_sorting (
query, query,
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = MERGE ALGORITHM = MERGE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW statements_with_temp_tables ( VIEW statements_with_temp_tables (
query, query,
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = TEMPTABLE ALGORITHM = TEMPTABLE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW user_summary ( VIEW user_summary (
user, user,
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = TEMPTABLE ALGORITHM = TEMPTABLE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW user_summary ( VIEW user_summary (
user, user,
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = TEMPTABLE ALGORITHM = TEMPTABLE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW user_summary_by_file_io ( VIEW user_summary_by_file_io (
user, user,
......
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = MERGE ALGORITHM = MERGE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW user_summary_by_file_io_type ( VIEW user_summary_by_file_io_type (
user, user,
......
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = MERGE ALGORITHM = MERGE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW user_summary_by_stages ( VIEW user_summary_by_stages (
user, user,
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = TEMPTABLE ALGORITHM = TEMPTABLE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW user_summary_by_statement_latency ( VIEW user_summary_by_statement_latency (
user, user,
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = MERGE ALGORITHM = MERGE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW user_summary_by_statement_type ( VIEW user_summary_by_statement_type (
user, user,
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = TEMPTABLE ALGORITHM = TEMPTABLE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW wait_classes_global_by_avg_latency ( VIEW wait_classes_global_by_avg_latency (
event_class, event_class,
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = TEMPTABLE ALGORITHM = TEMPTABLE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW wait_classes_global_by_latency ( VIEW wait_classes_global_by_latency (
event_class, event_class,
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = MERGE ALGORITHM = MERGE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW waits_by_host_by_latency ( VIEW waits_by_host_by_latency (
host, host,
......
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = MERGE ALGORITHM = MERGE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW waits_by_user_by_latency ( VIEW waits_by_user_by_latency (
user, user,
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = MERGE ALGORITHM = MERGE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW waits_global_by_latency ( VIEW waits_global_by_latency (
events, events,
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = TEMPTABLE ALGORITHM = TEMPTABLE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW x$host_summary ( VIEW x$host_summary (
host, host,
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = TEMPTABLE ALGORITHM = TEMPTABLE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW x$host_summary ( VIEW x$host_summary (
host, host,
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = TEMPTABLE ALGORITHM = TEMPTABLE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW x$host_summary_by_file_io ( VIEW x$host_summary_by_file_io (
host, host,
......
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = MERGE ALGORITHM = MERGE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW x$host_summary_by_file_io_type ( VIEW x$host_summary_by_file_io_type (
host, host,
......
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = MERGE ALGORITHM = MERGE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW x$host_summary_by_stages ( VIEW x$host_summary_by_stages (
host, host,
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = TEMPTABLE ALGORITHM = TEMPTABLE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW x$host_summary_by_statement_latency ( VIEW x$host_summary_by_statement_latency (
host, host,
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = MERGE ALGORITHM = MERGE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW x$host_summary_by_statement_type ( VIEW x$host_summary_by_statement_type (
host, host,
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = TEMPTABLE ALGORITHM = TEMPTABLE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW x$io_by_thread_by_latency ( VIEW x$io_by_thread_by_latency (
user, user,
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = MERGE ALGORITHM = MERGE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW x$io_global_by_file_by_bytes ( VIEW x$io_global_by_file_by_bytes (
file, file,
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = MERGE ALGORITHM = MERGE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW x$io_global_by_file_by_latency ( VIEW x$io_global_by_file_by_latency (
file, file,
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = MERGE ALGORITHM = MERGE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW x$io_global_by_wait_by_bytes ( VIEW x$io_global_by_wait_by_bytes (
event_name, event_name,
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = MERGE ALGORITHM = MERGE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW x$io_global_by_wait_by_latency ( VIEW x$io_global_by_wait_by_latency (
event_name, event_name,
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = MERGE ALGORITHM = MERGE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW x$latest_file_io ( VIEW x$latest_file_io (
thread, thread,
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = TEMPTABLE ALGORITHM = TEMPTABLE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW x$memory_by_host_by_current_bytes ( VIEW x$memory_by_host_by_current_bytes (
host, host,
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = TEMPTABLE ALGORITHM = TEMPTABLE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW x$memory_by_thread_by_current_bytes ( VIEW x$memory_by_thread_by_current_bytes (
thread_id, thread_id,
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = TEMPTABLE ALGORITHM = TEMPTABLE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW x$memory_by_user_by_current_bytes ( VIEW x$memory_by_user_by_current_bytes (
user, user,
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = MERGE ALGORITHM = MERGE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW x$memory_global_by_current_bytes ( VIEW x$memory_global_by_current_bytes (
event_name, event_name,
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = TEMPTABLE ALGORITHM = TEMPTABLE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW x$memory_global_total ( VIEW x$memory_global_total (
total_allocated total_allocated
......
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = TEMPTABLE ALGORITHM = TEMPTABLE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW x$processlist ( VIEW x$processlist (
thd_id, thd_id,
......
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = TEMPTABLE ALGORITHM = TEMPTABLE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW x$processlist ( VIEW x$processlist (
thd_id, thd_id,
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = TEMPTABLE ALGORITHM = TEMPTABLE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW x$ps_digest_95th_percentile_by_avg_us ( VIEW x$ps_digest_95th_percentile_by_avg_us (
avg_us, avg_us,
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = TEMPTABLE ALGORITHM = TEMPTABLE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW x$ps_digest_avg_latency_distribution ( VIEW x$ps_digest_avg_latency_distribution (
cnt, cnt,
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = TEMPTABLE ALGORITHM = TEMPTABLE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW x$ps_schema_table_statistics_io ( VIEW x$ps_schema_table_statistics_io (
table_schema, table_schema,
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = MERGE ALGORITHM = MERGE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW x$schema_index_statistics ( VIEW x$schema_index_statistics (
table_schema, table_schema,
......
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = TEMPTABLE ALGORITHM = TEMPTABLE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW x$schema_table_lock_waits ( VIEW x$schema_table_lock_waits (
object_schema, object_schema,
......
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = TEMPTABLE ALGORITHM = TEMPTABLE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW x$schema_table_statistics ( VIEW x$schema_table_statistics (
table_schema, table_schema,
......
...@@ -56,7 +56,7 @@ DECLARE EXIT HANDLER FOR SQLEXCEPTION BEGIN END; ...@@ -56,7 +56,7 @@ DECLARE EXIT HANDLER FOR SQLEXCEPTION BEGIN END;
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = TEMPTABLE ALGORITHM = TEMPTABLE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW x$schema_table_statistics_with_buffer ( VIEW x$schema_table_statistics_with_buffer (
table_schema, table_schema,
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = MERGE ALGORITHM = MERGE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW x$schema_tables_with_full_table_scans ( VIEW x$schema_tables_with_full_table_scans (
object_schema, object_schema,
......
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
-- --
CREATE OR REPLACE CREATE OR REPLACE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW x$session VIEW x$session
AS AS
......
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = MERGE ALGORITHM = MERGE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW x$statement_analysis ( VIEW x$statement_analysis (
query, query,
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = MERGE ALGORITHM = MERGE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW x$statements_with_errors_or_warnings ( VIEW x$statements_with_errors_or_warnings (
query, query,
......
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = MERGE ALGORITHM = MERGE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW x$statements_with_full_table_scans ( VIEW x$statements_with_full_table_scans (
query, query,
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = MERGE ALGORITHM = MERGE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW x$statements_with_runtimes_in_95th_percentile ( VIEW x$statements_with_runtimes_in_95th_percentile (
query, query,
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = MERGE ALGORITHM = MERGE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW x$statements_with_sorting ( VIEW x$statements_with_sorting (
query, query,
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = MERGE ALGORITHM = MERGE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW x$statements_with_temp_tables ( VIEW x$statements_with_temp_tables (
query, query,
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = TEMPTABLE ALGORITHM = TEMPTABLE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW x$user_summary ( VIEW x$user_summary (
user, user,
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = TEMPTABLE ALGORITHM = TEMPTABLE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW x$user_summary ( VIEW x$user_summary (
user, user,
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = TEMPTABLE ALGORITHM = TEMPTABLE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW x$user_summary_by_file_io ( VIEW x$user_summary_by_file_io (
user, user,
......
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = MERGE ALGORITHM = MERGE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW x$user_summary_by_file_io_type ( VIEW x$user_summary_by_file_io_type (
user, user,
......
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = MERGE ALGORITHM = MERGE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW x$user_summary_by_stages ( VIEW x$user_summary_by_stages (
user, user,
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = TEMPTABLE ALGORITHM = TEMPTABLE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW x$user_summary_by_statement_latency ( VIEW x$user_summary_by_statement_latency (
user, user,
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = MERGE ALGORITHM = MERGE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW x$user_summary_by_statement_type ( VIEW x$user_summary_by_statement_type (
user, user,
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = TEMPTABLE ALGORITHM = TEMPTABLE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW x$wait_classes_global_by_avg_latency ( VIEW x$wait_classes_global_by_avg_latency (
event_class, event_class,
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = TEMPTABLE ALGORITHM = TEMPTABLE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW x$wait_classes_global_by_latency ( VIEW x$wait_classes_global_by_latency (
event_class, event_class,
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = MERGE ALGORITHM = MERGE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW x$waits_by_host_by_latency ( VIEW x$waits_by_host_by_latency (
host, host,
......
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = MERGE ALGORITHM = MERGE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW x$waits_by_user_by_latency ( VIEW x$waits_by_user_by_latency (
user, user,
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
CREATE OR REPLACE CREATE OR REPLACE
ALGORITHM = MERGE ALGORITHM = MERGE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW x$waits_global_by_latency ( VIEW x$waits_global_by_latency (
events, events,
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
-- --
CREATE OR REPLACE CREATE OR REPLACE
DEFINER = 'root'@'localhost' DEFINER = 'mariadb.sys'@'localhost'
SQL SECURITY INVOKER SQL SECURITY INVOKER
VIEW version ( VIEW version (
sys_version, sys_version,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment