Oracle 5.0 Reference Manual page 1225

Table of Contents

Advertisement

| Note
| 1051 | Unknown table 'no_such_table' |
+-------+------+-------------------------------+
If the
sql_notes
the server does not record them.
The MySQL server sends back a count indicating the total number of errors, warnings, and
notes resulting from the last statement. From the C API, this value can be obtained by calling
mysql_warning_count(). See
13.7.6. Other Administrative Statements
13.7.6.1.
CACHE INDEX
CACHE INDEX
tbl_index_list
IN
key_cache_name
tbl_index_list:
tbl_name
[[INDEX|KEY] (index_name[, index_name] ...)]
The
CACHE INDEX
tables. After the indexes have been assigned, they can be preloaded into the cache if desired with
LOAD INDEX INTO
The following statement assigns indexes from the tables t1, t2, and
hot_cache:
mysql>
CACHE INDEX t1, t2, t3 IN hot_cache;
+---------+--------------------+----------+----------+
| Table
| Op
+---------+--------------------+----------+----------+
| test.t1 | assign_to_keycache | status
| test.t2 | assign_to_keycache | status
| test.t3 | assign_to_keycache | status
+---------+--------------------+----------+----------+
The syntax of
be assigned to the cache. The current implementation assigns all the table's indexes to the cache, so
there is no reason to specify anything other than the table name.
The key cache referred to in a
parameter setting statement or in the server parameter settings. For example:
mysql>
SET GLOBAL keycache1.key_buffer_size=128*1024;
Key cache parameters can be accessed as members of a structured system variable. See
Section 5.1.5.1, "Structured System
A key cache must exist before you can assign indexes to it:
mysql>
CACHE INDEX t1 IN non_existent_cache;
ERROR 1284 (HY000): Unknown key cache 'non_existent_cache'
By default, table indexes are assigned to the main (default) key cache created at the server startup.
When a key cache is destroyed, all indexes assigned to it become assigned to the default key cache
again.
Index assignment affects the server globally: If one client assigns an index to a given cache, this cache
is used for all queries involving the index, no matter which client issues the queries.
13.7.6.2.
Syntax
FLUSH
FLUSH [NO_WRITE_TO_BINLOG | LOCAL]
flush_option
Other Administrative Statements
[495]
system variable is set to 0, notes do not increment
Section 20.6.6.72,
Syntax
[, tbl_index_list] ...
statement assigns table indexes to a specific key cache. It is used only for
CACHE.
| Msg_type | Msg_text |
enables you to specify that only particular indexes from a table should
CACHE INDEX
CACHE INDEX
Variables".
[, flush_option] ...
"mysql_warning_count()".
| OK
|
| OK
|
| OK
|
statement can be created by setting its size with a
1205
warning_count
to the key cache named
t3
[507]
and
MyISAM

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents