Beginning with MySQL 4.0, InnoDB
is enabled by
default, so the following information applies only to MySQL 3.23.
InnoDB
tables are included in the MySQL source
distribution starting from 3.23.34a and are activated in the
MySQL-Max binaries of the 3.23 series. For Windows, the MySQL-Max
binaries are included in the standard distribution.
If you have downloaded a binary version of MySQL that includes
support for InnoDB
, simply follow the
instructions of the MySQL manual for installing a binary version
of MySQL. If you have MySQL 3.23 installed, the simplest way to
install MySQL-Max is to replace the executable
mysqld server with the corresponding executable
from the MySQL-Max distribution. MySQL and MySQL-Max differ only
in the server executable. See Section 2.8, “Installing MySQL from tar.gz
Packages on Other
Unix-Like Systems”,
and Section 5.2, “The mysqld-max Extended MySQL Server”.
To compile the MySQL source code with InnoDB
support, download MySQL 3.23.34a or newer from
http://www.mysql.com/ and configure MySQL with the
--with-innodb
option. See
Section 2.9, “MySQL Installation Using a Source Distribution”.
To use InnoDB
tables with MySQL 3.23, you must
specify configuration parameters in the
[mysqld]
section of the
my.cnf
option file. On Windows, you can use
my.ini
instead. If you do not configure
InnoDB
in the option file,
InnoDB
does not start. (From MySQL 4.0 on,
InnoDB
uses default parameters if you do not
specify any. However, to get best performance, it is still
recommended that you use parameters appropriate for your system,
as discussed in Section 13.2.3, “InnoDB
Configuration”.)
In MySQL 3.23, you must specify at the minimum an
innodb_data_file_path
value to
configure the InnoDB
data files. For example,
to configure InnoDB
to use a single 500MB data
file, place the following setting in the
[mysqld]
section of your option file:
[mysqld] innodb_data_file_path=ibdata1:500M
InnoDB
creates the ibdata1
file in the MySQL data directory by default. To specify the
location explicitly, specify an
innodb_data_home_dir
setting. See
Section 13.2.3, “InnoDB
Configuration”.
User Comments
Remember, when you are moving from a NTST installation, you *must* create the ibdata & iblog directories that you specified manually. The error logs do explain this, but who reads the error logs? :)
InnoDB on Gentoo is not enabled unless you specify the "innodb" USE flag. Knowing this may save you from having to do an extra compilation.
Hola, la forma de activar las tablas innodb en mysql 3.23.54 me funciono de esta forma usando Red Hat Linux 9:
Primero me fui a /etc/my.cnf, y agregue algunas lineas que me faltaban en ese archivo de modo que al final quedara de esta manera:
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
# skip_innodb
innodb_data_file_path=idbdata1:200M:autoextend
set-variable = innodb_buffer_pool_size=80M
set-variable = innodb_additional_mem_pool_size=2M
set-variable = innodb_log_file_size=20M
set-variable = innodb_log_buffer_size=8M
innodb_flush_log_at_trx_commit=1
[mysql.server]
user=mysql
basedir=/var/lib
[safe_mysqld]
err-log=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
Espero que les sirva y si tienen preguntas me escriben a jaimemontoya@gmail.com, adios.
Add your own comment.