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
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.
...
...
BUILD/compile-pentium
View file @
cb3dfd82
...
...
@@ -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
View file @
cb3dfd82
...
...
@@ -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
View file @
cb3dfd82
...
...
@@ -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
...
...
Docs/manual.texi
View file @
cb3dfd82
...
...
@@ -512,6 +512,8 @@ BDB or Berkeley_db Tables
INNOBASE Tables
* INNOBASE overview::
* Innobase startup options::
* Using Innobase tables::
* INNOBASE restrictions::
MySQL Tutorial
...
...
@@ -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
...
...
@@ -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
...
...
@@ -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
...
...
@@ -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.
...
...
@@ -23528,14 +23514,30 @@ not trivial).
@menu
* INNOBASE overview::
* Innobase startup options::
* Using Innobase tables::
* INNOBASE restrictions::
@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
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
...
...
@@ -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
...
...
@@ -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 =
...
...
@@ -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
...
...
@@ -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
...
...
@@ -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
...
...
@@ -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
sql/mysqld.cc
View file @
cb3dfd82
...
...
@@ -1161,7 +1161,7 @@ New value of ebp failed sanity check, terminating backtrace!\n");
++
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
"
);
heap_start
=
__bss_start
;
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}\" \
--includedir=/usr/include
\
--mandir=/usr/man
\
--with-berkeley-db
\
--with-innobase
-db
\
--with-innobase
\
--with-comment=
\"
Official MySQL-Max RPM
\"
;
# Add this for more debugging support
# --with-debug
...
...
support-files/mysql.spec.sh
View file @
cb3dfd82
...
...
@@ -161,7 +161,7 @@ sh -c "PATH=\"${MYSQL_BUILD_PATH:-/bin:/usr/bin}\" \
--includedir=/usr/include
\
--mandir=/usr/man
\
--without-berkeley-db
\
--without-innobase
-db
\
--without-innobase
\
--with-comment=
\"
Official MySQL RPM
\"
;
# Add this for more debugging support
# --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