Update: As explained in “MySQL Cluster 7.0.7 binaries released” you can now download the compiled binaries for your particular platform. I am going to leave this entry in place as it will hopefully be useful for future releases but for 7.0.7 you should refer to that other post.
You’ll need to wait for the pre-built binaries but you can now download the source code and build it for yourself to get started. This article explains where to get it and how to build, install and test the installation.
In this example, I’ve used Ubuntu.
The first step is to download the compressed tar ball containing the source code by pointing your browser to ftp://ftp.mysql.com/pub/mysql/download/cluster_telco/mysql-5.1.35-ndb-7.0.7/mysql-cluster-gpl-7.0.7.tar.gz
Then you need to extract the code and then build and install the software:
billy@billy-laptop:~/mysql$ tar -xzf mysql-cluster-gpl-7.0.7.tar.gz billy@billy-laptop:~/mysql$ mv mysql-cluster-gpl-7.0.7 7_0_7 billy@billy-laptop:~/mysql$ cd 7_0_7 billy@billy-laptop:~/mysql/7_0_7$ autoreconf --force --install billy@billy-laptop:~/mysql/7_0_7$ ./configure --with-plugins=max --prefix=/usr/local/mysql billy@billy-laptop:~/mysql/7_0_7$ make billy@billy-laptop:~/mysql/7_0_7$ sudo make install billy@billy-laptop:~/mysql/7_0_7$ sudo cp storage/ndb/src/kernel/ndbd /usr/local/mysql/bin billy@billy-laptop:~/mysql/7_0_7$ sudo cp storage/ndb/src/kernel/ndbmtd /usr/local/mysql/bin billy@billy-laptop:~/mysql/7_0_7$ sudo cp storage/ndb/src/mgmsrv/ndb_mgmd /usr/local/mysql/bin billy@billy-laptop:~/mysql/7_0_7$ cd /usr/local/mysql/mysql-test billy@billy-laptop:/usr/local/mysql/mysql-test$ sudo chmod 777 . billy@billy-laptop:/usr/local/mysql/mysql-test$ sudo chmod 777 *
You can then test that the installation has been successful:
billy@billy-laptop:/usr/local/mysql/mysql-test$ ./mtr ndb_basic Logging: ./mtr ndb_basic 090902 18:17:43 [Warning] Forcing shutdown of 2 plugins MySQL Version 5.1.35 Checking supported features... - using ndbcluster when necessary, mysqld supports it - skipping SSL, mysqld not compiled with SSL - multi threaded ndbd, will be used "round robin" Collecting tests... vardir: /usr/local/mysql/mysql-test/var Removing old var directory... Creating var directory '/usr/local/mysql/mysql-test/var'... Installing system database... Using server port 43993 ============================================================================== TEST RESULT TIME (ms) ------------------------------------------------------------ worker[1] Using MTR_BUILD_THREAD 250, with reserved ports 12500..12509 ndb.ndb_basic [ pass ] 73661 ------------------------------------------------------------ The servers were restarted 0 times Spent 73.661 of 143 seconds executing testcases All 1 tests were successful.
Following this you can configure and use the software as normal (refer to Creating a simple Cluster on a single LINUX host).
The annotated header information has already been updated in the NDB API Docs section.
A description of all of the changes (fixes) that have gone into MySQL Cluster 7.0.7 (compared to 7.0.6) can be found in the MySQL Cluster 7.0.7 Change Log.
[…] You can either wait for the binaries to be released or if you’re in a rush then you can find instructions on building the binaries for yourself in the earlier article: “MySQL Cluster 7.0.7 source released“. […]
[…] You can either wait for the binaries to be released or if you’re in a rush then you can find instructions on building the binaries for yourself in the earlier article: “MySQL Cluster 7.0.7 source released“. […]
[…] You can either wait for the binaries to be released or if you’re in a rush then you can find instructions on building the binaries for yourself in the earlier article: “MySQL Cluster 7.0.7 source released“. […]
[…] You can either wait for the binaries to be released or if you’re in a rush then you can find instructions on building the binaries for yourself in the earlier article: “MySQL Cluster 7.0.7 source released“. […]
Halo..
my name is alex, and i want to ask about installing mysql cluster 7.0.* to ubuntu, i am already download the package tarbal, extract it and when io am tryin to reconfigure it there was error as follows :
alex@ubuntu:~/Desktop/7_0_7$ autoreconf –force –install
Can’t exec “libtoolize”: No such file or directory at /usr/bin/autoreconf2.50 line 188.
Use of uninitialized value $libtoolize in pattern match (m//) at /usr/bin/autoreconf2.50 line 188.
configure.in:1891: warning: AC_CACHE_VAL(mysql_use_mysys_new, …): suspicious cache-id, must contain _cv_ to be cached
../../lib/autoconf/general.m4:1974: AC_CACHE_VAL is expanded from…
../../lib/autoconf/general.m4:1994: AC_CACHE_CHECK is expanded from…
config/ac-macros/misc.m4:599: MYSQL_NEEDS_MYSYS_NEW is expanded from…
configure.in:1891: the top level
configure.in:2490: warning: AC_CACHE_VAL(have_ndbmtd_asm, …): suspicious cache-id, must contain _cv_ to be cached
configure.in:2490: the top level
configure.in:1891: warning: AC_CACHE_VAL(mysql_use_mysys_new, …): suspicious cache-id, must contain _cv_ to be cached
../../lib/autoconf/general.m4:1974: AC_CACHE_VAL is expanded from…
../../lib/autoconf/general.m4:1994: AC_CACHE_CHECK is expanded from…
config/ac-macros/misc.m4:599: MYSQL_NEEDS_MYSYS_NEW is expanded from…
configure.in:1891: the top level
configure.in:2490: warning: AC_CACHE_VAL(have_ndbmtd_asm, …): suspicious cache-id, must contain _cv_ to be cached
configure.in:2490: the top level
configure.in:1891: warning: AC_CACHE_VAL(mysql_use_mysys_new, …): suspicious cache-id, must contain _cv_ to be cached
../../lib/autoconf/general.m4:1974: AC_CACHE_VAL is expanded from…
../../lib/autoconf/general.m4:1994: AC_CACHE_CHECK is expanded from…
config/ac-macros/misc.m4:599: MYSQL_NEEDS_MYSYS_NEW is expanded from…
configure.in:1891: the top level
configure.in:2490: warning: AC_CACHE_VAL(have_ndbmtd_asm, …): suspicious cache-id, must contain _cv_ to be cached
configure.in:2490: the top level
configure.in:238: error: possibly undefined macro: AC_PROG_LIBTOOL
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
autoreconf2.50: /usr/bin/autoconf failed with exit status: 1
could u help me with this problem..?
i am using ubuntu 9.0.4 jaunty
Regards
Alex
Hi Alex,
try installing the libtool package first.
Andrew.
hi andrew..
thx for your advice mysql test already running exactly the same as the tutorial, except the port :), i am using lampp package (from Xampp) as a http server, and php language to developing program using clustering method, i dun use the mysql from the package, so a start each package individually,the question is how to run mysql cluster , that make it connect to the lampp package..?
best regards
alex
[…] You can either wait for the binaries to be released or if you’re in a rush then you can find instructions on building the binaries for yourself in the earlier article: “MySQL Cluster 7.0.7 source released“. […]
[…] You can either wait for the binaries to be released or if you’re in a rush then you can find instructions on building the binaries for yourself in the earlier article: “MySQL Cluster 7.0.7 source released“. […]
[…] You can either wait for the binaries to be released or if you’re in a rush then you can find instructions on building the binaries for yourself in the earlier article: “MySQL Cluster 7.0.7 source released“. […]
[…] You can either wait for the binaries to be released or if you’re in a rush then you can find instructions on building the binaries for yourself in the earlier article: “MySQL Cluster 7.0.7 source released“. […]
[…] You can either wait for the binaries to be released or if you’re in a rush then you can find instructions on building the binaries for yourself in the earlier article: “MySQL Cluster 7.0.7 source released“. […]
[…] You can either wait for the binaries to be released or if you’re in a rush then you can find instructions on building the binaries for yourself in the earlier article: “MySQL Cluster 7.0.7 source released“. […]
[…] and installed it. If you’re not comfortable with that then you can find instructions in this earlier blog or if you’re used to using the tools from severalnines then check out the SPJ instructions on […]