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
f6e0c1a4
Commit
f6e0c1a4
authored
Jul 03, 2002
by
heikki@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
manual.texi:
Clarify the meaning of innodb_data_home_dir and innodb_data_file_path in the manual
parent
26f4536f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
15 deletions
+27
-15
Docs/manual.texi
Docs/manual.texi
+27
-15
No files found.
Docs/manual.texi
View file @
f6e0c1a4
...
@@ -38139,7 +38139,13 @@ in the @code{[mysqld]} section of
...
@@ -38139,7 +38139,13 @@ in the @code{[mysqld]} section of
the configuration file @file{my.cnf}, or on Windows optionally in
the configuration file @file{my.cnf}, or on Windows optionally in
@file{my.ini}.
@file{my.ini}.
At the minimum, in 3.23 you must specify @code{innodb_data_file_path}.
At the minimum, in 3.23 you must specify @code{innodb_data_file_path}
where you specify the names and the sizes of datafiles. If you do
not mention @code{innodb_data_home_dir} in @file{my.cnf} the default
is to create these files to the @code{datadir} of MySQL.
If you specify @code{innodb_data_home_dir} as an empty string,
then you can give absolute paths to your data files in
@code{innodb_data_file_path}.
In MySQL-4.0 you do not need to specify even
In MySQL-4.0 you do not need to specify even
@code{innodb_data_file_path}: the default for it is to create
@code{innodb_data_file_path}: the default for it is to create
an auto-extending 16 MB file @file{ibdata1} to the @code{datadir}
an auto-extending 16 MB file @file{ibdata1} to the @code{datadir}
...
@@ -38161,6 +38167,7 @@ If you specify the last datafile with the autoextend option, InnoDB
...
@@ -38161,6 +38167,7 @@ If you specify the last datafile with the autoextend option, InnoDB
will extend the last datafile if it runs out of free space in the
will extend the last datafile if it runs out of free space in the
tablespace. The increment is 8 MB at a time. An example:
tablespace. The increment is 8 MB at a time. An example:
@example
@example
innodb_data_home_dir =
innodb_data_file_path = /ibdata/ibdata1:100M:autoextend
innodb_data_file_path = /ibdata/ibdata1:100M:autoextend
@end example
@end example
instructs InnoDB to create just a single datafile whose initial size is
instructs InnoDB to create just a single datafile whose initial size is
...
@@ -38173,12 +38180,14 @@ the rounded size of @file{ibdata1} explicitly in
...
@@ -38173,12 +38180,14 @@ the rounded size of @file{ibdata1} explicitly in
@code{innodb_data_file_path}.
@code{innodb_data_file_path}.
After that you can add another datafile:
After that you can add another datafile:
@example
@example
innodb_data_home_dir =
innodb_data_file_path = /ibdata/ibdata1:988M;/disk2/ibdata2:50M:autoextend
innodb_data_file_path = /ibdata/ibdata1:988M;/disk2/ibdata2:50M:autoextend
@end example
@end example
Be cautious on filesystems where the maximum file-size is 2 GB!
Be cautious on filesystems where the maximum file-size is 2 GB!
InnoDB is not aware of the OS maximum file-size. On those filesystems
InnoDB is not aware of the OS maximum file-size. On those filesystems
you might want to specify the max size for the datafile:
you might want to specify the max size for the datafile:
@example
@example
innodb_data_home_dir =
innodb_data_file_path = /ibdata/ibdata1:100M:autoextend:max:2000M
innodb_data_file_path = /ibdata/ibdata1:100M:autoextend:max:2000M
@end example
@end example
...
@@ -38230,10 +38239,14 @@ some filesystems! The combined size of datafiles
...
@@ -38230,10 +38239,14 @@ some filesystems! The combined size of datafiles
must be >= 10 MB.
must be >= 10 MB.
The combined size of the log files must be < 4G.
The combined size of the log files must be < 4G.
If you do not specify @code{innodb_data_home_dir}, then
InnoDB forms the directory path to a datafile by textually
the default is that InnoDB creates its datafiles to the
catenating @code{innodb_data_home_dir} to a datafile name or
@code{datadir} of MySQL. Then you cannot use absolute
path in @code{innodb_data_file_path},
file paths in @code{innodb_data_file_path}.
adding a possible slash or backslash in between if needed.
If the keyword @code{innodb_data_home_dir} is not mentioned
in @file{my.cnf} at all, the default for it is the 'dot'
directory @file{./}
which means the @code{datadir} of MySQL.
When you the first time create an InnoDB database, it
When you the first time create an InnoDB database, it
is best that you start the MySQL server from the command
is best that you start the MySQL server from the command
...
@@ -38292,10 +38305,10 @@ InnoDB:
...
@@ -38292,10 +38305,10 @@ InnoDB:
# You can write your other MySQL server options here
# You can write your other MySQL server options here
# ...
# ...
#
#
innodb_data_home_dir =
/
innodb_data_home_dir =
# Datafiles must be able to
# Datafiles must be able to
# hold your data and indexes
# hold your data and indexes
innodb_data_file_path =
ibdata/ibdata1:2000M;
dr2/ibdata/ibdata2:2000M
innodb_data_file_path =
/ibdata/ibdata1:2000M;/
dr2/ibdata/ibdata2:2000M
# Set buffer pool size to 50 - 80%
# Set buffer pool size to 50 - 80%
# of your computer's memory, but
# of your computer's memory, but
# make sure on Linux x86 total
# make sure on Linux x86 total
...
@@ -38324,11 +38337,7 @@ set-variable = innodb_lock_wait_timeout=50
...
@@ -38324,11 +38337,7 @@ set-variable = innodb_lock_wait_timeout=50
@end example
@end example
Note that we have placed the two datafiles on different disks.
Note that we have placed the two datafiles on different disks.
The reason for the name @code{innodb_data_file_path} is that
InnoDB will fill the tablespace
you can also specify paths to your datafiles, and
@code{innodb_data_home_dir} is just textually catenated
before your datafile paths, adding a possible slash or
backslash in between. InnoDB will fill the tablespace
formed by the datafiles from bottom up. In some cases it will
formed by the datafiles from bottom up. In some cases it will
improve the performance of the database if all data is not placed
improve the performance of the database if all data is not placed
on the same physical disk. Putting log files on a different disk from
on the same physical disk. Putting log files on a different disk from
...
@@ -38377,7 +38386,10 @@ The meanings of the configuration parameters are the following:
...
@@ -38377,7 +38386,10 @@ The meanings of the configuration parameters are the following:
@item @strong{Option} @tab @strong{Description}
@item @strong{Option} @tab @strong{Description}
@item @code{innodb_data_home_dir} @tab
@item @code{innodb_data_home_dir} @tab
The common part of the directory path for all InnoDB datafiles.
The common part of the directory path for all InnoDB datafiles.
The default for this parameter is the @code{datadir} of MySQL.
If you do not mentioned this option in @file{my.cnf}
the default is the @code{datadir} of MySQL.
You can specify this also as an empty string, in which case you
can use absolute file paths in @code{innodb_data_file_path}.
@item @code{innodb_data_file_path} @tab
@item @code{innodb_data_file_path} @tab
Paths to individual datafiles and their sizes. The full directory path
Paths to individual datafiles and their sizes. The full directory path
to each datafile is acquired by concatenating innodb_data_home_dir to
to each datafile is acquired by concatenating innodb_data_home_dir to
...
@@ -38408,8 +38420,8 @@ slower in case of a crash. The combined size of log files must
...
@@ -38408,8 +38420,8 @@ slower in case of a crash. The combined size of log files must
be < 4 GB on 32-bit computers.
be < 4 GB on 32-bit computers.
@item @code{innodb_log_buffer_size} @tab
@item @code{innodb_log_buffer_size} @tab
The size of the buffer which InnoDB uses to write log to the log files
The size of the buffer which InnoDB uses to write log to the log files
on disk. Sensible values range from 1M to
half the combined size of log
on disk. Sensible values range from 1M to
8M.
files.
A big log buffer allows large transactions to run without a need
A big log buffer allows large transactions to run without a need
to write the log to disk until the transaction commit. Thus, if you have
to write the log to disk until the transaction commit. Thus, if you have
big transactions, making the log buffer big will save disk I/O.
big transactions, making the log buffer big will save disk I/O.
@item @code{innodb_flush_log_at_trx_commit} @tab
@item @code{innodb_flush_log_at_trx_commit} @tab
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