Source code compilation MySQLCluster7.2.15 installation process _ MySQL

Source: Internet
Author: User
Source code compilation MySQLCluster7.2.15 installation process bitsCN.com

1 Download the cluster tar.gz

Wget http://dev.mysql.com/get/Downloads/MySQL-Cluster-7.2/mysql-cluster-gpl-7.2.15.tar.gz

MySQL Cluster 7.2.15

Select Version: Select 7.2.15 from the drop-down list.

Select Platform: Select Source Code from the drop-down list.

Then select the following connection column:

Generic Linux (Architecture Independent ),

Compressed TAR Archive

(Mysql-cluster-gpl-7.2.15.tar.gz)

2 cp to other 3 host

Scp mysql-cluster-gpl-7.2.15.tar.gz 10.88.49.124:/root

3 install

Reference:

Http://dev.mysql.com/doc/refman/5.5/en/mysql-cluster-install-linux.html

Http://dev.mysql.com/doc/refman/5.5/en/mysql-cluster-install-linux-source.html

Mkdir-p/usr/local/mysql/bin

Mkdir-p/usr/local/mysql/ndbdata

4 cmake

Cmake cluster option, compile option parameter address: http://dev.mysql.com/doc/refman/5.5/en/source-configuration-options.html#cmake-mysql-cluster-options

Cmake-DCMAKE_INSTALL_PREFIX =/usr/local/mysqlcluster7.2.15/-rows = ON-demand = 1-DEXTRA_CHARSETS = all-DDEFAULT_CHARSET = utf8-DDEFAULT_COLLATION = utf8_general_ci

Time cmake-DCMAKE_INSTALL_PREFIX =/root/mysql-cluster-gpl-7.2.15/

-DMYSQL_UNIX_ADDR =/tmp/mysql-cluster.sock/

-DDEFAULT_CHARSET = utf8/

-DDEFAULT_COLLATION = utf8_general_ci/

-DEXTRA_CHARSETS = all/

-DWITH_EMBEDDED_SERVER = 0/

-DWITH_MYISAM_STORAGE_ENGINE = 1/

-DWITH_INNOBASE_STORAGE_ENGINE = 1/

-DWITH_MEMORY_STORAGE_ENGINE = 1/

-DWITH_BLACKHOLE_STORAGE_ENGINE = 1/

-DWITH_FEDERATED_STORAGE_ENGINE = 1/

-DWITH_PARTITION_STORAGE_ENGINE = 1/

-DWITH_NDBCLUSTER_STORAGE_ENGINE = 1/

-DENABLED_LOCAL_INFILE = 1/

-DMYSQL_USER = mysql/

-DWITH_DEBUG = 0/

-DWITH_SSL = yes

Error:

CMake Error at storage/ndb/cmake/ndb_require_variable.cmake: 24 (MESSAGE ):

CMake Error at storage/ndb/cmake/ndb_require_variable.cmake: 24 (MESSAGE ):

The variable JAVA_COMPILE is required to build NDB

Call Stack (most recent call first ):

Storage/ndb/CMakeLists.txt: 256 (NDB_REQUIRE_VARIABLE)

Time cmake. -DCMAKE_INSTALL_PREFIX =/usr/local/mysql-DMYSQL_DATADIR =/usr/local/mysql/ndbdata-encoding = 1-DMYSQL_UNIX_ADDR =/usr/local/mysql. sock-DMYSQL_USER = mysql-DDEFAULT_CHARSET = utf8-DDEFAULT_COLLATION = utf8_general_ci

Less java compiling environment

Prepare to install java: yum install java-y

After installing java, remember to delete the original mysql-cluster-gpl-7.2.15 Directory, re-tar-xvf decompress and then compile.

Or error:

CMake Error at storage/ndb/cmake/ndb_require_variable.cmake: 24 (MESSAGE ):

The variable JAVA_COMPILE is required to build NDB

Call Stack (most recent call first ):

Storage/ndb/CMakeLists.txt: 256 (NDB_REQUIRE_VARIABLE)

Uninstall and then reinstall

Yum-y remove java

Wget jdk-7u51-linux-x64.rpm

Rpm-ivh jdk-7u51-linux-x64.rpm

The following error is reported:

CMake Error at storage/ndb/cmake/ndb_require_variable.cmake: 24 (MESSAGE ):

The variable JNI_INCLUDE_DIRS is required to build NDB

Call Stack (most recent call first ):

Storage/ndb/CMakeLists.txt: 276 (NDB_REQUIRE_VARIABLE)

It has been stuck here for a long time. google gets a clear solution as follows:

Http://www.techsiteanalytics.com/index.php/tag/ndb

But I cannot download the jre, because the JDK installation process has jre by default, so I uninstalled the jdk version again. The same error is reported from 6 to jdk7. I have seen that everyone is installing rpm packages. if few source code is compiled, I will try again. this problem remains to be resolved.

4 refer:

Http://www.techsiteanalytics.com/index.php/tag/ndb

BitsCN.com

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.