Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
cb3dfd82
Commit
cb3dfd82
authored
Mar 08, 2001
by
monty@donna.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed --with-innobase-db to --with-innobase
Updated manual about INNOBASE and BDB
parent
ce7181c8
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
70 additions
and
62 deletions
+70
-62
BUILD/SETUP.sh
BUILD/SETUP.sh
+1
-1
BUILD/compile-pentium
BUILD/compile-pentium
+1
-1
BUILD/compile-pentium-debug
BUILD/compile-pentium-debug
+1
-1
Build-tools/Do-all-build-steps
Build-tools/Do-all-build-steps
+1
-1
Docs/manual.texi
Docs/manual.texi
+63
-55
sql/mysqld.cc
sql/mysqld.cc
+1
-1
support-files/maxsql.spec.sh
support-files/maxsql.spec.sh
+1
-1
support-files/mysql.spec.sh
support-files/mysql.spec.sh
+1
-1
No files found.
BUILD/SETUP.sh
View file @
cb3dfd82
...
@@ -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.
...
...
BUILD/compile-pentium
View file @
cb3dfd82
...
@@ -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"
BUILD/compile-pentium-debug
View file @
cb3dfd82
...
@@ -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"
Build-tools/Do-all-build-steps
View file @
cb3dfd82
...
@@ -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
...
...
Docs/manual.texi
View file @
cb3dfd82
...
@@ -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,7 +724,7 @@ Problems and Common Errors
...
@@ -722,7 +724,7 @@ 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
...
@@ -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, I
NNOBASE restric
tions, INNOBASE, INNOBASE
@node INNOBASE overview, I
nnobase startup op
tions, 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
sql/mysqld.cc
View file @
cb3dfd82
...
@@ -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, tryin
t
to get some variables.
\n
\
fprintf
(
stderr
,
"Stack trace successful, tryin
g
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
);
...
...
support-files/maxsql.spec.sh
View file @
cb3dfd82
...
@@ -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
...
...
support-files/mysql.spec.sh
View file @
cb3dfd82
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment