| Server IP : 121.121.20.254 / Your IP : 216.73.216.202 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Program Files/MariaDB 10.6/data/mysql/ |
Upload File : |
$��������o���� ��* �P
� � hID#hID# 6 k �j sysextract_schema_from_file_nameextract_schema_from_file_nameutf8mb3utf8mb3_general_ciutf8mb3_general_cimariadb.sys@localhostpath VARCHAR(512)
varchar(64) CHARSET utf8mb3 COLLATE utf8mb3_general_ciBEGIN
RETURN LEFT(SUBSTRING_INDEX(SUBSTRING_INDEX(REPLACE(path, '\\', '/'), '/', -2), '/', 1), 64);
END
Description
Takes a raw file path, and attempts to extract the schema name from it.
Useful for when interacting with Performance Schema data
concerning IO statistics, for example.
Currently relies on the fact that a table data file will be within a
specified database directory (will not work with partitions or tables
that specify an individual DATA_DIRECTORY).
Parameters
path (VARCHAR(512)):
The full file path to a data file to extract the schema name from.
Returns
VARCHAR(64)
Example
mysql> SELECT sys.extract_schema_from_file_name('/var/lib/mysql/employees/employee.ibd');
+----------------------------------------------------------------------------+
| sys.extract_schema_from_file_name('/var/lib/mysql/employees/employee.ibd') |
+----------------------------------------------------------------------------+
| employees |
+----------------------------------------------------------------------------+
1 row in set (0.00 sec)
BEGIN
RETURN LEFT(SUBSTRING_INDEX(SUBSTRING_INDEX(REPLACE(path, '\', '/'), '/', -2), '/', 1), 64);
END � hID#hID# 6 � � sysextract_table_from_file_nameextract_table_from_file_nameutf8mb3utf8mb3_general_ciutf8mb3_general_cimariadb.sys@localhostpath VARCHAR(512)
varchar(64) CHARSET utf8mb3 COLLATE utf8mb3_general_ciBEGIN
RETURN LEFT(SUBSTRING_INDEX(REPLACE(SUBSTRING_INDEX(REPLACE(path, '\\', '/'), '/', -1), '@0024', '$'), '.', 1), 64);
END
Description
Takes a raw file path, and extracts the table name from it.
Useful for when interacting with Performance Schema data
concerning IO statistics, for example.
Parameters
path (VARCHAR(512)):
The full file path to a data file to extract the table name from.
Returns
VARCHAR(64)
Example
mysql> SELECT sys.extract_table_from_file_name('/var/lib/mysql/employees/employee.ibd');
+---------------------------------------------------------------------------+
| sys.extract_table_from_file_name('/var/lib/mysql/employees/employee.ibd') |
+---------------------------------------------------------------------------+
| employee |
+---------------------------------------------------------------------------+
1 row in set (0.02 sec)
BEGIN
RETURN LEFT(SUBSTRING_INDEX(REPLACE(SUBSTRING_INDEX(REPLACE(path, '\', '/'), '/', -1), '@0024', '$'), '.', 1), 64);
END � hID#hID# / � sysformat_bytesformat_bytesutf8mb3utf8mb3_general_ciutf8mb3_general_cimariadb.sys@localhostbytes TEXT
text CHARSET utf8mb3 COLLATE utf8mb3_general_ciBEGIN
IF bytes IS NULL THEN RETURN NULL;
ELSEIF bytes >= 1125899906842624 THEN RETURN CONCAT(ROUND(bytes / 1125899906842624, 2), ' PiB');
ELSEIF bytes >= 1099511627776 THEN RETURN CONCAT(ROUND(bytes / 1099511627776, 2), ' TiB');
ELSEIF bytes >= 1073741824 THEN RETURN CONCAT(ROUND(bytes / 1073741824, 2), ' GiB');
ELSEIF bytes >= 1048576 THEN RETURN CONCAT(ROUND(bytes / 1048576, 2), ' MiB');
ELSEIF bytes >= 1024 THEN RETURN CONCAT(ROUND(bytes / 1024, 2), ' KiB');
ELSE RETURN CONCAT(ROUND(bytes, 0), ' bytes');
END IF;
END
Description
Takes a raw bytes value, and converts it to a human readable format.
Parameters
bytes (TEXT):
A raw bytes value.
Returns
TEXT
Example
mysql> SELECT sys.format_bytes(2348723492723746) AS size;
+----------+
| size |
+----------+
| 2.09 PiB |
+----------+
1 row in set (0.00 sec)
mysql> SELECT sys.format_bytes(2348723492723) AS size;
+----------+
| size |
+----------+
| 2.14 TiB |
+----------+
1 row in set (0.00 sec)
mysql> SELECT sys.format_bytes(23487234) AS size;
+-----------+
| size |
+-----------+
| 22.40 MiB |
+-----------+
1 row in set (0.00 sec)
BEGIN
IF bytes IS NULL THEN RETURN NULL;
ELSEIF bytes >= 1125899906842624 THEN RETURN CONCAT(ROUND(bytes / 1125899906842624, 2), ' PiB');
ELSEIF bytes >= 1099511627776 THEN RETURN CONCAT(ROUND(bytes / 1099511627776, 2), ' TiB');
ELSEIF bytes >= 1073741824 THEN RETURN CONCAT(ROUND(bytes / 1073741824, 2), ' GiB');
ELSEIF bytes >= 1048576 THEN RETURN CONCAT(ROUND(bytes / 1048576, 2), ' MiB');
ELSEIF bytes >= 1024 THEN RETURN CONCAT(ROUND(bytes / 1024, 2), ' KiB');
ELSE RETURN CONCAT(ROUND(bytes, 0), ' bytes');
END IF;
END�
�� � � hID#hID# 2 1 { Z^ sysps_thread_stackps_thread_stackutf8mb3utf8mb3_general_ciutf8mb3_general_cimariadb.sys@localhostthd_id BIGINT UNSIGNED,
debug BOOLEAN
longtext CHARSET latin1 COLLATE latin1_swedish_ci� �� � � hID#hID# ! 3 0 n- sysps_thread_trx_infops_thread_trx_infoutf8mb3utf8mb3_general_ciutf8mb3_general_cimariadb.sys@localhostin_thread_id BIGINT UNSIGNED
longtext CHARSET utf8mb3 COLLATE utf8mb3_general_ci� �� � � hID#hID# J ) � ) syscreate_synonym_dbcreate_synonym_dbutf8mb3utf8mb3_general_ciutf8mb3_general_cimariadb.sys@localhost
IN in_db_name VARCHAR(64),
IN in_synonym VARCHAR(64)
� @� � � @ � hID#hID# � C� V�� sysdiagnosticsdiagnosticsutf8mb3utf8mb3_general_ciutf8mb3_general_cimariadb.sys@localhost
IN in_max_runtime int unsigned, IN in_interval int unsigned,
IN in_auto_config enum ('current', 'medium', 'full')
� @� � @hID#hID#"" �9 �9 sysps_statement_avg_latency_histogramps_statement_avg_latency_histogramutf8mb3utf8mb3_general_ciutf8mb3_general_cimariadb.sys@localhost�"