Oracle 5.0 Reference Manual page 1554

Table of Contents

Advertisement

shell>
ln -s /usr/local/mysql-5.0.96-linux-i686-glibc23 /usr/local/mysql
3. Change location to the
databases:
shell>
cd mysql
shell>
scripts/mysql_install_db --user=mysql
4. Set the necessary permissions for the MySQL server and data directories:
shell>
chown -R root .
shell>
chown -R mysql data
shell>
chgrp -R mysql .
5. Copy the MySQL startup script to the appropriate directory, make it executable, and set it to start
when the operating system is booted up:
shell>
cp support-files/mysql.server /etc/rc.d/init.d/
shell>
chmod +x /etc/rc.d/init.d/mysql.server
shell>
chkconfig --add mysql.server
(The startup scripts directory may vary depending on your operating system and version—for
example, in some Linux distributions, it is /etc/init.d.)
Here we use Red Hat's
appropriate for this purpose on your platform, such as
Remember that the preceding steps must be repeated on each machine where an SQL node is to
reside.
Data nodes.
Installation of the data nodes does not require the
Cluster data node executable
Again, we assume that you have placed this archive in /var/tmp.
As system
(that is, after using sudo,
root
assuming the system administrator account's privileges), perform the following steps to install the data
node binaries on the data node hosts:
1. Change location to the
suitable directory such as /usr/local/bin:
shell>
cd /var/tmp
shell>
tar -zxvf mysql-5.0.96-linux-i686-glibc23.tar.gz
shell>
cd mysql-5.0.96-linux-i686-glibc23
shell>
cp bin/ndbd /usr/local/bin/ndbd
(You can safely delete the directory created by unpacking the downloaded archive, and the files it
contains, from
/var/tmp
2. Change location to the directory into which you copied the binary, and make it executable:
shell>
cd /usr/local/bin
shell>
chmod +x ndbd
The preceding steps should be repeated on each data node host.
Note
The data directory on each machine hosting a data node is
mysql/data. This piece of information is essential when configuring the
management node. (See
Cluster".)
Management nodes.
Only the MySQL Cluster management server (ndb_mgmd) is required; you most likely want to install
Installing MySQL Cluster on Linux
directory and run the supplied script for creating the system
mysql
for creating links to the startup scripts; use whatever means is
chkconfig
is required. This binary can also be found in the
ndbd
root, or your system's equivalent for temporarily
su
directory, and extract the
/var/tmp
once
has been copied to the executables directory.)
ndb_mgm
Section 17.2.2, "Initial Configuration of MySQL
Installation of the management node does not require the
1534
on Debian.
update-rc.d
binary. Only the MySQL
mysqld
binary from the archive into a
ndbd
/usr/local/
archive.
.tar.gz
binary.
mysqld

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents