@code{CHECK TABLE} only works on @code{MyISAM} tables and is the same things
@code{CHECK TABLE} only works on @code{MyISAM} tables and is the same thing
as running @code{myisamchk -m table_name} on the table.
as running @code{myisamchk -m table_name} on the table.
Check the table(s) for errors and updates the key statistics for the table.
Check the table(s) for errors and updates the key statistics for the table.
...
@@ -16834,18 +16835,18 @@ The command returns a table with the following columns:
...
@@ -16834,18 +16835,18 @@ The command returns a table with the following columns:
@end multitable
@end multitable
Note that you can get many rows of information for each checked
Note that you can get many rows of information for each checked
table. The last one row will be of @code{Msg_type status} and should
table. The last row will be of @code{Msg_type status} and should
normally be @code{OK}. If you don't get @code{OK}, or @code{Not
normally be @code{OK}. If you don't get @code{OK}, or @code{Not
checked} you should normally run a repair of the table. @xref{Table
checked} you should normally run a repair of the table. @xref{Table
maintenance}. @code{Not checked} means that the table the given @code{TYPE}
maintenance}. @code{Not checked} means that the table the given @code{TYPE}
told @code{MySQL} that there wasn't any need to check the table.
told @code{MySQL} that there wasn't any need to check the table.
The different check types stands for the following:
The different check types stand for the following:
@multitable @columnfractions .20 .80
@multitable @columnfractions .20 .80
@item @code{QUICK} @tab Don't scan the rows for fixed size record tables.
@item @code{QUICK} @tab Don't scan the rows for fixed size record tables.
@item @code{FAST} @tab Only check tables which hasn't been closed properly.
@item @code{FAST} @tab Only check tables which haven't been closed properly.
@item @code{CHANGED} @tab Only check tables which has been changed since last check or hasn't been closed properly.
@item @code{CHANGED} @tab Only check tables which have been changed since last check or haven't been closed properly.
@item @code{EXTENDED} @tab Do a full key lookup for all keys for each row. This enasures that the table is 100 % consistent, but will take a long time!
@item @code{EXTENDED} @tab Do a full key lookup for all keys for each row. This enasures that the table is 100 % consistent, but will take a long time!
@end multitable
@end multitable
...
@@ -18392,7 +18393,7 @@ The status variables listed above have the following meaning:
...
@@ -18392,7 +18393,7 @@ The status variables listed above have the following meaning:
@item @code{Bytes_received} @tab Number of bytes received from the client
@item @code{Bytes_received} @tab Number of bytes received from the client
@item @code{Bytes_sent} @tab Number of bytes received from the client
@item @code{Bytes_sent} @tab Number of bytes received from the client
@item @code{Connections} @tab Number of connection attempts to the @strong{MySQL} server.
@item @code{Connections} @tab Number of connection attempts to the @strong{MySQL} server.
@item @code{Created_tmp_tables} @tab Number of implicit temporary tables that has been created while executing statements.
@item @code{Created_tmp_tables} @tab Number of implicit temporary tables that have been created while executing statements.
@item @code{Delayed_insert_threads} @tab Number of delayed insert handler threads in use.
@item @code{Delayed_insert_threads} @tab Number of delayed insert handler threads in use.
@item @code{Delayed_writes} @tab Number of rows written with @code{INSERT DELAYED}.
@item @code{Delayed_writes} @tab Number of rows written with @code{INSERT DELAYED}.
@item @code{Delayed_errors} @tab Number of rows written with @code{INSERT DELAYED} for which some error occurred (probably @code{duplicate key}).
@item @code{Delayed_errors} @tab Number of rows written with @code{INSERT DELAYED} for which some error occurred (probably @code{duplicate key}).
...
@@ -18425,7 +18426,7 @@ have..
...
@@ -18425,7 +18426,7 @@ have..
@item @code{Open_tables} @tab Number of tables that are open.
@item @code{Open_tables} @tab Number of tables that are open.
@item @code{Open_files} @tab Number of files that are open.
@item @code{Open_files} @tab Number of files that are open.
@item @code{Open_streams} @tab Number of streams that are open (used mainly for logging)
@item @code{Open_streams} @tab Number of streams that are open (used mainly for logging)
@item @code{Opened_tables} @tab Number of tables that has been opened.
@item @code{Opened_tables} @tab Number of tables that have been opened.
@item @code{Questions} @tab Number of queries sent to the server.
@item @code{Questions} @tab Number of queries sent to the server.
@item @code{Slow_launch_threads} @tab Number of threads that has taken more than @code{slow_launch_time} to connect.
@item @code{Slow_launch_threads} @tab Number of threads that has taken more than @code{slow_launch_time} to connect.
@item @code{Slow_queries} @tab Number of queries that has taken more than @code{long_query_time}
@item @code{Slow_queries} @tab Number of queries that has taken more than @code{long_query_time}
...
@@ -26436,9 +26437,9 @@ If you are using @code{--extended-check} and have much memory, you should
...
@@ -26436,9 +26437,9 @@ If you are using @code{--extended-check} and have much memory, you should
increase the value of @code{key_buffer_size} a lot!
increase the value of @code{key_buffer_size} a lot!
@item -F or --fast
@item -F or --fast
Check only tables that hasn't been closed properly.
Check only tables that haven't been closed properly.
@item -C or --check-only-changed
@item -C or --check-only-changed
Check only tables that has changed since last check.
Check only tables that have changed since last check.
@item -f or --force
@item -f or --force
Restart @code{myisamchk} with @code{-r} (repair) on the table, if
Restart @code{myisamchk} with @code{-r} (repair) on the table, if
@code{myisamchk} finds any errors in the table.
@code{myisamchk} finds any errors in the table.
...
@@ -35351,9 +35352,9 @@ and will soon be declared beta, gamma and release.
...
@@ -35351,9 +35352,9 @@ and will soon be declared beta, gamma and release.
@itemize @bullet
@itemize @bullet
@item
@item
Changed @code{ALTER TABLE}, @code{LOAD DATA INFILE} on empty tables and
Changed @code{ALTER TABLE}, @code{LOAD DATA INFILE} on empty tables and
@code{INSERT ... SELECT...} on empty tables to create non-unique indexs
@code{INSERT ... SELECT...} on empty tables to create non-unique indexes
in a separate batch with sorting. This will make the above calls much
in a separate batch with sorting. This will make the above calls much
faster when you have many index.
faster when you have many indexes.
@item
@item
@code{ALTER TABLE} now logs the first used insert_id correctly.
@code{ALTER TABLE} now logs the first used insert_id correctly.
@item
@item
...
@@ -35376,7 +35377,7 @@ Fixed that BDB tables work on part keys.
...
@@ -35376,7 +35377,7 @@ Fixed that BDB tables work on part keys.
@item
@item
Check table now updates key statistics for the table.
Check table now updates key statistics for the table.
@item
@item
@code{ANALYZE TABLE} will now only update tables that has been changed
@code{ANALYZE TABLE} will now only update tables that have been changed
since last @code{ANALYZE}. Note that this is a new feature and tables
since last @code{ANALYZE}. Note that this is a new feature and tables
will not be marked to be analyzed until they are updated in any way with
will not be marked to be analyzed until they are updated in any way with
3.23.23 or newer. For older tables, you have to do @code{CHECK TABLE}
3.23.23 or newer. For older tables, you have to do @code{CHECK TABLE}