Oracle 5.0 Reference Manual page 1252

Table of Contents

Advertisement

2. Wait until
database, and the main thread status of
can make a copy of the
Another method for making a clean copy of an
tool:
Backup
1. Use
InnoDB Hot Backup
2. Start a second
14.2.1.2. Using Raw Devices for the Shared Tablespace
You can use raw disk partitions as data files in the shared tablespace. By using a raw disk, you can
perform nonbuffered I/O on Windows and on some Unix systems without file system overhead. This
may improve performance, but you are advised to perform tests with and without raw partitions to verify
whether this is actually so on your system.
When you create a new data file, you must put the keyword
size in
innodb_data_file_path
specify. Note that 1MB in
means 1,000,000 bytes.
[mysqld]
innodb_data_home_dir=
innodb_data_file_path=/dev/hdd1:3Gnewraw;/dev/hdd2:2Gnewraw
The next time you start the server,
partition. However, do not create or change any
the server,
InnoDB
prevents users from modifying data when any partition with
After
InnoDB
specification to raw:
[mysqld]
innodb_data_home_dir=
innodb_data_file_path=/dev/hdd1:3Graw;/dev/hdd2:2Graw
Then restart the server and
On Windows, you can allocate a disk partition as a data file like this:
[mysqld]
innodb_data_home_dir=
innodb_data_file_path=//./D::10Gnewraw
The
corresponds to the Windows syntax of
//./
When you use a raw disk partition, be sure that it has permissions that enable read and write access
by the account used for running the MySQL server. For example, if you run the server as the
user, the partition must permit read and write access to mysql. If you run the server with the
[415]
memlock
14.2.1.3. Creating the
Suppose that you have installed MySQL and have edited your option file so that it contains the
necessary
InnoDB
directories you have specified for
access rights to those directories.
have enough disk space for the data and log files.
It is best to run the MySQL server
with
InnoDB
command prompt you see what
InnoDB
SHOW ENGINE INNODB STATUS
file.
.ibd
to back up the
server on the backup and let it clean up the
mysqld
is 1024 × 1024 bytes, whereas 1MB in disk specifications usually
InnoDB
InnoDB
reinitializes the partition and your changes are lost. (As a safety measure
has initialized the new partition, stop the server, change
InnoDB
option, the server must be run as root, so the partition must permit access to root.
Tablespace
InnoDB
configuration parameters. Before starting MySQL, you should verify that the
InnoDB
InnoDB
mysqld
enabled, not from
mysqld_safe
mysqld
Configuration
shows that there are no active transactions in the
is
InnoDB
Waiting for server
file is to use the commercial
.ibd
installation.
InnoDB
[1240]. The partition must be at least as large as the size that you
notices the
newraw
tables yet. Otherwise, when you next restart
InnoDB
permits changes to be made.
for accessing physical drives.
\\.\
data files and log files exist and that the MySQL server has
does not create directories, only files. Check also that you
from the command prompt when you first start the server
or as a Windows service. When you run from a
prints and what is happening. On Unix, just invoke mysqld.
1232
activity. Then you
InnoDB Hot
files in the backup.
.ibd
immediately after the data file
newraw
keyword and initializes the new
is specified.)
newraw
in the data file
newraw
InnoDB
mysql
--

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents