Commit b4da2fb0 authored by monty@hundin.mysql.fi's avatar monty@hundin.mysql.fi

Merge work:/home/bk/mysql-4.0 into hundin.mysql.fi:/my/bk/mysql-4.0

parents 5c94a164 00ae775a
...@@ -1635,14 +1635,6 @@ server. ...@@ -1635,14 +1635,6 @@ server.
Contact us at @email{trademark@@mysql.com} to inquire about special Contact us at @email{trademark@@mysql.com} to inquire about special
arrangements to fit your needs. arrangements to fit your needs.
@menu
* When need MySQL logo permission::
* MySQL AB Partnership Logos::
* Using MySQL word in presentations::
* Using MySQL word in company and product names::
@end menu
@node When need MySQL logo permission, MySQL AB Partnership Logos, MySQL Logos that may be Used Without Written Permission, MySQL AB Logos and Trademarks @node When need MySQL logo permission, MySQL AB Partnership Logos, MySQL Logos that may be Used Without Written Permission, MySQL AB Logos and Trademarks
@subsubsection When do you need a Written Permission to use MySQL Logos? @subsubsection When do you need a Written Permission to use MySQL Logos?
...@@ -3414,8 +3406,6 @@ and line terminator characters of more than 1 character. ...@@ -3414,8 +3406,6 @@ and line terminator characters of more than 1 character.
The following problems are known and will be fixed in due time: The following problems are known and will be fixed in due time:
@itemize @bullet @itemize @bullet
@item
For the moment @code{MATCH} only works with @code{SELECT} statements.
@item @item
When using @code{SET CHARACTER SET}, one can't use translated When using @code{SET CHARACTER SET}, one can't use translated
...@@ -5038,12 +5028,8 @@ For the Windows distribution, please see @ref{Windows installation}. ...@@ -5038,12 +5028,8 @@ For the Windows distribution, please see @ref{Windows installation}.
@cindex installing, binary distribution @cindex installing, binary distribution
@cindex binary distributions, installing @cindex binary distributions, installing
For the Windows distribution, please see @ref{Windows binary installation}. See also @ref{Windows binary installation},
@ref{Linux-RPM}, and @ref{Building clients}.
@menu
* Linux-RPM:: Linux RPM files
* Building clients:: Building client programs
@end menu
You need the following tools to install a MySQL binary distribution: You need the following tools to install a MySQL binary distribution:
...@@ -8739,12 +8725,7 @@ it with a trace file or under @code{gdb}. @xref{Using gdb on mysqld}. ...@@ -8739,12 +8725,7 @@ it with a trace file or under @code{gdb}. @xref{Using gdb on mysqld}.
* FreeBSD:: FreeBSD Notes * FreeBSD:: FreeBSD Notes
* NetBSD:: NetBSD notes * NetBSD:: NetBSD notes
* OpenBSD:: OpenBSD Notes * OpenBSD:: OpenBSD Notes
* OpenBSD 2.5:: OpenBSD 2.5 Notes
* OpenBSD 2.8:: OpenBSD 2.8 Notes
* BSDI:: BSD/OS Notes * BSDI:: BSD/OS Notes
* BSDI2:: BSD/OS Version 2.x Notes
* BSDI3:: BSD/OS Version 3.x Notes
* BSDI4:: BSD/OS Version 4.x Notes
@end menu @end menu
...@@ -8852,7 +8833,7 @@ crash when @code{make} tries to run @code{lint} on C++ files. ...@@ -8852,7 +8833,7 @@ crash when @code{make} tries to run @code{lint} on C++ files.
This section contains notes on OpenBSD. This section contains notes on OpenBSD.
@node OpenBSD 2.5, OpenBSD 2.8, OpenBSD, BSD Notes @node OpenBSD 2.5, OpenBSD 2.8, OpenBSD, OpenBSD
@subsubsection OpenBSD 2.5 Notes @subsubsection OpenBSD 2.5 Notes
On OpenBSD Version 2.5, you can compile MySQL with native threads On OpenBSD Version 2.5, you can compile MySQL with native threads
...@@ -8863,7 +8844,7 @@ CFLAGS=-pthread CXXFLAGS=-pthread ./configure --with-mit-threads=no ...@@ -8863,7 +8844,7 @@ CFLAGS=-pthread CXXFLAGS=-pthread ./configure --with-mit-threads=no
@end example @end example
@node OpenBSD 2.8, BSDI, OpenBSD 2.5, BSD Notes @node OpenBSD 2.8, BSDI, OpenBSD 2.5, OpenBSD
@subsubsection OpenBSD 2.8 Notes @subsubsection OpenBSD 2.8 Notes
Our users have reported that OpenBSD 2.8 has a threading bug which causes Our users have reported that OpenBSD 2.8 has a threading bug which causes
...@@ -8884,7 +8865,7 @@ usage, and crashes. ...@@ -8884,7 +8865,7 @@ usage, and crashes.
This section contains notes on BSD/OS. This section contains notes on BSD/OS.
@node BSDI2, BSDI3, BSDI, BSD Notes @node BSDI2, BSDI3, BSDI, BSDI
@subsubsection BSD/OS Version 2.x Notes @subsubsection BSD/OS Version 2.x Notes
If you get the following error when compiling MySQL, your If you get the following error when compiling MySQL, your
...@@ -8909,7 +8890,7 @@ If you get problems with the current date in MySQL, setting the ...@@ -8909,7 +8890,7 @@ If you get problems with the current date in MySQL, setting the
@code{TZ} variable will probably help. @xref{Environment variables}. @code{TZ} variable will probably help. @xref{Environment variables}.
@node BSDI3, BSDI4, BSDI2, BSD Notes @node BSDI3, BSDI4, BSDI2, BSDI
@subsubsection BSD/OS Version 3.x Notes @subsubsection BSD/OS Version 3.x Notes
Upgrade to BSD/OS Version 3.1. If that is not possible, install Upgrade to BSD/OS Version 3.1. If that is not possible, install
...@@ -8950,7 +8931,7 @@ If this doesn't work and you are using @code{bash}, try switching to ...@@ -8950,7 +8931,7 @@ If this doesn't work and you are using @code{bash}, try switching to
@code{bash} and @code{ulimit}. @code{bash} and @code{ulimit}.
@node BSDI4, , BSDI3, BSD Notes @node BSDI4, , BSDI3, BSDI
@subsubsection BSD/OS Version 4.x Notes @subsubsection BSD/OS Version 4.x Notes
BSDI Version 4.x has some thread-related bugs. If you want to use BSDI Version 4.x has some thread-related bugs. If you want to use
...@@ -9801,12 +9782,6 @@ CC=cc CXX=CC ./configure --prefix=/usr/local/mysql ...@@ -9801,12 +9782,6 @@ CC=cc CXX=CC ./configure --prefix=/usr/local/mysql
If you want to use @code{gcc}, you must use @code{gcc} 2.95.2 or newer. If you want to use @code{gcc}, you must use @code{gcc} 2.95.2 or newer.
@menu
* OS/2:: OS/2 Notes
@end menu
@node OS/2, BeOS, Other Unix Notes, Operating System Specific Notes @node OS/2, BeOS, Other Unix Notes, Operating System Specific Notes
@subsection OS/2 Notes @subsection OS/2 Notes
...@@ -13284,11 +13259,7 @@ start them with @code{./bin/safe_mysqld} then in most cases the only ...@@ -13284,11 +13259,7 @@ start them with @code{./bin/safe_mysqld} then in most cases the only
option you need to add/change is the @code{socket} and @code{port} option you need to add/change is the @code{socket} and @code{port}
argument to @code{safe_mysqld}. argument to @code{safe_mysqld}.
@xref{Multiple servers, ,Running Multiple MySQL Servers on the Same Machine}.
@menu
* Multiple servers:: Running Multiple MySQL Servers on the Same Machine
@end menu
@node Multiple servers, , Installing many servers, Configuring MySQL @node Multiple servers, , Installing many servers, Configuring MySQL
@subsection Running Multiple MySQL Servers on the Same Machine @subsection Running Multiple MySQL Servers on the Same Machine
...@@ -13833,12 +13804,12 @@ privileges according to your identity and @strong{what you want to do}. ...@@ -13833,12 +13804,12 @@ privileges according to your identity and @strong{what you want to do}.
MySQL considers both your hostname and user name in identifying you MySQL considers both your hostname and user name in identifying you
because there is little reason to assume that a given user name belongs to because there is little reason to assume that a given user name belongs to
the same person everywhere on the Internet. For example, the user the same person everywhere on the Internet. For example, the user
@code{bill} who connects from @code{whitehouse.gov} need not be the same @code{joe} who connects from @code{office.com} need not be the same
person as the user @code{bill} who connects from @code{microsoft.com}. person as the user @code{joe} who connects from @code{elsewhere.com}.
MySQL handles this by allowing you to distinguish users on different MySQL handles this by allowing you to distinguish users on different
hosts that happen to have the same name: you can grant @code{bill} one set hosts that happen to have the same name: you can grant @code{joe} one set
of privileges for connections from @code{whitehouse.gov}, and a different set of privileges for connections from @code{office.com}, and a different set
of privileges for connections from @code{microsoft.com}. of privileges for connections from @code{elsewhere.com}.
MySQL access control involves two stages: MySQL access control involves two stages:
...@@ -16465,14 +16436,6 @@ tables while you are running @code{myisamchk}. In MySQL Version 3.23 ...@@ -16465,14 +16436,6 @@ tables while you are running @code{myisamchk}. In MySQL Version 3.23
the easiest way to avoid this problem is to use @code{CHECK TABLE} the easiest way to avoid this problem is to use @code{CHECK TABLE}
instead of @code{myisamchk} to check tables. instead of @code{myisamchk} to check tables.
@menu
* myisamchk general options:: General Options for @code{myisamchk}
* myisamchk check options:: Check Options for @code{myisamchk}
* myisamchk repair options:: Repair Options for myisamchk
* myisamchk other options:: Other Options for @code{myisamchk}
@end menu
@node myisamchk general options, myisamchk check options, myisamchk syntax, Table maintenance @node myisamchk general options, myisamchk check options, myisamchk syntax, Table maintenance
@subsubsection General Options for @code{myisamchk} @subsubsection General Options for @code{myisamchk}
...@@ -17702,12 +17665,6 @@ If the thread is waiting for free disk space in a @code{write} call, the ...@@ -17702,12 +17665,6 @@ If the thread is waiting for free disk space in a @code{write} call, the
write is aborted with an disk full error message. write is aborted with an disk full error message.
@end itemize @end itemize
@menu
* SHOW:: @code{SHOW} Syntax
@end menu
@node SHOW, , KILL, Database Administration @node SHOW, , KILL, Database Administration
@subsection @code{SHOW} Syntax @subsection @code{SHOW} Syntax
...@@ -18449,7 +18406,8 @@ After this many write locks, allow some read locks to run in between. ...@@ -18449,7 +18406,8 @@ After this many write locks, allow some read locks to run in between.
MySQL uses special tree-like cache to make bulk inserts (that is, MySQL uses special tree-like cache to make bulk inserts (that is,
@code{INSERT ... SELECT}, @code{INSERT ... VALUES (...), (...), ...}, and @code{INSERT ... SELECT}, @code{INSERT ... VALUES (...), (...), ...}, and
@code{LOAD DATA INFILE}) faster. This variable limits @code{LOAD DATA INFILE}) faster. This variable limits
the size of the cache tree in bytes per thread. the size of the cache tree in bytes per thread. Setting it to 0
will disable this optimization.
@strong{Note:} This cache is only used when adding data to non-empty table. @strong{Note:} This cache is only used when adding data to non-empty table.
Default value is 8 MB. Default value is 8 MB.
...@@ -22009,15 +21967,6 @@ of the master's binary log is has processed. @strong{Do not} remove or ...@@ -22009,15 +21967,6 @@ of the master's binary log is has processed. @strong{Do not} remove or
edit the file, unless you really know what you are doing. Even in that case, edit the file, unless you really know what you are doing. Even in that case,
it is preferred that you use @code{CHANGE MASTER TO} command. it is preferred that you use @code{CHANGE MASTER TO} command.
@menu
* Replication Features:: Replication Features and Known Problems
* Replication Options:: Replication Options in my.cnf
* Replication SQL:: SQL Commands Related to Replication
* Replication FAQ:: Replication FAQ
* Replication Problems:: Troubleshooting Replication
@end menu
@node Replication Features, Replication Options, Replication HOWTO, Replication @node Replication Features, Replication Options, Replication HOWTO, Replication
@subsection Replication Features and Known Problems @subsection Replication Features and Known Problems
...@@ -24971,16 +24920,6 @@ part of the rows, MySQL will use an index anyway, as it can ...@@ -24971,16 +24920,6 @@ part of the rows, MySQL will use an index anyway, as it can
much more quickly find the few rows to return in the result. much more quickly find the few rows to return in the result.
@end itemize @end itemize
@menu
* Indexes:: Column Indexes
* Multiple-column indexes:: Multiple-Column Indexes
* Table cache:: How MySQL Opens and Closes Tables
* Creating many tables:: Drawbacks to Creating Large Numbers of Tables in the Same Database
* Open tables:: Why So Many Open tables?
@end menu
@node Indexes, Multiple-column indexes, MySQL indexes, Optimising Database Structure @node Indexes, Multiple-column indexes, MySQL indexes, Optimising Database Structure
@subsection Column Indexes @subsection Column Indexes
...@@ -25828,13 +25767,7 @@ command when inserting an @code{AUTO_INCREMENT} value. This is mainly used ...@@ -25828,13 +25767,7 @@ command when inserting an @code{AUTO_INCREMENT} value. This is mainly used
with the update log. with the update log.
@end table @end table
@xref{SET TRANSACTION}.
@menu
* SET TRANSACTION:: @code{SET TRANSACTION} Syntax
@end menu
@node Disk issues, , Optimising the Server, MySQL Optimisation @node Disk issues, , Optimising the Server, MySQL Optimisation
@section Disk Issues @section Disk Issues
...@@ -26375,11 +26308,6 @@ or export formats (@code{LOAD DATA INFILE}, @code{SELECT ... INTO OUTFILE}). ...@@ -26375,11 +26308,6 @@ or export formats (@code{LOAD DATA INFILE}, @code{SELECT ... INTO OUTFILE}).
@cindex columns, names @cindex columns, names
@cindex aliases, names @cindex aliases, names
@menu
* Name case sensitivity:: Case sensitivity in names
@end menu
Database, table, index, column, and alias names all follow the same rules in Database, table, index, column, and alias names all follow the same rules in
MySQL. MySQL.
...@@ -26577,12 +26505,6 @@ SELECT (@@aa:=id) AS a, (@@aa+3) AS b FROM table_name HAVING b=5; ...@@ -26577,12 +26505,6 @@ SELECT (@@aa:=id) AS a, (@@aa+3) AS b FROM table_name HAVING b=5;
The reason is that @code{@@aa} will not contain the value of the current The reason is that @code{@@aa} will not contain the value of the current
row, but the value of @code{id} for the previous accepted row. row, but the value of @code{id} for the previous accepted row.
@menu
* Comments:: Comment Syntax
* Reserved words:: Is MySQL Picky About Reserved Words?
@end menu
@node Comments, Reserved words, Variables, Language Structure @node Comments, Reserved words, Variables, Language Structure
@subsection Comment Syntax @subsection Comment Syntax
...@@ -32775,16 +32697,6 @@ exist. ...@@ -32775,16 +32697,6 @@ exist.
@cindex @code{mysqladmin} @cindex @code{mysqladmin}
You can also drop databases with @code{mysqladmin}. @xref{Client-Side Scripts}. You can also drop databases with @code{mysqladmin}. @xref{Client-Side Scripts}.
@menu
* CREATE TABLE:: @code{CREATE TABLE} Syntax
* ALTER TABLE:: @code{ALTER TABLE} Syntax
* RENAME TABLE:: @code{RENAME TABLE} Syntax
* DROP TABLE:: @code{DROP TABLE} Syntax
* CREATE INDEX:: @code{CREATE INDEX} Syntax
* DROP INDEX:: @code{DROP INDEX} Syntax
@end menu
@node CREATE TABLE, ALTER TABLE, DROP DATABASE, Data Definition @node CREATE TABLE, ALTER TABLE, DROP DATABASE, Data Definition
@subsection @code{CREATE TABLE} Syntax @subsection @code{CREATE TABLE} Syntax
...@@ -34198,7 +34110,7 @@ mysql> SELECT * FROM articles WHERE MATCH (title,body) AGAINST ( ...@@ -34198,7 +34110,7 @@ mysql> SELECT * FROM articles WHERE MATCH (title,body) AGAINST (
This query retrieved all the rows that contain the word @code{MySQL} This query retrieved all the rows that contain the word @code{MySQL}
(note: 50% threshold is gone), but does @strong{not} contain the word (note: 50% threshold is gone), but does @strong{not} contain the word
@code{YourSQL}. Note, that it does not auto-magically sort rows in @code{YourSQL}. Note, that it does not auto-magically sort rows in
derceasing relevance order (the last row has the highest relevance, decreasing relevance order (the last row has the highest relevance,
as it contains @code{MySQL} twice). Boolean fulltext search can also as it contains @code{MySQL} twice). Boolean fulltext search can also
work even without @code{FULLTEXT} index, but it would be @strong{slow}. work even without @code{FULLTEXT} index, but it would be @strong{slow}.
...@@ -34241,11 +34153,11 @@ find rows that contain at least one of these words. ...@@ -34241,11 +34153,11 @@ find rows that contain at least one of these words.
... word ``apple'', but rank it higher if it also contain ``macintosh'' ... word ``apple'', but rank it higher if it also contain ``macintosh''
@item +apple -macintosh @item +apple -macintosh
... word ``apple'' but not ``macintosh'' ... word ``apple'' but not ``macintosh''
@item +gates +(>hell <bill) @item +apple +(>pie <strudel)
... ``hell'' and ``gates'', or ``bill'' and ``gates'' (in any ... ``apple'' and ``pie'', or ``apple'' and ``strudel'' (in any
order), but rank ``gates to hell'' higher than ``bill gates''. order), but rank ``apple pie'' higher than ``apple strudel''.
@item apple* @item apple*
... ``apple'', ``apples'', ``applesause'', and ``applet'' ... ``apple'', ``apples'', ``applesauce'', and ``applet''
@end table @end table
@menu @menu
...@@ -41422,14 +41334,6 @@ example. ...@@ -41422,14 +41334,6 @@ example.
You can test for an error by calling @code{mysql_error()} or You can test for an error by calling @code{mysql_error()} or
@code{mysql_errno()}. @code{mysql_errno()}.
@cindex queries, C API results
@menu
* Query results:: What Results Can I Get From a Query?
* Getting unique ID:: How Can I Get the Unique ID for the Last Inserted Row?
* C API linking problems:: Problems Linking with the C API
@end menu
@node Query results, Getting unique ID, NULL mysql_store_result, C API problems @node Query results, Getting unique ID, NULL mysql_store_result, C API problems
@subsubsection What Results Can I Get From a Query? @subsubsection What Results Can I Get From a Query?
File mode changed from 100755 to 100644
...@@ -815,7 +815,7 @@ int _mi_init_bulk_insert(MI_INFO *info) ...@@ -815,7 +815,7 @@ int _mi_init_bulk_insert(MI_INFO *info)
} }
} }
if (!num_keys) if (num_keys==0 || num_keys>myisam_bulk_insert_tree_size)
return 0; return 0;
info->bulk_insert=(TREE *) info->bulk_insert=(TREE *)
......
...@@ -2934,7 +2934,7 @@ CHANGEABLE_VAR changeable_vars[] = { ...@@ -2934,7 +2934,7 @@ CHANGEABLE_VAR changeable_vars[] = {
{ "max_write_lock_count", (long*) &max_write_lock_count, { "max_write_lock_count", (long*) &max_write_lock_count,
~0L, 1, ~0L, 0, 1 }, ~0L, 1, ~0L, 0, 1 },
{ "myisam_bulk_insert_tree_size", (long*) &myisam_bulk_insert_tree_size, { "myisam_bulk_insert_tree_size", (long*) &myisam_bulk_insert_tree_size,
8192*1024, 4, ~0L, 0, 1 }, 8192*1024, 0, ~0L, 0, 1 },
{ "myisam_block_size", (long*) &opt_myisam_block_size, { "myisam_block_size", (long*) &opt_myisam_block_size,
MI_KEY_BLOCK_LENGTH, MI_MIN_KEY_BLOCK_LENGTH, MI_MAX_KEY_BLOCK_LENGTH, MI_KEY_BLOCK_LENGTH, MI_MIN_KEY_BLOCK_LENGTH, MI_MAX_KEY_BLOCK_LENGTH,
0, MI_MIN_KEY_BLOCK_LENGTH }, 0, MI_MIN_KEY_BLOCK_LENGTH },
......
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