Current server:
(Servers) ...
phpMyAdmin demo - MariaDB (root)
phpMyAdmin demo - MySQL (root)
Recent
There are no recent tables.
Favorites
There are no favorite tables.
X
New
AKADEMIK
information_schema
my record system
mysql
partage_de_recettes
performance_schema
Portfolio_Marcus
PRUEBA
pw
sakila
serveruwebcoBressolia
shoe_db
sklepSerohenko
sku
StdMdDB
Stefano
students
students 2020
superpos
sys
table
Table_insertion
taobao
tb
test19
teste_teste
TlapaleriaMalfoy
Trickysolo
vedettfak
victory 2020
wisedb
world
ОБЛІК ТЕЛЕФОННИХ ПЕРЕГОВОРІВ
аа
Navigation panel
Navigation tree
Servers
Databases
Tables
Navigation panel
Customize appearance of the navigation panel.
Navigation panel
Show databases navigation as tree
In the navigation panel, replaces the database tree with a selector
Link with main panel
Link with main panel by highlighting the current database or table.
Display logo
Show logo in navigation panel.
Logo link URL
URL where logo in the navigation panel will point to.
Logo link target
Open the linked page in the main window (
main
) or in a new one (
new
).
main
new
Enable highlighting
Highlight server under the mouse cursor.
Maximum items on first level
The number of items that can be displayed on each page on the first level of the navigation tree.
Minimum number of items to display the filter box
Defines the minimum number of items (tables, views, routines and events) to display a filter box.
Recently used tables
Maximum number of recently used tables; set 0 to disable.
Favorite tables
Maximum number of favorite tables; set 0 to disable.
Navigation panel width
Set to 0 to collapse navigation panel.
Navigation tree
Customize the navigation tree.
Navigation tree
Maximum items in branch
The number of items that can be displayed on each page of the navigation tree.
Group items in the tree
Group items in the navigation tree (determined by the separator defined in the Databases and Tables tabs above).
Enable navigation tree expansion
Whether to offer the possibility of tree expansion in the navigation panel.
Show tables in tree
Whether to show tables under database in the navigation tree
Show views in tree
Whether to show views under database in the navigation tree
Show functions in tree
Whether to show functions under database in the navigation tree
Show procedures in tree
Whether to show procedures under database in the navigation tree
Show events in tree
Whether to show events under database in the navigation tree
Expand single database
Whether to expand single database in the navigation tree automatically.
Servers
Servers display options.
Servers
Display servers selection
Display server choice at the top of the navigation panel.
Display servers as a list
Show server listing as a list instead of a drop down.
Databases
Databases display options.
Databases
Minimum number of databases to display the database filter box
Database tree separator
String that separates databases into different tree levels.
Tables
Tables display options.
Tables
Target for quick access icon
Structure
SQL
Search
Insert
Browse
Target for second quick access icon
Structure
SQL
Search
Insert
Browse
Table tree separator
String that separates tables into different tree levels.
Maximum table tree depth
Drop files here
SQL upload (
0
)
x
-
Show hidden navigation tree items.
Create view
Your browser has phpMyAdmin configuration for this domain. Would you like to import it for current session?
Yes
/
No
/
Delete settings
Javascript must be enabled past this point!
Server: phpMyAdmin demo - MySQL
Database: sys
Structure
SQL
Search
Query
Export
root@192.168.30.%
phpMyAdmin documentation
MySQL documentation
Settings
Log out
Console
Clear
History
Options
Press Ctrl+Enter to execute query
Press Enter to execute query
ascending
descending
Order:
Debug SQL
Count
Execution order
Time taken
Order by:
Group queries
Ungroup queries
Collapse
Expand
Show trace
Hide trace
Count:
Time taken:
Options
Restore default values
Always expand query messages
Show query history at start
Show current browsing query
Execute queries on Enter and insert new line with Shift+Enter. To make this permanent, view settings.
Switch to dark theme
Collapse
Expand
Requery
Edit
Explain
Profiling
Query failed
Database:
Queried time:
Loading
ENUM/SET editor
Create view
Export of routine `ps_trace_statement_digest`
DELIMITER $$ CREATE DEFINER=`mysql.sys`@`localhost` PROCEDURE `ps_trace_statement_digest`( IN in_digest VARCHAR(64), IN in_runtime INT, IN in_interval DECIMAL(2,2), IN in_start_fresh BOOLEAN, IN in_auto_enable BOOLEAN ) MODIFIES SQL DATA SQL SECURITY INVOKER COMMENT '\nDescription\n-----------\n\nTraces all instrumentation within Performance Schema for a specific\nStatement Digest.\n\nWhen finding a statement of interest within the\nperformance_schema.events_statements_summary_by_digest table, feed\nthe DIGEST value in to this procedure, set how long to poll for,\nand at what interval to poll, and it will generate a report of all\nstatistics tracked within Performance Schema for that digest for the\ninterval.\n\nIt will also attempt to generate an EXPLAIN for the longest running\nexample of the digest during the interval. Note this may fail, as:\n\n * Performance Schema truncates long SQL_TEXT values (and hence the\n EXPLAIN will fail due to parse errors)\n * the default schema is sys (so tables that are not fully qualified\n in the query may not be found)\n * some queries such as SHOW are not supported in EXPLAIN.\n\nWhen the EXPLAIN fails, the error will be ignored and no EXPLAIN\noutput generated.\n\nRequires the SUPER privilege for "SET sql_log_bin = 0;".\n\nParameters\n-----------\n\nin_digest (VARCHAR(64)):\n The statement digest identifier you would like to analyze\nin_runtime (INT):\n The number of seconds to run analysis for\nin_interval (DECIMAL(2,2)):\n The interval (in seconds, may be fractional) at which to try\n and take snapshots\nin_start_fresh (BOOLEAN):\n Whether to TRUNCATE the events_statements_history_long and\n events_stages_history_long tables before starting\nin_auto_enable (BOOLEAN):\n Whether to automatically turn on required consumers\n\nExample\n-----------\n\nmysql> call ps_trace_statement_digest(''891ec6860f98ba46d89dd20b0c03652c'', 10, 0.1, true, true);\n+--------------------+\n| SUMMARY STATISTICS |\n+--------------------+\n| SUMMARY STATISTICS |\n+--------------------+\n1 row in set (9.11 sec)\n\n+------------+-----------+-----------+-----------+---------------+------------+------------+\n| executions | exec_time | lock_time | rows_sent | rows_examined | tmp_tables | full_scans |\n+------------+-----------+-----------+-----------+---------------+------------+------------+\n| 21 | 4.11 ms | 2.00 ms | 0 | 21 | 0 | 0 |\n+------------+-----------+-----------+-----------+---------------+------------+------------+\n1 row in set (9.11 sec)\n\n+------------------------------------------+-------+-----------+\n| event_name | count | latency |\n+------------------------------------------+-------+-----------+\n| stage/sql/checking query cache for query | 16 | 724.37 us |\n| stage/sql/statistics | 16 | 546.92 us |\n| stage/sql/freeing items | 18 | 520.11 us |\n| stage/sql/init | 51 | 466.80 us |\n...\n| stage/sql/cleaning up | 18 | 11.92 us |\n| stage/sql/executing | 16 | 6.95 us |\n+------------------------------------------+-------+-----------+\n17 rows in set (9.12 sec)\n\n+---------------------------+\n| LONGEST RUNNING STATEMENT |\n+---------------------------+\n| LONGEST RUNNING STATEMENT |\n+---------------------------+\n1 row in set (9.16 sec)\n\n+-----------+-----------+-----------+-----------+---------------+------------+-----------+\n| thread_id | exec_time | lock_time | rows_sent | rows_examined | tmp_tables | full_scan |\n+-----------+-----------+-----------+-----------+---------------+------------+-----------+\n| 166646 | 618.43 us | 1.00 ms | 0 | 1 | 0 | 0 |\n+-----------+-----------+-----------+-----------+---------------+------------+-----------+\n1 row in set (9.16 sec)\n\n// Truncated for clarity...\n+-----------------------------------------------------------------+\n| sql_text |\n+-----------------------------------------------------------------+\n| select hibeventhe0_.id as id1382_, hibeventhe0_.createdTime ... |\n+-----------------------------------------------------------------+\n1 row in set (9.17 sec)\n\n+------------------------------------------+-----------+\n| event_name | latency |\n+------------------------------------------+-----------+\n| stage/sql/init | 8.61 us |\n| stage/sql/Waiting for query cache lock | 453.23 us |\n| stage/sql/init | 331.07 ns |\n| stage/sql/checking query cache for query | 43.04 us |\n...\n| stage/sql/freeing items | 30.46 us |\n| stage/sql/cleaning up | 662.13 ns |\n+------------------------------------------+-----------+\n18 rows in set (9.23 sec)\n\n+----+-------------+--------------+-------+---------------+-----------+---------+-------------+------+-------+\n| id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra |\n+----+-------------+--------------+-------+---------------+-----------+---------+-------------+------+-------+\n| 1 | SIMPLE | hibeventhe0_ | const | fixedTime | fixedTime | 775 | const,const | 1 | NULL |\n+----+-------------+--------------+-------+---------------+-----------+---------+-------------+------+-------+\n1 row in set (9.27 sec)\n\nQuery OK, 0 rows affected (9.28 sec)\n' BEGIN DECLARE v_start_fresh BOOLEAN DEFAULT false; DECLARE v_auto_enable BOOLEAN DEFAULT false; DECLARE v_explain BOOLEAN DEFAULT true; DECLARE v_this_thread_enabed ENUM('YES', 'NO'); DECLARE v_runtime INT DEFAULT 0; DECLARE v_start INT DEFAULT 0; DECLARE v_found_stmts INT; SET @log_bin := @@sql_log_bin; SET sql_log_bin = 0; -- Do not track the current thread, it will kill the stack SELECT INSTRUMENTED INTO v_this_thread_enabed FROM performance_schema.threads WHERE PROCESSLIST_ID = CONNECTION_ID(); CALL sys.ps_setup_disable_thread(CONNECTION_ID()); DROP TEMPORARY TABLE IF EXISTS stmt_trace; CREATE TEMPORARY TABLE stmt_trace ( thread_id BIGINT UNSIGNED, timer_start BIGINT UNSIGNED, event_id BIGINT UNSIGNED, sql_text longtext, timer_wait BIGINT UNSIGNED, lock_time BIGINT UNSIGNED, errors BIGINT UNSIGNED, mysql_errno INT, rows_sent BIGINT UNSIGNED, rows_affected BIGINT UNSIGNED, rows_examined BIGINT UNSIGNED, created_tmp_tables BIGINT UNSIGNED, created_tmp_disk_tables BIGINT UNSIGNED, no_index_used BIGINT UNSIGNED, PRIMARY KEY (thread_id, timer_start) ); DROP TEMPORARY TABLE IF EXISTS stmt_stages; CREATE TEMPORARY TABLE stmt_stages ( event_id BIGINT UNSIGNED, stmt_id BIGINT UNSIGNED, event_name VARCHAR(128), timer_wait BIGINT UNSIGNED, PRIMARY KEY (event_id) ); SET v_start_fresh = in_start_fresh; IF v_start_fresh THEN TRUNCATE TABLE performance_schema.events_statements_history_long; TRUNCATE TABLE performance_schema.events_stages_history_long; END IF; SET v_auto_enable = in_auto_enable; IF v_auto_enable THEN CALL sys.ps_setup_save(0); UPDATE performance_schema.threads SET INSTRUMENTED = IF(PROCESSLIST_ID IS NOT NULL, 'YES', 'NO'); -- Only the events_statements_history_long and events_stages_history_long tables and their ancestors are needed UPDATE performance_schema.setup_consumers SET ENABLED = 'YES' WHERE NAME NOT LIKE '%\_history' AND NAME NOT LIKE 'events_wait%' AND NAME NOT LIKE 'events_transactions%' AND NAME <> 'statements_digest'; UPDATE performance_schema.setup_instruments SET ENABLED = 'YES', TIMED = 'YES' WHERE NAME LIKE 'statement/%' OR NAME LIKE 'stage/%'; END IF; WHILE v_runtime < in_runtime DO SELECT UNIX_TIMESTAMP() INTO v_start; INSERT IGNORE INTO stmt_trace SELECT thread_id, timer_start, event_id, sql_text, timer_wait, lock_time, errors, mysql_errno, rows_sent, rows_affected, rows_examined, created_tmp_tables, created_tmp_disk_tables, no_index_used FROM performance_schema.events_statements_history_long WHERE digest = in_digest; INSERT IGNORE INTO stmt_stages SELECT stages.event_id, stmt_trace.event_id, stages.event_name, stages.timer_wait FROM performance_schema.events_stages_history_long AS stages JOIN stmt_trace ON stages.nesting_event_id = stmt_trace.event_id; SELECT SLEEP(in_interval) INTO @sleep; SET v_runtime = v_runtime + (UNIX_TIMESTAMP() - v_start); END WHILE; SELECT "SUMMARY STATISTICS"; SELECT COUNT(*) executions, sys.format_time(SUM(timer_wait)) AS exec_time, sys.format_time(SUM(lock_time)) AS lock_time, SUM(rows_sent) AS rows_sent, SUM(rows_affected) AS rows_affected, SUM(rows_examined) AS rows_examined, SUM(created_tmp_tables) AS tmp_tables, SUM(no_index_used) AS full_scans FROM stmt_trace; SELECT event_name, COUNT(*) as count, sys.format_time(SUM(timer_wait)) as latency FROM stmt_stages GROUP BY event_name ORDER BY SUM(timer_wait) DESC; SELECT "LONGEST RUNNING STATEMENT"; SELECT thread_id, sys.format_time(timer_wait) AS exec_time, sys.format_time(lock_time) AS lock_time, rows_sent, rows_affected, rows_examined, created_tmp_tables AS tmp_tables, no_index_used AS full_scan FROM stmt_trace ORDER BY timer_wait DESC LIMIT 1; SELECT sql_text FROM stmt_trace ORDER BY timer_wait DESC LIMIT 1; SELECT sql_text, event_id INTO @sql, @sql_id FROM stmt_trace ORDER BY timer_wait DESC LIMIT 1; IF (@sql_id IS NOT NULL) THEN SELECT event_name, sys.format_time(timer_wait) as latency FROM stmt_stages WHERE stmt_id = @sql_id ORDER BY event_id; END IF; DROP TEMPORARY TABLE stmt_trace; DROP TEMPORARY TABLE stmt_stages; IF (@sql IS NOT NULL) THEN SET @stmt := CONCAT("EXPLAIN FORMAT=JSON ", @sql); BEGIN -- Not all queries support EXPLAIN, so catch the cases that are -- not supported. Currently that includes cases where the table -- is not fully qualified and is not in the default schema for this -- procedure as it's not possible to change the default schema inside -- a procedure. -- -- Errno = 1064: You have an error in your SQL syntax -- Errno = 1146: Table '...' doesn't exist DECLARE CONTINUE HANDLER FOR 1064, 1146 SET v_explain = false; PREPARE explain_stmt FROM @stmt; END; IF (v_explain) THEN EXECUTE explain_stmt; DEALLOCATE PREPARE explain_stmt; END IF; END IF; IF v_auto_enable THEN CALL sys.ps_setup_reload_saved(); END IF; -- Restore INSTRUMENTED for this thread IF (v_this_thread_enabed = 'YES') THEN CALL sys.ps_setup_enable_thread(CONNECTION_ID()); END IF; SET sql_log_bin = @log_bin; END$$ DELIMITER ;
Routines
Check all
Export
Drop
Create new routine
There are no routines to display.
Name
Type
Returns
DROP PROCEDURE IF EXISTS `create_synonym_db`
create_synonym_db
PROCEDURE
Edit
Execute
Export
Drop
DROP PROCEDURE IF EXISTS `diagnostics`
diagnostics
PROCEDURE
Edit
Execute
Export
Drop
DROP PROCEDURE IF EXISTS `execute_prepared_stmt`
execute_prepared_stmt
PROCEDURE
Edit
Execute
Export
Drop
DROP FUNCTION IF EXISTS `extract_schema_from_file_name`
extract_schema_from_file_name
FUNCTION
varchar(64)
Edit
Execute
Export
Drop
DROP FUNCTION IF EXISTS `extract_table_from_file_name`
extract_table_from_file_name
FUNCTION
varchar(64)
Edit
Execute
Export
Drop
DROP FUNCTION IF EXISTS `format_bytes`
format_bytes
FUNCTION
text
Edit
Execute
Export
Drop
DROP FUNCTION IF EXISTS `format_path`
format_path
FUNCTION
varchar(512)
Edit
Execute
Export
Drop
DROP FUNCTION IF EXISTS `format_statement`
format_statement
FUNCTION
longtext
Edit
Execute
Export
Drop
DROP FUNCTION IF EXISTS `format_time`
format_time
FUNCTION
text
Edit
Execute
Export
Drop
DROP FUNCTION IF EXISTS `list_add`
list_add
FUNCTION
text
Edit
Execute
Export
Drop
DROP FUNCTION IF EXISTS `list_drop`
list_drop
FUNCTION
text
Edit
Execute
Export
Drop
DROP FUNCTION IF EXISTS `ps_is_account_enabled`
ps_is_account_enabled
FUNCTION
enum('YES','NO')
Edit
Execute
Export
Drop
DROP FUNCTION IF EXISTS `ps_is_consumer_enabled`
ps_is_consumer_enabled
FUNCTION
enum('YES','NO')
Edit
Execute
Export
Drop
DROP FUNCTION IF EXISTS `ps_is_instrument_default_enabled`
ps_is_instrument_default_enabled
FUNCTION
enum('YES','NO')
Edit
Execute
Export
Drop
DROP FUNCTION IF EXISTS `ps_is_instrument_default_timed`
ps_is_instrument_default_timed
FUNCTION
enum('YES','NO')
Edit
Execute
Export
Drop
DROP FUNCTION IF EXISTS `ps_is_thread_instrumented`
ps_is_thread_instrumented
FUNCTION
enum('YES','NO','UNKNOWN')
Edit
Execute
Export
Drop
DROP PROCEDURE IF EXISTS `ps_setup_disable_background_threads`
ps_setup_disable_background_threads
PROCEDURE
Edit
Execute
Export
Drop
DROP PROCEDURE IF EXISTS `ps_setup_disable_consumer`
ps_setup_disable_consumer
PROCEDURE
Edit
Execute
Export
Drop
DROP PROCEDURE IF EXISTS `ps_setup_disable_instrument`
ps_setup_disable_instrument
PROCEDURE
Edit
Execute
Export
Drop
DROP PROCEDURE IF EXISTS `ps_setup_disable_thread`
ps_setup_disable_thread
PROCEDURE
Edit
Execute
Export
Drop
DROP PROCEDURE IF EXISTS `ps_setup_enable_background_threads`
ps_setup_enable_background_threads
PROCEDURE
Edit
Execute
Export
Drop
DROP PROCEDURE IF EXISTS `ps_setup_enable_consumer`
ps_setup_enable_consumer
PROCEDURE
Edit
Execute
Export
Drop
DROP PROCEDURE IF EXISTS `ps_setup_enable_instrument`
ps_setup_enable_instrument
PROCEDURE
Edit
Execute
Export
Drop
DROP PROCEDURE IF EXISTS `ps_setup_enable_thread`
ps_setup_enable_thread
PROCEDURE
Edit
Execute
Export
Drop
DROP PROCEDURE IF EXISTS `ps_setup_reload_saved`
ps_setup_reload_saved
PROCEDURE
Edit
Execute
Export
Drop
DROP PROCEDURE IF EXISTS `ps_setup_reset_to_default`
ps_setup_reset_to_default
PROCEDURE
Edit
Execute
Export
Drop
DROP PROCEDURE IF EXISTS `ps_setup_save`
ps_setup_save
PROCEDURE
Edit
Execute
Export
Drop
DROP PROCEDURE IF EXISTS `ps_setup_show_disabled`
ps_setup_show_disabled
PROCEDURE
Edit
Execute
Export
Drop
DROP PROCEDURE IF EXISTS `ps_setup_show_disabled_consumers`
ps_setup_show_disabled_consumers
PROCEDURE
Edit
Execute
Export
Drop
DROP PROCEDURE IF EXISTS `ps_setup_show_disabled_instruments`
ps_setup_show_disabled_instruments
PROCEDURE
Edit
Execute
Export
Drop
DROP PROCEDURE IF EXISTS `ps_setup_show_enabled`
ps_setup_show_enabled
PROCEDURE
Edit
Execute
Export
Drop
DROP PROCEDURE IF EXISTS `ps_setup_show_enabled_consumers`
ps_setup_show_enabled_consumers
PROCEDURE
Edit
Execute
Export
Drop
DROP PROCEDURE IF EXISTS `ps_setup_show_enabled_instruments`
ps_setup_show_enabled_instruments
PROCEDURE
Edit
Execute
Export
Drop
DROP PROCEDURE IF EXISTS `ps_statement_avg_latency_histogram`
ps_statement_avg_latency_histogram
PROCEDURE
Edit
Execute
Export
Drop
DROP FUNCTION IF EXISTS `ps_thread_account`
ps_thread_account
FUNCTION
text
Edit
Execute
Export
Drop
DROP FUNCTION IF EXISTS `ps_thread_id`
ps_thread_id
FUNCTION
bigint(20) unsigned
Edit
Execute
Export
Drop
DROP FUNCTION IF EXISTS `ps_thread_stack`
ps_thread_stack
FUNCTION
longtext
Edit
Execute
Export
Drop
DROP FUNCTION IF EXISTS `ps_thread_trx_info`
ps_thread_trx_info
FUNCTION
longtext
Edit
Execute
Export
Drop
DROP PROCEDURE IF EXISTS `ps_trace_statement_digest`
ps_trace_statement_digest
PROCEDURE
Edit
Execute
Export
Drop
DROP PROCEDURE IF EXISTS `ps_trace_thread`
ps_trace_thread
PROCEDURE
Edit
Execute
Export
Drop
DROP PROCEDURE IF EXISTS `ps_truncate_all_tables`
ps_truncate_all_tables
PROCEDURE
Edit
Execute
Export
Drop
DROP FUNCTION IF EXISTS `quote_identifier`
quote_identifier
FUNCTION
text
Edit
Execute
Export
Drop
DROP PROCEDURE IF EXISTS `statement_performance_analyzer`
statement_performance_analyzer
PROCEDURE
Edit
Execute
Export
Drop
DROP FUNCTION IF EXISTS `sys_get_config`
sys_get_config
FUNCTION
varchar(128)
Edit
Execute
Export
Drop
DROP PROCEDURE IF EXISTS `table_exists`
table_exists
PROCEDURE
Edit
Execute
Export
Drop
DROP FUNCTION IF EXISTS `version_major`
version_major
FUNCTION
tinyint(3) unsigned
Edit
Execute
Export
Drop
DROP FUNCTION IF EXISTS `version_minor`
version_minor
FUNCTION
tinyint(3) unsigned
Edit
Execute
Export
Drop
DROP FUNCTION IF EXISTS `version_patch`
version_patch
FUNCTION
tinyint(3) unsigned
Edit
Execute
Export
Drop
phpMyAdmin Demo Server:
Git information missing!