Oracle 5.0 Reference Manual page 1249

Table of Contents

Advertisement

[mysqld]
# You can write your other MySQL server options here
# ...
# Data files must be able to hold your data and indexes.
# Make sure that you have enough free disk space.
innodb_data_file_path = ibdata1:10M:autoextend
#
# Set buffer pool size to 50-80% of your computer's memory
innodb_buffer_pool_size=256M
innodb_additional_mem_pool_size=20M
#
# Set the log file size to about 25% of the buffer pool size
innodb_log_file_size=64M
innodb_log_buffer_size=8M
#
innodb_flush_log_at_trx_commit=1
Note that data files must be less than 2GB in some file systems. The combined size of the log files
must be less than 4GB. The combined size of data files must be at least 10MB.
When you create an
InnoDB
from the command prompt.
screen, so you can see what is happening. For example, on Windows, if
\Program Files\MySQL\MySQL Server
C:\>
"C:\Program Files\MySQL\MySQL Server 5.0\bin\mysqld" --console
If you do not send server output to the screen, check the server's error log to see what
during the startup process.
For an example of what the information displayed by
"Creating the
Tablespace".
InnoDB
You can place
InnoDB
starts. The locations for option files are described in
If you installed MySQL on Windows using the installation and configuration wizards, the option file
is the
file located in your MySQL installation directory. See
my.ini
MySQL Server Instance Configuration
If your PC uses a boot loader where the
file in your Windows directory (typically C:\WINDOWS). You can use the
my.ini
command prompt in a console window to print the value of WINDIR:
C:\>
SET WINDIR
windir=C:\WINDOWS
To make sure that
mysqld
option as the first option on the command line when starting the server:
mysqld
--defaults-file=your_path_to_my_cnf
An advanced
my.cnf
three 60GB hard disks at directory paths /,
configuration parameters in
[mysqld]
# You can write your other MySQL server options here
# ...
innodb_data_home_dir =
#
# Data files must be able to hold your data and indexes
innodb_data_file_path = /ibdata/ibdata1:2000M;/dr2/ibdata/ibdata2:2000M:autoextend
#
# Set buffer pool size to 50-80% of your computer's memory,
# but make sure on Linux x86 total memory usage is < 2GB
innodb_buffer_pool_size=1G
innodb_additional_mem_pool_size=20M
Configuration
InnoDB
tablespace for the first time, it is best that you start the MySQL server
then prints the information about the database creation to the
InnoDB
5.0\bin, you can start it like this:
options in the
[mysqld]
Wizard".
drive is not the boot drive, your only option is to use the
C:
reads options only from a specific file, use the
example. Suppose that you have a Linux computer with 2GB RAM and
/dr2
for InnoDB.
my.cnf
1229
should look like, see
InnoDB
group of any option file that your server reads when it
Section 4.2.3.3, "Using Option
Section 2.10.3.1, "Starting the
and /dr3. The following example shows possible
is located in
mysqld
C:
InnoDB
Section 14.2.1.3,
Files".
command at the
SET
[240]
--defaults-file
prints

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents