Commit 1512a50e authored by unknown's avatar unknown

Changed --with-innobase-db to --with-innobase

Updated manual about INNOBASE and BDB


BUILD/SETUP.sh:
  Added --print as alias for --just-print
BUILD/compile-pentium-debug:
  Changed --with-innobase-db to --with-innobase
BUILD/compile-pentium:
  Changed --with-innobase-db to --with-innobase
Build-tools/Do-all-build-steps:
  Changed --with-innobase-db to --with-innobase
Docs/manual.texi:
  Added that BDB and INNBASE is included in the source distribution
sql/mysqld.cc:
  Fixed typo
support-files/maxsql.spec.sh:
  Changed --with-innobase-db to --with-innobase
support-files/mysql.spec.sh:
  Changed --with-innobase-db to --with-innobase
parent 0b82193c
...@@ -10,7 +10,7 @@ while test $# -gt 0 ...@@ -10,7 +10,7 @@ while test $# -gt 0
do do
case "$1" in case "$1" in
-c | --just-configure ) just_configure=1; shift ;; -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 ;; -h | --help ) cat <<EOF; exit 0 ;;
Usage: $0 [-h|-n] [configure-options] Usage: $0 [-h|-n] [configure-options]
-h, --help Show this help message. -h, --help Show this help message.
......
...@@ -12,6 +12,6 @@ if test -d /usr/local/BerkeleyDB-opt/ ...@@ -12,6 +12,6 @@ if test -d /usr/local/BerkeleyDB-opt/
then then
extra_configs="$extra_configs --with-berkeley-db=/usr/local/BerkeleyDB-opt/" extra_configs="$extra_configs --with-berkeley-db=/usr/local/BerkeleyDB-opt/"
fi fi
extra_configs="$extra_configs --with-innobase-db" extra_configs="$extra_configs --with-innobase"
. "$path/FINISH.sh" . "$path/FINISH.sh"
...@@ -13,6 +13,6 @@ if test -d /usr/local/BerkeleyDB-dbug/ ...@@ -13,6 +13,6 @@ if test -d /usr/local/BerkeleyDB-dbug/
then then
extra_configs="$extra_configs --with-berkeley-db=/usr/local/BerkeleyDB-dbug/" extra_configs="$extra_configs --with-berkeley-db=/usr/local/BerkeleyDB-dbug/"
fi fi
extra_configs="$extra_configs --with-innobase-db" extra_configs="$extra_configs --with-innobase"
. "$path/FINISH.sh" . "$path/FINISH.sh"
...@@ -64,7 +64,7 @@ aclocal; autoheader; aclocal; automake; autoconf ...@@ -64,7 +64,7 @@ aclocal; autoheader; aclocal; automake; autoconf
--with-mit-threads=yes $EXTRA_CONFIG \ --with-mit-threads=yes $EXTRA_CONFIG \
--enable-thread-safe-client \ --enable-thread-safe-client \
--with-berkeley-db \ --with-berkeley-db \
--with-innobase-db --with-innobase
gmake -j 2 gmake -j 2
......
...@@ -512,6 +512,8 @@ BDB or Berkeley_db Tables ...@@ -512,6 +512,8 @@ BDB or Berkeley_db Tables
INNOBASE Tables INNOBASE Tables
* INNOBASE overview:: * INNOBASE overview::
* Innobase startup options::
* Using Innobase tables::
* INNOBASE restrictions:: * INNOBASE restrictions::
MySQL Tutorial MySQL Tutorial
...@@ -580,7 +582,7 @@ Replication in MySQL ...@@ -580,7 +582,7 @@ Replication in MySQL
* Replication Options:: Replication Options in my.cnf * Replication Options:: Replication Options in my.cnf
* Replication SQL:: SQL Commands related to replication * Replication SQL:: SQL Commands related to replication
* Replication FAQ:: Frequently Asked Questions about 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 Getting Maximum Performance from MySQL
...@@ -722,12 +724,12 @@ Problems and Common Errors ...@@ -722,12 +724,12 @@ Problems and Common Errors
Some Common Errors When Using MySQL 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 * Gone away:: @code{MySQL server has gone away} error
* Can not connect to server:: @code{Can't connect to [local] MySQL server} error * Can not connect to server:: @code{Can't connect to [local] MySQL server} error
* Blocked host:: @code{Host '...' is blocked} error * Blocked host:: @code{Host '...' is blocked} error
* Too many connections:: @code{Too many connections} error * Too many connections:: @code{Too many connections} error
* Non-transactional tables:: @code{Some non-transactional changed tables couldn't be rolled back} Error * Non-transactional tables:: @code{Some non-transactional changed tables couldn't be rolled back} Error
* Out of memory:: @code{Out of memory} error * Out of memory:: @code{Out of memory} error
* Packet too large:: @code{Packet too large} error * Packet too large:: @code{Packet too large} error
* Communication errors:: Communication errors / Aborted connection * Communication errors:: Communication errors / Aborted connection
...@@ -23308,18 +23310,17 @@ SUM_OVER_ALL_KEYS(max_length_of_key + sizeof(char*) * 2) ...@@ -23308,18 +23310,17 @@ SUM_OVER_ALL_KEYS(max_length_of_key + sizeof(char*) * 2)
@node BDB overview, BDB install, BDB, BDB @node BDB overview, BDB install, BDB, BDB
@subsection Overview over BDB tables @subsection Overview over BDB tables
Innobase is included in the @strong{MySQL} source distribution starting BDB tables are included in the @strong{MySQL} source distribution
from 3.23.34 and will be activated in the @strong{MySQL}-max binary. starting from 3.23.34 and will be activated in the @strong{MySQL}-max
binary.
Berkeley DB (@uref{http://www.sleepycat.com}) has provided Berkeley DB (@uref{http://www.sleepycat.com}) has provided
@strong{MySQL} with a transaction-safe table handler. This will survive @strong{MySQL} with a transaction-safe table handler. This will survive
crashes and also provides @code{COMMIT} and @code{ROLLBACK} on crashes and also provides @code{COMMIT} and @code{ROLLBACK} on
transactions. In order to build MySQL Version 3.23.x (BDB support first transactions. The @strong{MySQL} source distribution comes with a BDB
appeared in Version 3.23.15) with support for @code{BDB} tables, you distribution that has a couple of small patches to make it work more
will need Berkeley DB Version 3.2.3h or newer which can be downloaded from smoothly with @strong{MySQL}. You can't use a not-patched @code{BDB}
@uref{http://www.mysql.com/downloads/mysql-3.23.html}. This is a patched version with @strong{MySQL}.
version of Berkeley DB that is only available from @strong{MySQL}; the
standard Berkeley DB @strong{will not yet work with MySQL}.
@node BDB install, BDB start, BDB overview, BDB @node BDB install, BDB start, BDB overview, BDB
@subsection Installing BDB @subsection Installing BDB
...@@ -23328,30 +23329,15 @@ If you have downloaded a binary version of @strong{MySQL} that includes ...@@ -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 support for Berkeley DB, simply follow the instructions for
installing a binary version of @strong{MySQL}. @xref{Installing binary}. installing a binary version of @strong{MySQL}. @xref{Installing binary}.
To compile MySQL with Berkeley DB support, first uncompress the To compile MySQL with Berkeley DB support, download @strong{MySQL}
@code{BDB} distribution into the @strong{MySQL} top-level source 3.23.34 or newer and configure @code{MySQL} with the
directory, and follow the instructions for building MySQL from @code{--with-berkeley-db} option. @xref{Installing source}.
source. Configure will automatically detect and use the Berkeley
DB source you just uncompressed. @xref{Installing source}.
@example @example
cd /path/to/source/of/mysql-3.23.31 cd /path/to/source/of/mysql-3.23.34
gzip -cd /tmp/db-3.2.3h.tar.gz | tar xf - ./configure --with-berkeley-db
./configure # this will use Berkeley DB automatically
@end example @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 Please refer to the manual provided by @code{BDB} distribution for
more/updated information. more/updated information.
...@@ -23528,14 +23514,30 @@ not trivial). ...@@ -23528,14 +23514,30 @@ not trivial).
@menu @menu
* INNOBASE overview:: * INNOBASE overview::
* Innobase startup options::
* Using Innobase tables::
* INNOBASE restrictions:: * INNOBASE restrictions::
@end menu @end menu
@node INNOBASE overview, INNOBASE restrictions, INNOBASE, INNOBASE @node INNOBASE overview, Innobase startup options, INNOBASE, INNOBASE
@subsection INNOBASE Tables overview @subsection INNOBASE Tables overview
Innobase is included in the @strong{MySQL} source distribution starting Innobase tables are included in the @strong{MySQL} source distribution
from 3.23.34 and will be activated in the @strong{MySQL}-max binary. 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 Innobase provides MySQL with a transaction safe table handler with
commit, rollback, and crash recovery capabilities. Innobase does commit, rollback, and crash recovery capabilities. Innobase does
...@@ -23548,22 +23550,8 @@ Innobase is a table handler that is under the GNU GPL License Version 2 ...@@ -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 (of June 1991). In the source distribution of MySQL, Innobase appears as
a subdirectory. a subdirectory.
Technically, Innobase is a database backend placed under MySQL. Innobase @node Innobase startup options, Using Innobase tables, INNOBASE overview, INNOBASE
has its own buffer pool for caching data and indexes in main @subsection Innobase startup options
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.
To use Innobase tables you must specify configuration parameters To use Innobase tables you must specify configuration parameters
in the MySQL configuration file in the @code{[mysqld]} section of in the MySQL configuration file in the @code{[mysqld]} section of
...@@ -23659,6 +23647,26 @@ Innobase cannot notice. In cases like this the timeout is useful to ...@@ -23659,6 +23647,26 @@ Innobase cannot notice. In cases like this the timeout is useful to
resolve the situation. resolve the situation.
@end multitable @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 (= 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 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 = of @strong{MySQL} for any table you have created with @code{TYPE =
...@@ -23713,7 +23721,7 @@ P.O.Box 800 ...@@ -23713,7 +23721,7 @@ P.O.Box 800
Finland Finland
@end example @end example
@node INNOBASE restrictions, , INNOBASE overview, INNOBASE @node INNOBASE restrictions, , Using Innobase tables, INNOBASE
@subsection Some restrictions on @code{INNOBASE} tables: @subsection Some restrictions on @code{INNOBASE} tables:
@itemize @bullet @itemize @bullet
...@@ -26464,7 +26472,7 @@ tables}. ...@@ -26464,7 +26472,7 @@ tables}.
* Replication Options:: Replication Options in my.cnf * Replication Options:: Replication Options in my.cnf
* Replication SQL:: SQL Commands related to replication * Replication SQL:: SQL Commands related to replication
* Replication FAQ:: Frequently Asked Questions about 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 @end menu
@node Replication Intro, Replication Implementation, Replication, Replication @node Replication Intro, Replication Implementation, Replication, Replication
...@@ -41891,6 +41899,9 @@ not yet 100 % confident in this code. ...@@ -41891,6 +41899,9 @@ not yet 100 % confident in this code.
@appendixsubsec Changes in release 3.23.34 @appendixsubsec Changes in release 3.23.34
@itemize @bullet @itemize @bullet
@item @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{REPLACE} will not replace a row that conflicts with an
@code{auto_increment} generated key. @code{auto_increment} generated key.
@item @item
...@@ -41923,9 +41934,6 @@ Fixed bug when replicating timestamps. ...@@ -41923,9 +41934,6 @@ Fixed bug when replicating timestamps.
@item @item
Fixed bug in bi-directonal replication. Fixed bug in bi-directonal replication.
@item @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 Fixed bug in @code{BDB} tables when using index on multi-part key where a
key part may be @code{NULL}. key part may be @code{NULL}.
@item @item
...@@ -1161,7 +1161,7 @@ New value of ebp failed sanity check, terminating backtrace!\n"); ...@@ -1161,7 +1161,7 @@ New value of ebp failed sanity check, terminating backtrace!\n");
++frame_count; ++frame_count;
} }
fprintf(stderr, "Stack trace successful, tryint to get some variables.\n\ fprintf(stderr, "Stack trace successful, trying to get some variables.\n\
Some pointers may be invalid and cause the dump to abort...\n"); Some pointers may be invalid and cause the dump to abort...\n");
heap_start = __bss_start; heap_start = __bss_start;
heap_end = (char*)sbrk(0); heap_end = (char*)sbrk(0);
......
...@@ -162,7 +162,7 @@ sh -c "PATH=\"${MYSQL_BUILD_PATH:-/bin:/usr/bin}\" \ ...@@ -162,7 +162,7 @@ sh -c "PATH=\"${MYSQL_BUILD_PATH:-/bin:/usr/bin}\" \
--includedir=/usr/include \ --includedir=/usr/include \
--mandir=/usr/man \ --mandir=/usr/man \
--with-berkeley-db \ --with-berkeley-db \
--with-innobase-db \ --with-innobase \
--with-comment=\"Official MySQL-Max RPM\"; --with-comment=\"Official MySQL-Max RPM\";
# Add this for more debugging support # Add this for more debugging support
# --with-debug # --with-debug
......
...@@ -161,7 +161,7 @@ sh -c "PATH=\"${MYSQL_BUILD_PATH:-/bin:/usr/bin}\" \ ...@@ -161,7 +161,7 @@ sh -c "PATH=\"${MYSQL_BUILD_PATH:-/bin:/usr/bin}\" \
--includedir=/usr/include \ --includedir=/usr/include \
--mandir=/usr/man \ --mandir=/usr/man \
--without-berkeley-db \ --without-berkeley-db \
--without-innobase-db \ --without-innobase \
--with-comment=\"Official MySQL RPM\"; --with-comment=\"Official MySQL RPM\";
# Add this for more debugging support # Add this for more debugging support
# --with-debug # --with-debug
......
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