Commit c214287c authored by paul@teton.kitebird.com's avatar paul@teton.kitebird.com

Merge paul@work.mysql.com:/home/bk/mysql-4.0

into teton.kitebird.com:/home/paul/mysql-4.0
parents 5f2d79c5 f3743461
...@@ -18925,7 +18925,7 @@ ANALYZE TABLE tbl_name[,tbl_name...] ...@@ -18925,7 +18925,7 @@ ANALYZE TABLE tbl_name[,tbl_name...]
@end example @end example
Analyse and store the key distribution for the table. During the Analyse and store the key distribution for the table. During the
analyse the table is locked with a read lock. This works on analysis, the table is locked with a read lock. This works on
@code{MyISAM} and @code{BDB} tables. @code{MyISAM} and @code{BDB} tables.
This is equivalent to running @code{myisamchk -a} on the table. This is equivalent to running @code{myisamchk -a} on the table.
...@@ -18961,7 +18961,7 @@ the table will not be analysed again. ...@@ -18961,7 +18961,7 @@ the table will not be analysed again.
@cindex caches, clearing @cindex caches, clearing
@example @example
FLUSH flush_option [,flush_option] FLUSH flush_option [,flush_option] ...
@end example @end example
You should use the @code{FLUSH} command if you want to clear some of the You should use the @code{FLUSH} command if you want to clear some of the
...@@ -18983,7 +18983,8 @@ Flushing the host tables allows the host to attempt to connect ...@@ -18983,7 +18983,8 @@ Flushing the host tables allows the host to attempt to connect
again. @xref{Blocked host}. You can start @code{mysqld} with again. @xref{Blocked host}. You can start @code{mysqld} with
@code{-O max_connection_errors=999999999} to avoid this error message. @code{-O max_connection_errors=999999999} to avoid this error message.
@item @code{DES_KEY_FILE} @tab Reloads the des keys from the file specified with @code{--des-key-file}. @item @code{DES_KEY_FILE} @tab Reloads the DES keys from the file that was
specified with the @code{--des-key-file} option at server startup time.
@item @code{LOGS} @tab Closes and reopens all log files. @item @code{LOGS} @tab Closes and reopens all log files.
If you have specified the update log file or a binary log file without If you have specified the update log file or a binary log file without
...@@ -18996,11 +18997,13 @@ signal to the @code{mysqld} server. ...@@ -18996,11 +18997,13 @@ signal to the @code{mysqld} server.
@item @code{PRIVILEGES} @tab Reloads the privileges from the grant tables in @item @code{PRIVILEGES} @tab Reloads the privileges from the grant tables in
the @code{mysql} database. the @code{mysql} database.
@item @code{QUERY CACHE} @tab Defragment the query cache to better utilise its memory. This command will not remove any queries from the cache. @item @code{QUERY CACHE} @tab Defragment the query cache to better utilise its
memory. This command will not remove any queries from the cache, unlike
@code{RESET QUERY CACHE}.
@item @code{TABLES} @tab Closes all open tables and force all tables in use to be closed. This also flushes the query cache. @item @code{TABLES} @tab Closes all open tables and force all tables in use to be closed. This also flushes the query cache.
@item @code{[TABLE | TABLES] table_name [,table_name...]} @tab Flushes only the given tables. @item @code{[TABLE | TABLES] tbl_name [,tbl_name...]} @tab Flushes only the given tables.
@item @code{TABLES WITH READ LOCK} @tab Closes all open tables and locks all tables for all databases with a read until one executes @code{UNLOCK TABLES}. This is very convenient way to get backups if you have a file system, like Veritas,that can take snapshots in time. @item @code{TABLES WITH READ LOCK} @tab Closes all open tables and locks all tables for all databases with a read until one executes @code{UNLOCK TABLES}. This is very convenient way to get backups if you have a file system, like Veritas,that can take snapshots in time.
...@@ -19012,32 +19015,31 @@ utility, using the @code{flush-hosts}, @code{flush-logs}, @code{reload}, ...@@ -19012,32 +19015,31 @@ utility, using the @code{flush-hosts}, @code{flush-logs}, @code{reload},
or @code{flush-tables} commands. or @code{flush-tables} commands.
Take also a look at the @code{RESET} command used with replication. Take also a look at the @code{RESET} command used with replication.
@xref{RESET}. @xref{RESET, , @code{RESET}}.
@node RESET, KILL, FLUSH, Database Administration @node RESET, KILL, FLUSH, Database Administration
@subsection @code{RESET} Syntax @subsection @code{RESET} Syntax
@example @example
FLUSH flush_option [,flush_option] RESET reset_option [,reset_option] ...
@end example @end example
The @code{RESET} command is used to clear things. It also acts as an stronger The @code{RESET} command is used to clear things. It also acts as an stronger
version of the @code{FLUSH} command. @xref{FLUSH}. version of the @code{FLUSH} command. @xref{FLUSH, , @code{FLUSH}}.
To execute @code{RESET}, you must have the @strong{reload} privilege.
@multitable @columnfractions .25 .75 @multitable @columnfractions .25 .75
@item @strong{Option} @tab @strong{Description} @item @strong{Option} @tab @strong{Description}
@item @code{MASTER} @item @code{MASTER} @tab Deletes all binary logs listed in the index file, resetting the binlog
@tab Deletes all binary logs listed in the index file, resetting the binlog
index file to be empty. In pre-3.23.26 versions, @code{FLUSH MASTER} (Master) index file to be empty. In pre-3.23.26 versions, @code{FLUSH MASTER} (Master)
@item @code{SLAVE} @item @code{SLAVE} @tab Makes the slave forget its replication position in the master
@tab Makes the slave forget its replication position in the master
logs. In pre 3.23.26 versions the command was called logs. In pre 3.23.26 versions the command was called
@code{FLUSH SLAVE}(Slave) @code{FLUSH SLAVE}(Slave)
@item @code{QUERY CACHE} @item @code{QUERY CACHE} @tab Removes all query results from the query cache.
@tab Removes all query results from the query cache.
@end multitable @end multitable
@node KILL, SHOW, RESET, Database Administration @node KILL, SHOW, RESET, Database Administration
...@@ -35543,7 +35545,7 @@ column, the numbers will start from 1 again. ...@@ -35543,7 +35545,7 @@ column, the numbers will start from 1 again.
@findex RENAME TABLE @findex RENAME TABLE
@example @example
RENAME TABLE tbl_name TO new_table_name[, tbl_name2 TO new_table_name2,...] RENAME TABLE tbl_name TO new_tbl_name[, tbl_name2 TO new_tbl_name2,...]
@end example @end example
The rename is done atomically, which means that no other thread can The rename is done atomically, which means that no other thread can
...@@ -35568,15 +35570,15 @@ As long as two databases are on the same disk you can also rename ...@@ -35568,15 +35570,15 @@ As long as two databases are on the same disk you can also rename
from one database to another: from one database to another:
@example @example
RENAME TABLE current_database.table_name TO other_database.table_name; RENAME TABLE current_db.tbl_name TO other_db.tbl_name;
@end example @end example
When you execute @code{RENAME}, you can't have any locked tables or When you execute @code{RENAME}, you can't have any locked tables or
active transactions. You must also have the @code{ALTER} and @code{DROP} active transactions. You must also have the @strong{alter} and @strong{drop}
privilege on the original table and @code{CREATE} and @code{INSERT} privileges on the original table, and the @strong{create} and @strong{insert}
privilege on the new table. privileges on the new table.
If MySQL encounters any errors in a multiple table rename, it If MySQL encounters any errors in a multiple-table rename, it
will do a reverse rename for all renamed tables to get everything back will do a reverse rename for all renamed tables to get everything back
to the original state. to the original state.
...@@ -35966,11 +35968,12 @@ tables. ...@@ -35966,11 +35968,12 @@ tables.
@node SET TRANSACTION, , LOCK TABLES, Transactional Commands @node SET TRANSACTION, , LOCK TABLES, Transactional Commands
@subsection @code{SET TRANSACTION} Syntax @subsection @code{SET TRANSACTION} Syntax
@findex SET TRANSACTION
@findex ISOLATION LEVEL @findex ISOLATION LEVEL
@example @example
SET [GLOBAL | SESSION] TRANSACTION ISOLATION LEVEL SET [GLOBAL | SESSION] TRANSACTION ISOLATION LEVEL
[READ UNCOMMITTED | READ COMMITTED | REPEATABLE READ | SERIALIZABLE] [READ UNCOMMITTED  READ COMMITTED | REPEATABLE READ | SERIALIZABLE]
@end example @end example
Sets the transaction isolation level for the global, whole session or Sets the transaction isolation level for the global, whole session or
...@@ -39572,9 +39575,9 @@ MyISAM tables. ...@@ -39572,9 +39575,9 @@ MyISAM tables.
The optimiser needs to know an approximation of the number of rows in The optimiser needs to know an approximation of the number of rows in
the table. MySQL solves this by counting inserts and the table. MySQL solves this by counting inserts and
maintaining this in a separate segment in each BDB table. If you don't maintaining this in a separate segment in each BDB table. If you don't
do a lot of @code{DELETE} or @code{ROLLBACK}:s this number should be issue a lot of @code{DELETE} or @code{ROLLBACK} statements, this number
accurate enough for the MySQL optimiser, but as MySQL should be accurate enough for the MySQL optimiser, but as MySQL
only store the number on close, it may be wrong if MySQL dies only stores the number on close, it may be incorrect if MySQL dies
unexpectedly. It should not be fatal even if this number is not 100 % unexpectedly. It should not be fatal even if this number is not 100 %
correct. One can update the number of rows by executing @code{ANALYZE correct. One can update the number of rows by executing @code{ANALYZE
TABLE} or @code{OPTIMIZE TABLE}. @xref{ANALYZE TABLE} . @xref{OPTIMIZE TABLE} or @code{OPTIMIZE TABLE}. @xref{ANALYZE TABLE} . @xref{OPTIMIZE
...@@ -51067,7 +51070,7 @@ against a number. ...@@ -51067,7 +51070,7 @@ against a number.
Changed the meaning of @code{-F, --fast} for @code{myisamchk}. Added Changed the meaning of @code{-F, --fast} for @code{myisamchk}. Added
@code{-C, --check-only-changed} option to @code{myisamchk}. @code{-C, --check-only-changed} option to @code{myisamchk}.
@item @item
Added @code{ANALYZE table_name} to update key statistics for tables. Added @code{ANALYZE tbl_name} to update key statistics for tables.
@item @item
Changed binary items @code{0x...} to be regarded as integers by default. Changed binary items @code{0x...} to be regarded as integers by default.
@item @item
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment