0% found this document useful (0 votes)
16 views1 page

Changelockmysql 11

The document discusses two SQL statements: BINLOG which logs binary log events, and CACHE INDEX which assigns indexes from MyISAM tables to a specific key cache. CACHE INDEX is used to preload indexes into the specified cache using LOAD INDEX INTO CACHE.

Uploaded by

Irwan Fath
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views1 page

Changelockmysql 11

The document discusses two SQL statements: BINLOG which logs binary log events, and CACHE INDEX which assigns indexes from MyISAM tables to a specific key cache. CACHE INDEX is used to preload indexes into the specified cache using LOAD INDEX INTO CACHE.

Uploaded by

Irwan Fath
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Syntax:

BINLOG 'str'

BINLOG is an internal-use statement. It is generated by the mysqlbinlog


program as the printable representation of certain events in binary log
files. (See https://mariadb.com/kb/en/mysqlbinlog/.)
The 'str' value is a base 64-encoded string the that server decodes to
determine the data change indicated by the corresponding event. This
statement requires the SUPER privilege.

URL: https://mariadb.com/kb/en/binlog/

Syntax:
CACHE INDEX
tbl_index_list [, tbl_index_list] ...
[PARTITION (partition_list | ALL)]
IN key_cache_name

tbl_index_list:
tbl_name [[INDEX|KEY] (index_name[, index_name] ...)]

partition_list:
partition_name[, partition_name][, ...]

The CACHE INDEX statement assigns table indexes to a specific key


cache. It is used only for MyISAM tables. After the indexes have been
assigned, they can be preloaded into the cache if desired with LOAD
INDEX INTO CACHE.

The following statement assigns indexes from the tables t1, t2, and t3
to the key cache named hot_cache:

MariaDB> CACHE INDEX t1, t2, t3 IN hot_cache;


+---------+--------------------+----------+----------+
| Table | Op | Msg_type | Msg_text |
+---------+--------------------+----------+----------+
| test.t1 | assign_to_keycache | status | OK |
| test.t2 | assign_to_keycache | status | OK |
| test.t3 | assign_to_keycache | status | OK |
+---------+--------------------+----------+----------+

URL: https://mariadb.com/kb/en/cache-index/

You might also like