Loading BUILD/SETUP.sh +1 −1 Original line number Diff line number Diff line Loading @@ -10,7 +10,7 @@ while test $# -gt 0 do case "$1" in -c | --just-configure ) just_configure=1; shift ;; -n | --just-print ) nonono=1; shift ;; -n | --just-print | --print ) nonono=1; shift ;; -h | --help ) cat <<EOF; exit 0 ;; Usage: $0 [-h|-n] [configure-options] -h, --help Show this help message. Loading BUILD/compile-pentium +1 −1 Original line number Diff line number Diff line Loading @@ -12,6 +12,6 @@ if test -d /usr/local/BerkeleyDB-opt/ then extra_configs="$extra_configs --with-berkeley-db=/usr/local/BerkeleyDB-opt/" fi extra_configs="$extra_configs --with-innobase-db" extra_configs="$extra_configs --with-innobase" . "$path/FINISH.sh" BUILD/compile-pentium-debug +1 −1 Original line number Diff line number Diff line Loading @@ -13,6 +13,6 @@ if test -d /usr/local/BerkeleyDB-dbug/ then extra_configs="$extra_configs --with-berkeley-db=/usr/local/BerkeleyDB-dbug/" fi extra_configs="$extra_configs --with-innobase-db" extra_configs="$extra_configs --with-innobase" . "$path/FINISH.sh" Build-tools/Do-all-build-steps +1 −1 Original line number Diff line number Diff line Loading @@ -64,7 +64,7 @@ aclocal; autoheader; aclocal; automake; autoconf --with-mit-threads=yes $EXTRA_CONFIG \ --enable-thread-safe-client \ --with-berkeley-db \ --with-innobase-db --with-innobase gmake -j 2 Loading Docs/manual.texi +63 −55 Original line number Diff line number Diff line Loading @@ -512,6 +512,8 @@ BDB or Berkeley_db Tables INNOBASE Tables * INNOBASE overview:: * Innobase startup options:: * Using Innobase tables:: * INNOBASE restrictions:: MySQL Tutorial Loading Loading @@ -580,7 +582,7 @@ Replication in MySQL * Replication Options:: Replication Options in my.cnf * Replication SQL:: SQL Commands related to replication * Replication FAQ:: Frequently Asked Questions about replication * Troubleshooting Replication:: Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. * Troubleshooting Replication:: Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Getting Maximum Performance from MySQL Loading Loading @@ -722,7 +724,7 @@ Problems and Common Errors Some Common Errors When Using MySQL * Error Access denied:: * Error Access denied:: @code{Access denied} Error * Gone away:: @code{MySQL server has gone away} error * Can not connect to server:: @code{Can't connect to [local] MySQL server} error * Blocked host:: @code{Host '...' is blocked} error Loading Loading @@ -23308,18 +23310,17 @@ SUM_OVER_ALL_KEYS(max_length_of_key + sizeof(char*) * 2) @node BDB overview, BDB install, BDB, BDB @subsection Overview over BDB tables Innobase is included in the @strong{MySQL} source distribution starting from 3.23.34 and will be activated in the @strong{MySQL}-max binary. BDB tables are included in the @strong{MySQL} source distribution starting from 3.23.34 and will be activated in the @strong{MySQL}-max binary. Berkeley DB (@uref{http://www.sleepycat.com}) has provided @strong{MySQL} with a transaction-safe table handler. This will survive crashes and also provides @code{COMMIT} and @code{ROLLBACK} on transactions. In order to build MySQL Version 3.23.x (BDB support first appeared in Version 3.23.15) with support for @code{BDB} tables, you will need Berkeley DB Version 3.2.3h or newer which can be downloaded from @uref{http://www.mysql.com/downloads/mysql-3.23.html}. This is a patched version of Berkeley DB that is only available from @strong{MySQL}; the standard Berkeley DB @strong{will not yet work with MySQL}. transactions. The @strong{MySQL} source distribution comes with a BDB distribution that has a couple of small patches to make it work more smoothly with @strong{MySQL}. You can't use a not-patched @code{BDB} version with @strong{MySQL}. @node BDB install, BDB start, BDB overview, BDB @subsection Installing BDB Loading @@ -23328,30 +23329,15 @@ If you have downloaded a binary version of @strong{MySQL} that includes support for Berkeley DB, simply follow the instructions for installing a binary version of @strong{MySQL}. @xref{Installing binary}. To compile MySQL with Berkeley DB support, first uncompress the @code{BDB} distribution into the @strong{MySQL} top-level source directory, and follow the instructions for building MySQL from source. Configure will automatically detect and use the Berkeley DB source you just uncompressed. @xref{Installing source}. To compile MySQL with Berkeley DB support, download @strong{MySQL} 3.23.34 or newer and configure @code{MySQL} with the @code{--with-berkeley-db} option. @xref{Installing source}. @example cd /path/to/source/of/mysql-3.23.31 gzip -cd /tmp/db-3.2.3h.tar.gz | tar xf - ./configure # this will use Berkeley DB automatically cd /path/to/source/of/mysql-3.23.34 ./configure --with-berkeley-db @end example If you would like to install Berkeley DB separately, to use with other applications and MySQL, this is possible. Follow the directions for installing Berkeley DB in the Berkeley DB README file. Then, pass the @code{--with-berkeley-db=DIR} option to @strong{MySQL}'s @code{configure}, where @code{DIR} refers to the installation prefix used when installing Berkeley DB (by default it is /usr/local/BerkeleyDB.3.2). You can give additional options to @strong{MySQL} configure, @code{--with-berkeley-db-includes=DIR} and @code{--with-berkeley-db-libs=DIR}, if the @code{BDB} includes and/or libs directory is not under the first directory (by default they are). Then complete the @strong{MySQL} installation as normal. Please refer to the manual provided by @code{BDB} distribution for more/updated information. Loading Loading @@ -23528,14 +23514,30 @@ not trivial). @menu * INNOBASE overview:: * Innobase startup options:: * Using Innobase tables:: * INNOBASE restrictions:: @end menu @node INNOBASE overview, INNOBASE restrictions, INNOBASE, INNOBASE @node INNOBASE overview, Innobase startup options, INNOBASE, INNOBASE @subsection INNOBASE Tables overview Innobase is included in the @strong{MySQL} source distribution starting from 3.23.34 and will be activated in the @strong{MySQL}-max binary. Innobase tables are included in the @strong{MySQL} source distribution starting from 3.23.34 and will be activated in the @strong{MySQL}-max binary. If you have downloaded a binary version of @strong{MySQL} that includes support for Berkeley DB, simply follow the instructions for installing a binary version of @strong{MySQL}. @xref{Installing binary}. To compile @strong{MySQL} with Innobase support, download @strong{MySQL} 3.23.34 or newer and configure @code{MySQL} with the @code{--with-innobase} option. @xref{Installing source}. @example cd /path/to/source/of/mysql-3.23.34 ./configure --with-berkeley-db @end example Innobase provides MySQL with a transaction safe table handler with commit, rollback, and crash recovery capabilities. Innobase does Loading @@ -23548,22 +23550,8 @@ Innobase is a table handler that is under the GNU GPL License Version 2 (of June 1991). In the source distribution of MySQL, Innobase appears as a subdirectory. Technically, Innobase is a database backend placed under MySQL. Innobase has its own buffer pool for caching data and indexes in main memory. Innobase stores its tables and indexes in a tablespace, which may consist of several files. This is different from, for example, @code{MyISAM} tables where each table is stored as a separate file. To create a table in the Innobase format you must specify @code{TYPE = INNOBASE} in the table creation SQL command: @example CREATE TABLE CUSTOMERS (A INT, B CHAR (20), INDEX (A)) TYPE = INNOBASE; @end example A consistent non-locking read is the default locking behavior when you do a @code{SELECT} from an Innobase table. For a searched update and an insert row level exclusive locking is performed. @node Innobase startup options, Using Innobase tables, INNOBASE overview, INNOBASE @subsection Innobase startup options To use Innobase tables you must specify configuration parameters in the MySQL configuration file in the @code{[mysqld]} section of Loading Loading @@ -23659,6 +23647,26 @@ Innobase cannot notice. In cases like this the timeout is useful to resolve the situation. @end multitable @node Using Innobase tables, INNOBASE restrictions, Innobase startup options, INNOBASE @subsection Using Innobase tables Technically, Innobase is a database backend placed under MySQL. Innobase has its own buffer pool for caching data and indexes in main memory. Innobase stores its tables and indexes in a tablespace, which may consist of several files. This is different from, for example, @code{MyISAM} tables where each table is stored as a separate file. To create a table in the Innobase format you must specify @code{TYPE = INNOBASE} in the table creation SQL command: @example CREATE TABLE CUSTOMERS (A INT, B CHAR (20), INDEX (A)) TYPE = INNOBASE; @end example A consistent non-locking read is the default locking behavior when you do a @code{SELECT} from an Innobase table. For a searched update and an insert row level exclusive locking is performed. You can query the amount of free space in the Innobase tablespace (= data files you specified in my.cnf) by issuing the table status command of @strong{MySQL} for any table you have created with @code{TYPE = Loading Loading @@ -23713,7 +23721,7 @@ P.O.Box 800 Finland @end example @node INNOBASE restrictions, , INNOBASE overview, INNOBASE @node INNOBASE restrictions, , Using Innobase tables, INNOBASE @subsection Some restrictions on @code{INNOBASE} tables: @itemize @bullet Loading Loading @@ -26464,7 +26472,7 @@ tables}. * Replication Options:: Replication Options in my.cnf * Replication SQL:: SQL Commands related to replication * Replication FAQ:: Frequently Asked Questions about replication * Troubleshooting Replication:: Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. * Troubleshooting Replication:: Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. @end menu @node Replication Intro, Replication Implementation, Replication, Replication Loading Loading @@ -41891,6 +41899,9 @@ not yet 100 % confident in this code. @appendixsubsec Changes in release 3.23.34 @itemize @bullet @item Added the @code{INNOBASE} table handler and the @code{BDB} table handler to the @strong{MySQL} source distribution. @item @code{REPLACE} will not replace a row that conflicts with an @code{auto_increment} generated key. @item Loading Loading @@ -41923,9 +41934,6 @@ Fixed bug when replicating timestamps. @item Fixed bug in bi-directonal replication. @item Added the @code{INNOBASE} table handler and the @code{BDB} table handler to the @strong{MySQL} source distribution. @item Fixed bug in @code{BDB} tables when using index on multi-part key where a key part may be @code{NULL}. @item Loading
BUILD/SETUP.sh +1 −1 Original line number Diff line number Diff line Loading @@ -10,7 +10,7 @@ while test $# -gt 0 do case "$1" in -c | --just-configure ) just_configure=1; shift ;; -n | --just-print ) nonono=1; shift ;; -n | --just-print | --print ) nonono=1; shift ;; -h | --help ) cat <<EOF; exit 0 ;; Usage: $0 [-h|-n] [configure-options] -h, --help Show this help message. Loading
BUILD/compile-pentium +1 −1 Original line number Diff line number Diff line Loading @@ -12,6 +12,6 @@ if test -d /usr/local/BerkeleyDB-opt/ then extra_configs="$extra_configs --with-berkeley-db=/usr/local/BerkeleyDB-opt/" fi extra_configs="$extra_configs --with-innobase-db" extra_configs="$extra_configs --with-innobase" . "$path/FINISH.sh"
BUILD/compile-pentium-debug +1 −1 Original line number Diff line number Diff line Loading @@ -13,6 +13,6 @@ if test -d /usr/local/BerkeleyDB-dbug/ then extra_configs="$extra_configs --with-berkeley-db=/usr/local/BerkeleyDB-dbug/" fi extra_configs="$extra_configs --with-innobase-db" extra_configs="$extra_configs --with-innobase" . "$path/FINISH.sh"
Build-tools/Do-all-build-steps +1 −1 Original line number Diff line number Diff line Loading @@ -64,7 +64,7 @@ aclocal; autoheader; aclocal; automake; autoconf --with-mit-threads=yes $EXTRA_CONFIG \ --enable-thread-safe-client \ --with-berkeley-db \ --with-innobase-db --with-innobase gmake -j 2 Loading
Docs/manual.texi +63 −55 Original line number Diff line number Diff line Loading @@ -512,6 +512,8 @@ BDB or Berkeley_db Tables INNOBASE Tables * INNOBASE overview:: * Innobase startup options:: * Using Innobase tables:: * INNOBASE restrictions:: MySQL Tutorial Loading Loading @@ -580,7 +582,7 @@ Replication in MySQL * Replication Options:: Replication Options in my.cnf * Replication SQL:: SQL Commands related to replication * Replication FAQ:: Frequently Asked Questions about replication * Troubleshooting Replication:: Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. * Troubleshooting Replication:: Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Getting Maximum Performance from MySQL Loading Loading @@ -722,7 +724,7 @@ Problems and Common Errors Some Common Errors When Using MySQL * Error Access denied:: * Error Access denied:: @code{Access denied} Error * Gone away:: @code{MySQL server has gone away} error * Can not connect to server:: @code{Can't connect to [local] MySQL server} error * Blocked host:: @code{Host '...' is blocked} error Loading Loading @@ -23308,18 +23310,17 @@ SUM_OVER_ALL_KEYS(max_length_of_key + sizeof(char*) * 2) @node BDB overview, BDB install, BDB, BDB @subsection Overview over BDB tables Innobase is included in the @strong{MySQL} source distribution starting from 3.23.34 and will be activated in the @strong{MySQL}-max binary. BDB tables are included in the @strong{MySQL} source distribution starting from 3.23.34 and will be activated in the @strong{MySQL}-max binary. Berkeley DB (@uref{http://www.sleepycat.com}) has provided @strong{MySQL} with a transaction-safe table handler. This will survive crashes and also provides @code{COMMIT} and @code{ROLLBACK} on transactions. In order to build MySQL Version 3.23.x (BDB support first appeared in Version 3.23.15) with support for @code{BDB} tables, you will need Berkeley DB Version 3.2.3h or newer which can be downloaded from @uref{http://www.mysql.com/downloads/mysql-3.23.html}. This is a patched version of Berkeley DB that is only available from @strong{MySQL}; the standard Berkeley DB @strong{will not yet work with MySQL}. transactions. The @strong{MySQL} source distribution comes with a BDB distribution that has a couple of small patches to make it work more smoothly with @strong{MySQL}. You can't use a not-patched @code{BDB} version with @strong{MySQL}. @node BDB install, BDB start, BDB overview, BDB @subsection Installing BDB Loading @@ -23328,30 +23329,15 @@ If you have downloaded a binary version of @strong{MySQL} that includes support for Berkeley DB, simply follow the instructions for installing a binary version of @strong{MySQL}. @xref{Installing binary}. To compile MySQL with Berkeley DB support, first uncompress the @code{BDB} distribution into the @strong{MySQL} top-level source directory, and follow the instructions for building MySQL from source. Configure will automatically detect and use the Berkeley DB source you just uncompressed. @xref{Installing source}. To compile MySQL with Berkeley DB support, download @strong{MySQL} 3.23.34 or newer and configure @code{MySQL} with the @code{--with-berkeley-db} option. @xref{Installing source}. @example cd /path/to/source/of/mysql-3.23.31 gzip -cd /tmp/db-3.2.3h.tar.gz | tar xf - ./configure # this will use Berkeley DB automatically cd /path/to/source/of/mysql-3.23.34 ./configure --with-berkeley-db @end example If you would like to install Berkeley DB separately, to use with other applications and MySQL, this is possible. Follow the directions for installing Berkeley DB in the Berkeley DB README file. Then, pass the @code{--with-berkeley-db=DIR} option to @strong{MySQL}'s @code{configure}, where @code{DIR} refers to the installation prefix used when installing Berkeley DB (by default it is /usr/local/BerkeleyDB.3.2). You can give additional options to @strong{MySQL} configure, @code{--with-berkeley-db-includes=DIR} and @code{--with-berkeley-db-libs=DIR}, if the @code{BDB} includes and/or libs directory is not under the first directory (by default they are). Then complete the @strong{MySQL} installation as normal. Please refer to the manual provided by @code{BDB} distribution for more/updated information. Loading Loading @@ -23528,14 +23514,30 @@ not trivial). @menu * INNOBASE overview:: * Innobase startup options:: * Using Innobase tables:: * INNOBASE restrictions:: @end menu @node INNOBASE overview, INNOBASE restrictions, INNOBASE, INNOBASE @node INNOBASE overview, Innobase startup options, INNOBASE, INNOBASE @subsection INNOBASE Tables overview Innobase is included in the @strong{MySQL} source distribution starting from 3.23.34 and will be activated in the @strong{MySQL}-max binary. Innobase tables are included in the @strong{MySQL} source distribution starting from 3.23.34 and will be activated in the @strong{MySQL}-max binary. If you have downloaded a binary version of @strong{MySQL} that includes support for Berkeley DB, simply follow the instructions for installing a binary version of @strong{MySQL}. @xref{Installing binary}. To compile @strong{MySQL} with Innobase support, download @strong{MySQL} 3.23.34 or newer and configure @code{MySQL} with the @code{--with-innobase} option. @xref{Installing source}. @example cd /path/to/source/of/mysql-3.23.34 ./configure --with-berkeley-db @end example Innobase provides MySQL with a transaction safe table handler with commit, rollback, and crash recovery capabilities. Innobase does Loading @@ -23548,22 +23550,8 @@ Innobase is a table handler that is under the GNU GPL License Version 2 (of June 1991). In the source distribution of MySQL, Innobase appears as a subdirectory. Technically, Innobase is a database backend placed under MySQL. Innobase has its own buffer pool for caching data and indexes in main memory. Innobase stores its tables and indexes in a tablespace, which may consist of several files. This is different from, for example, @code{MyISAM} tables where each table is stored as a separate file. To create a table in the Innobase format you must specify @code{TYPE = INNOBASE} in the table creation SQL command: @example CREATE TABLE CUSTOMERS (A INT, B CHAR (20), INDEX (A)) TYPE = INNOBASE; @end example A consistent non-locking read is the default locking behavior when you do a @code{SELECT} from an Innobase table. For a searched update and an insert row level exclusive locking is performed. @node Innobase startup options, Using Innobase tables, INNOBASE overview, INNOBASE @subsection Innobase startup options To use Innobase tables you must specify configuration parameters in the MySQL configuration file in the @code{[mysqld]} section of Loading Loading @@ -23659,6 +23647,26 @@ Innobase cannot notice. In cases like this the timeout is useful to resolve the situation. @end multitable @node Using Innobase tables, INNOBASE restrictions, Innobase startup options, INNOBASE @subsection Using Innobase tables Technically, Innobase is a database backend placed under MySQL. Innobase has its own buffer pool for caching data and indexes in main memory. Innobase stores its tables and indexes in a tablespace, which may consist of several files. This is different from, for example, @code{MyISAM} tables where each table is stored as a separate file. To create a table in the Innobase format you must specify @code{TYPE = INNOBASE} in the table creation SQL command: @example CREATE TABLE CUSTOMERS (A INT, B CHAR (20), INDEX (A)) TYPE = INNOBASE; @end example A consistent non-locking read is the default locking behavior when you do a @code{SELECT} from an Innobase table. For a searched update and an insert row level exclusive locking is performed. You can query the amount of free space in the Innobase tablespace (= data files you specified in my.cnf) by issuing the table status command of @strong{MySQL} for any table you have created with @code{TYPE = Loading Loading @@ -23713,7 +23721,7 @@ P.O.Box 800 Finland @end example @node INNOBASE restrictions, , INNOBASE overview, INNOBASE @node INNOBASE restrictions, , Using Innobase tables, INNOBASE @subsection Some restrictions on @code{INNOBASE} tables: @itemize @bullet Loading Loading @@ -26464,7 +26472,7 @@ tables}. * Replication Options:: Replication Options in my.cnf * Replication SQL:: SQL Commands related to replication * Replication FAQ:: Frequently Asked Questions about replication * Troubleshooting Replication:: Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. * Troubleshooting Replication:: Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. Troubleshooting Replication. @end menu @node Replication Intro, Replication Implementation, Replication, Replication Loading Loading @@ -41891,6 +41899,9 @@ not yet 100 % confident in this code. @appendixsubsec Changes in release 3.23.34 @itemize @bullet @item Added the @code{INNOBASE} table handler and the @code{BDB} table handler to the @strong{MySQL} source distribution. @item @code{REPLACE} will not replace a row that conflicts with an @code{auto_increment} generated key. @item Loading Loading @@ -41923,9 +41934,6 @@ Fixed bug when replicating timestamps. @item Fixed bug in bi-directonal replication. @item Added the @code{INNOBASE} table handler and the @code{BDB} table handler to the @strong{MySQL} source distribution. @item Fixed bug in @code{BDB} tables when using index on multi-part key where a key part may be @code{NULL}. @item