Building MySQL Cluster From Source, then run NDB installer
- Download the source package and extract it.
# Download using your browser from http://www.mysql.com/downloads or from the following example mirror using wget # You can change the version to download, by editing the version numbers in below: "mysql-5.1.21-beta.tar.gz" wget http://dev.mysql.com/get/Downloads/MySQL-5.1/mysql-5.1.21-beta.tar.gz/from/http://mysql.dataphone.se/ # or for version 5.1.22-beta wget http://dev.mysql.com/get/Downloads/MySQL-5.1/mysql-5.1.22-beta.tar.gz/from/http://mysql.dataphone.se/ tar zxf mysql-5.1.21-beta.tar.gz cd mysql-5.1.21-beta
2a. Configure, make and install the binaries (Localhost only)
# change 'pentium' to amd/solaris/ppc for your architecture # You then need to change 'i686' to 'x86_64' or 'ppc' # /BUILD/compile-amd-max --prefix=$HOME/.mysql/mysql-5.1.21-beta-linux-x86_64-glibc23 ./BUILD/compile-pentium-max --prefix=$HOME/.mysql/mysql-5.1.21-beta-linux-i686-glibc23 make install
OR
2b. Configure, make and install the binaries (Distributed with root installation)
# change 'pentium' to alpha/solaris/ppc for your architecture # You then need to change 'i686' to 'x86_64' or 'ppc' # ./BUILD/compile-amd-max --prefix=/usr/local/mysql-5.1.21-beta-linux-x86_64-glibc23 ./BUILD/compile-pentium-max --prefix=/usr/local/mysql-5.1.21-beta-linux-i686-glibc23 make install
Move the mgm server and ndbd processes where they can be found by ndbinstaller.sh
cd ~/.mysql # OR cd /usr/local/ # move to mysql binaries cd mysql-5.1.21-beta-linux-i686-glibc23/ # copy or move ndbd, ndb_mgmd to bin directory cp libexec/* bin/
- Edit ndbinstaller.sh to update the minor version of NDB from 17 to 21
# This line replaces the minor version number '17' with '21' cat ndbinstaller.sh | sed 's/MYSQL_VERSION_REV=\"17\"/MYSQL_VERSION_REV=\"21\"/' | sed 's/scripts\/mysql_install_db/bin\/mysql_install_db/'> ndbinstaller_new.sh # This line replaces the minor version number '17' with '23' # cat ndbinstaller.sh | sed 's/MYSQL_VERSION_REV=\"17\"/MYSQL_VERSION_REV=\"23\"/' | sed 's/scripts\/mysql_install_db/bin\/mysql_install_db/'> ndbinstaller_new.sh mv -f ndbinstaller_new.sh ndbinstaller.sh chmod +x ndbinstaller.sh
