mysql cluster自动安装_MySQL Cluster 安装
下载软件包:
[root@mysql1 paul]# wget http://cdn.mysql.com/Downloads/MySQL-Cluster-7.2/mysql-cluster-gpl-7.2.10.tar.gz
配置前的规划
管理节点IP: 172.1.2.10 节点ID: id=1 Management Node
NDB数据节点1: 172.1.2.9 节点ID: id=2 Data Node
NDB数据节点2: 172.1.2.8 节点ID: id=3 Data Node
mysql节点2: 172.1.2.7 节点ID: id=4 SQL Node
所有机器关闭防火墙:
[root@mysql1 mysql-cluster-gpl-7.2.10]# /etc/init.d/iptables stop
Flushing firewall rules: [ OK ]
Setting chains to policy ACCEPT: mangle filter [ OK ]
Unloading iptables modules: [ OK ]
You have new mail in /var/spool/mail/root
[root@mysql1 mysql-cluster-gpl-7.2.10]#
系统版本:
[root@mysql1 paul]# uname -a
Linux mysql1.qyer.com 2.6.18-308.el5.028stab099.3 #1 SMP Wed Mar 7 15:56:00 MSK 2012 x86_64 x86_64 x86_64 GNU/Linux
You have new mail in /var/spool/mail/root
[root@mysql1 paul]#
安装管理节点与其它节点安装是一样的
:
[root@mysql1 paul]# tar -zxvf mysql-cluster-gpl-7.2.10.tar.gz
[root@mysql1 paul]# cd mysql-cluster-gpl-7.2.10
[root@mysql1 mysql-cluster-gpl-7.2.10]# cmake -DCMAKE_INSTALL_PREFIX=/Data/apps/mysql-5.5.12 -DWITH_INNOBASE_STORAGE_ENGINE=ON -DWITH_MYISAM_STORAGE_ENGINE=1 -DEXTRA_CHARSETS=all -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci
出错:
CMake Error at storage/ndb/cmake/ndb_require_variable.cmake:24 (MESSAGE):
The variable JAVA_RUNTIME is required to build NDB
Call Stack (most recent call first):
storage/ndb/CMakeLists.txt:247 (NDB_REQUIRE_VARIABLE)
解决:
[root@mysql1 mysql-cluster-gpl-7.2.10]# yum install java
[root@mysql1 mysql-cluster-gpl-7.2.10]# rm CMakeCache.txt
[root@mysql1 mysql-cluster-gpl-7.2.10]# java -version
java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.8) (rhel-1.35.1.11.8.el5_9-x86_64)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)
[root@mysql1 mysql-cluster-gpl-7.2.10]#
又一个错:
– Looking for MySQL include file my_default.h – not found
– Java_VERSION:
– Java_VERSION_STRING:
– JAVA_RUNTIME: /usr/bin/java
– JAVA_COMPILE: JAVA_COMPILE-NOTFOUND
– JAVA_ARCHIVE: JAVA_ARCHIVE-NOTFOUND
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:248 (NDB_REQUIRE_VARIABLE)
尝试解决:
下载一个jre:http://java.com/zh_CN/download/manual.jsp
出错:[root@mysql1 paul]# rpm -ivh jre-7u15-linux-i586.rpm
Preparing… ########################################### [100%]
1:jre ########################################### [100%]
Unpacking JAR files…
rt.jar…
Error: Could not open input file: /usr/java/jre1.7.0_15/lib/rt.pack
jsse.jar…
Error: Could not open input file: /usr/java/jre1.7.0_15/lib/jsse.pack
charsets.jar…
Error: Could not open input file: /usr/java/jre1.7.0_15/lib/charsets.pack
localedata.jar…
Error: Could not open input file: /usr/java/jre1.7.0_15/lib/ext/localedata.pack
plugin.jar…
Error: Could not open input file: /usr/java/jre1.7.0_15/lib/plugin.pack
javaws.jar…
Error: Could not open input file: /usr/java/jre1.7.0_15/lib/javaws.pack
deploy.jar…
Error: Could not open input file: /usr/java/jre1.7.0_15/lib/deploy.pack
[root@mysql1 paul]#
尝试下载JDK
[root@mysql1 paul]# chmod +x jdk-6u13-linux-i586.bin
[root@mysql1 paul]# ./jdk-6u13-linux-i586.bin
[root@mysql1 paul]# mv jdk1.6.0_13 /usr/local/
[root@mysql1 paul]# cd /etc/profile.d/
[root@mysql1 profile.d]# vim java.sh
#set java environment
JAVA_HOME=/usr/local/jdk1.6.0_13
CLASSPATH=.:$JAVA_HOME/lib/tools.jar
PATH=$JAVA_HOME/bin:$PATH
export JAVA_HOME CLASSPATH PATH
[root@mysql1 profile.d]# source java.sh
[root@mysql1 profile.d]# java -version
java version "1.6.0_13"
Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
Java HotSpot(TM) Server VM (build 11.3-b02, mixed mode)
[root@mysql1 profile.d]#
成功:
– Using gcc atomic builtins
– Looking for mach/mach_time.h
– Looking for mach/mach_time.h – not found
– Looking for srandomdev
– Looking for srandomdev – not found
– Looking for gethrvtime
– Looking for gethrvtime – not found
– Looking for memset
– Looking for memset – found
– Performing Test HAVE_FUNC_IN_CXX
– Performing Test HAVE_FUNC_IN_CXX – Success
– Performing Test HAVE_PEERCRED
– Performing Test HAVE_PEERCRED – Success
– Configuring done
– Generating done
– Build files have been written to: /home/paul/mysql-cluster-gpl-7.2.10
[root@mysql1 mysql-cluster-gpl-7.2.10]#
[root@mysql1 mysql-cluster-gpl-7.2.10]# make
[root@mysql1 mysql-cluster-gpl-7.2.10]# make install
———————————————————————————————————————–
NDB数据节点安装:
NDB数据节点1: 172.1.2.9 节点ID: id=2 Data Node
NDB数据节点2: 172.1.2.8 节点ID: id=3 Data Node
安装步骤和管理节点一样,也需要JAVA环境,
[root@mysql3 mysql-cluster-gpl-7.2.10]# yum install cmake gcc bison gcc-c++ ncurses-devel
[root@mysql02 mysql-cluster-gpl-7.2.10]# cmake -DCMAKE_INSTALL_PREFIX=/Data/apps/mysql-5.5.12 -DWITH_INNOBASE_STORAGE_ENGINE=ON -DWITH_MYISAM_STORAGE_ENGINE=1 -DEXTRA_CHARSETS=all -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci
———————————————————————————————————————–
SQL Node的安装:
[root@mysql4 mysql-cluster-gpl-7.2.10]# yum install cmake gcc bison gcc-c++ ncurses-devel
[root@mysql4 mysql-cluster-gpl-7.2.10]# cmake -DCMAKE_INSTALL_PREFIX=/Data/apps/mysql-5.5.12 -DWITH_INNOBASE_STORAGE_ENGINE=ON -DWITH_MYISAM_STORAGE_ENGINE=1 -DEXTRA_CHARSETS=all -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci
———————————————————————————————————————–
配置管理节点:
安装位于:
[root@mysql1 mysql-5.5.12]# pwd
/Data/apps/mysql-5.5.12
[root@mysql1 mysql-5.5.12]# ll
total 76
drwxr-xr-x 2 root root 4096 Feb 26 08:51 bin
-rw-r–r– 1 root root 17987 Dec 20 00:12 COPYING
drwxr-xr-x 4 root root 4096 Feb 26 08:51 data
drwxr-xr-x 2 root root 4096 Feb 26 08:51 docs
drwxr-xr-x 4 root root 4096 Feb 26 08:51 include
-rw-r–r– 1 root root 7605 Dec 20 00:12 INSTALL-BINARY
drwxr-xr-x 3 root root 4096 Feb 26 08:51 lib
drwxr-xr-x 4 root root 4096 Feb 26 08:51 man
drwxr-xr-x 10 root root 4096 Feb 26 08:51 mysql-test
-rw-r–r– 1 root root 2552 Dec 20 00:12 README
drwxr-xr-x 2 root root 4096 Feb 26 08:51 scripts
drwxr-xr-x 29 root root 4096 Feb 26 08:51 share
drwxr-xr-x 4 root root 4096 Feb 26 08:51 sql-bench
drwxr-xr-x 2 root root 4096 Feb 26 08:52 support-files
[root@mysql1 mysql-5.5.12]#
建立配置文件:
[root@mysql1 mysql-5.5.12]# mkdir cluster-conf
[root@mysql1 mysql-5.5.12]# cp /Data/apps/mysql-5.5.12/support-files/ndb-config-2-node.ini /Data/apps/mysql-5.5.12/cluster-conf/
You have new mail in /var/spool/mail/root
[root@mysql1 mysql-5.5.12]#
设置权限:
[root@mysql1 /]# chown mysql:mysql /Data/apps/mysql-5.5.12 –R
进入配置文件目录:
[root@mysql1 mysql-5.5.12]# cd /Data/apps/mysql-5.5.12/cluster-conf/
打开配置文件:
[root@mysql1 cluster-conf]# cat ndb-config-2-node.ini
# Copyright (c) 2006, 2010,Oracleand/or its affiliates. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
# Example Ndbcluster storage engine config file.
#
[ndbd default]
NoOfReplicas= 2
MaxNoOfConcurrentOperations= 10000
DataMemory= 80M
IndexMemory= 24M
TimeBetweenWatchDogCheck= 30000
[ndb_mgmd]
Id=1
HostName= 172.1.2.10
Datadir=/Data/apps/mysql-5.5.12/data
[ndbd]
Id= 2
HostName= 172.1.2.9
Datadir=/Data/apps/mysql-5.5.12/ndbdata
[ndbd]
Id= 3
HostName= 172.1.2.8
Datadir=/Data/apps/mysql-5.5.12/ndbdata
[mysqld]
Id= 4
HostName= 172.1.2.7
# choose an unused port number
# in this configuration 63132, 63133, and 63134
# will be used
[tcp default]
PortNumber= 63132
[root@mysql1 cluster-conf]#
同步进行数据节点进行相应配置
[root@mysql2 mysql-5.5.12]# mkdir -p /Data/apps/mysql-5.5.12/ndbdata
[root@mysql3 mysql-cluster-gpl-7.2.10]# mkdir -p /Data/apps/mysql-5.5.12/ndbdata
[root@mysql2 home]# chown mysql:mysql /Data/apps/mysql-5.5.12/ -R
[root@mysql3 mysql-cluster-gpl-7.2.10]# chown mysql:mysql /Data/apps/mysql-5.5.12/ –R
配置数据节点:
NDB数据节点1: 172.1.2.9 节点ID: id=2 Data Node
NDB数据节点2: 172.1.2.8 节点ID: id=3 Data Node
[root@mysql2 support-files]# cp /Data/apps/mysql-5.5.12/support-files/my-medium.cnf /etc/my.cnf
cp锛..????..etc/my.cnf?. y
[root@mysql2 support-files]#
[root@mysql2 ndbdata]# cat /etc/my.cnf
# Example MySQL config file for medium systems.
#
# This is for a system with little memory (32M – 64M) where MySQL plays
# an important part, or systems up to 128M where MySQL is used together with
# other programs (such as a web server)
#
# MySQL programs look for option files in a set of
# locations which depend on the deployment platform.
# You can copy this option file to one of those
# locations. For information about these locations, see:
# http://dev.mysql.com/doc/mysql/en/option-files.html
#
# In this file, you can use all long options that a program supports.
# If you want to know which options a program supports, run the program
# with the "–help" option.
# The following options will be passed to all MySQL clients
# Here follows entries for some specific programs
# The MySQL server
[mysqld]
Datadir=/Data/apps/mysql-5.5.12/ndbdata
ndbcluster
ndb-connectstring=172.1.2.10
[mysql_cluster]
ndb-connectstring=172.1.2.10
You have new mail in /var/spool/mail/root
[root@mysql2 ndbdata]#
[root@mysql3 apps]# cp /Data/apps/mysql-5.5.12/support-files/my-medium.cnf /etc/my.cnf
cp锛..????..etc/my.cnf?. y
[root@mysql3 apps]#
———————————————————————————————————————–
[root@mysql3 apps]# cat /etc/my.cnf
# Example MySQL config file for medium systems.
#
# This is for a system with little memory (32M – 64M) where MySQL plays
# an important part, or systems up to 128M where MySQL is used together with
# other programs (such as a web server)
#
# MySQL programs look for option files in a set of
# locations which depend on the deployment platform.
# You can copy this option file to one of those
# locations. For information about these locations, see:
# http://dev.mysql.com/doc/mysql/en/option-files.html
#
# In this file, you can use all long options that a program supports.
# If you want to know which options a program supports, run the program
# with the "–help" option.
# The following options will be passed to all MySQL clients
# The MySQL server
[mysqld]
Datadir=/Data/apps/mysql-5.5.12/ndbdata
ndbcluster
ndb-connectstring=172.1.2.10
[mysql_cluster]
ndb-connectstring=172.1.2.10
[root@mysql3 apps]#
———————————————————————————————————————–
数据节点:
[root@mysql4 mysql-5.5.12]# cp /Data/apps/mysql-5.5.12/support-files/my-medium.cnf /etc/my.cnf
cp锛..????..etc/my.cnf?. y
[root@mysql4 mysql-5.5.12]#
初始化数据库:
[root@mysql4 mysql-5.5.12]# /Data/apps/mysql-5.5.12/scripts/mysql_install_db –user=mysql –basedir=/Data/apps/mysql-5.5.12/ –datadir=/Data/apps/mysql-5.5.12/data/
Installing MySQL system tables…
ERROR: 1 Can’t create/write to file ‘/tmp/#sql_6dcc_0.MYI’ (Errcode: 13)
130226 10:32:07 [ERROR] Aborting
130226 10:32:07 [Note] /Data/apps/mysql-5.5.12//bin/mysqld: Shutdown complete
解决:
[root@mysql4 /]# chmod 777 /tmp/ –R
[root@mysql4 /]# /Data/apps/mysql-5.5.12/scripts/mysql_install_db –user=mysql –basedir=/Data/apps/mysql-5.5.12/ –datadir=/Data/apps/mysql-5.5.12/data/
Installing MySQL system tables…
OK
Filling help tables…
OK
To start mysqld at boot time you have to copy
启动管理节点:
[root@mysql1 mysql-5.5.12]# /Data/apps/mysql-5.5.12/bin/ndb_mgmd -f /Data/apps/mysql-5.5.12/cluster-conf/ndb-config-2-node.ini
MySQL Cluster Management Server mysql-5.5.29 ndb-7.2.10
2013-02-26 10:36:57 [MgmtSrvr] INFO — The default config directory ‘/Data/apps/mysql-5.5.12/mysql-cluster’ does not exist. Trying to create it…
2013-02-26 10:36:57 [MgmtSrvr] INFO — Sucessfully created config directory
2013-02-26 10:36:57 [MgmtSrvr] WARNING — at line 27: [MGM] Id is deprecated, use NodeId instead
2013-02-26 10:36:57 [MgmtSrvr] WARNING — at line 32: [DB] Id is deprecated, use NodeId instead
2013-02-26 10:36:57 [MgmtSrvr] WARNING — at line 37: [DB] Id is deprecated, use NodeId instead
2013-02-26 10:36:57 [MgmtSrvr] WARNING — at line 41: [API] Id is deprecated, use NodeId instead
2013-02-26 10:36:57 [MgmtSrvr] WARNING — at line 45: [API] Id is deprecated, use NodeId instead
2013-02-26 10:36:57 [MgmtSrvr] WARNING — at line 48: [API] Id is deprecated, use NodeId instead
2013-02-26 10:36:57 [MgmtSrvr] WARNING — at line 51: [API] Id is deprecated, use NodeId instead
2013-02-26 10:36:57 [MgmtSrvr] WARNING — at line 57: [tcp] PortNumber is deprecated
2013-02-26 10:36:57 [MgmtSrvr] WARNING — at line 27: [MGM] Id is deprecated, use NodeId instead
2013-02-26 10:36:57 [MgmtSrvr] WARNING — at line 32: [DB] Id is deprecated, use NodeId instead
2013-02-26 10:36:57 [MgmtSrvr] WARNING — at line 37: [DB] Id is deprecated, use NodeId instead
2013-02-26 10:36:57 [MgmtSrvr] WARNING — at line 41: [API] Id is deprecated, use NodeId instead
2013-02-26 10:36:57 [MgmtSrvr] WARNING — at line 45: [API] Id is deprecated, use NodeId instead
2013-02-26 10:36:57 [MgmtSrvr] WARNING — at line 48: [API] Id is deprecated, use NodeId instead
2013-02-26 10:36:57 [MgmtSrvr] WARNING — at line 51: [API] Id is deprecated, use NodeId instead
2013-02-26 10:36:57 [MgmtSrvr] WARNING — at line 57: [tcp] PortNumber is deprecated
在次启动就行了:
都显示not connected
[root@mysql1 mysql-cluster]# /Data/apps/mysql-5.5.12/bin/ndb_mgmd -f /Data/apps/mysql-5.5.12/cluster-conf/ndb-config-2-node.ini
MySQL Cluster Management Server mysql-5.5.29 ndb-7.2.10
[root@mysql1 mysql-cluster]# /Data/apps/mysql-5.5.12/bin/ndb_mgm
– NDB Cluster — Management Client —
ndb_mgm> show
Connected to Management Server at: localhost:1186
Cluster Configuration
———————
[ndbd(NDB)] 2 node(s)
id=2 (not connected, accepting connect from 172.1.2.9)
id=3 (not connected, accepting connect from 172.1.2.8)
[ndb_mgmd(MGM)] 1 node(s)
id=1 @172.1.2.10 (mysql-5.5.29 ndb-7.2.10)
[mysqld(API)] 4 node(s)
id=4 (not connected, accepting connect from 172.1.2.7)
i
d=5 (not connected, accepting connect from any host)
id=6 (not connected, accepting connect from any host)
id=7 (not connected, accepting connect from any host)
ndb_mgm>
启动数据节点:
NDB数据节点1: 172.1.2.9 节点ID: id=2 Data Node
NDB数据节点2: 172.1.2.8 节点ID: id=3 Data Node
[root@mysql2 ndbdata]# /Data/apps/mysql-5.5.12/bin/ndbd
2013-02-26 10:43:41 [ndbd] INFO — Angel connected to ’172.1.2.10:1186′
2013-02-26 10:43:41 [ndbd] INFO — Angel allocated nodeid: 2
[root@mysql2 ndbdata]#
[root@mysql3 apps]# /Data/apps/mysql-5.5.12/bin/ndbd
2013-02-26 10:44:57 [ndbd] INFO — Angel connected to ’172.1.2.10:1186′
2013-02-26 10:44:57 [ndbd] INFO — Angel allocated nodeid: 3
[root@mysql3 apps]#
启动SQL节点:
[root@mysql4 /]# /Data/apps/mysql-5.5.12/bin/mysqld_safe &
[1] 28179
[root@mysql4 /]# 130226 10:45:53 mysqld_safe Logging to ‘/Data/apps/mysql-5.5.12/data/mysql4.qyer.com.err’.
130226 10:45:53 mysqld_safe Starting mysqld daemon with databases from /Data/apps/mysql-5.5.12/data
[root@mysql4 /]# ps -ef |grep mysql
root 28179 3274 0 10:45 pts/0 00:00:00 /bin/sh /Data/apps/mysql-5.5.12/bin/mysqld_safe
mysql 28271 28179 2 10:45 pts/0 00:00:00 /Data/apps/mysql-5.5.12/bin/mysqld –basedir=/Data/apps/mysql-5.5.12 –datadir=/Data/apps/mysql-5.5.12/data –plugin-dir=/Data/apps/mysql-5.5.12/lib/plugin –user=mysql –log-error=/Data/apps/mysql-5.5.12/data/mysql4.qyer.com.err –pid-file=/Data/apps/mysql-5.5.12/data/mysql4.qyer.com.pid
root 28284 3274 0 10:46 pts/0 00:00:00 grep mysql
[root@mysql4 /]#
[root@mysql4 support-files]# cat /etc/my.cnf
# Example MySQL config file for medium systems.
#
# This is for a system with little memory (32M – 64M) where MySQL plays
# an important part, or systems up to 128M where MySQL is used together with
# other programs (such as a web server)
#
# MySQL programs look for option files in a set of
# locations which depend on the deployment platform.
# You can copy this option file to one of those
# locations. For information about these locations, see:
# http://dev.mysql.com/doc/mysql/en/option-files.html
#
# In this file, you can use all long options that a program supports.
# If you want to know which options a program supports, run the program
# with the "–help" option.
# The following options will be passed to all MySQL clients
[client]
#password = your_password
port = 3306
socket = /tmp/mysql.sock
# Here follows entries for some specific programs
# The MySQL server
[mysqld]
ndbcluster
ndb-connectstring=172.1.2.10
[mysql_cluster]
ndb-connectstring=172.1.2.10
port = 3306
socket = /tmp/mysql.sock
skip-external-locking
skip-grant-tables
key_buffer_size = 16M
max_allowed_packet = 1M
table_open_cache = 64
sort_buffer_size = 512K
net_buffer_length = 8K
read_buffer_size = 256K
read_rnd_buffer_size = 512K
myisam_sort_buffer_size = 8M
# Don’t listen on a TCP/IP port at all. This can be a security enhancement,
# if all processes that need to connect to mysqld run on the same host.
# All interaction with mysqld must be made via Unix sockets or named pipes.
# Note that using this option without enabling named pipes on Windows
# (via the "enable-named-pipe" option) will render mysqld useless!
#
#skip-networking
# Replication Master Server (default)
# binary logging is required for replication
log-bin=mysql-bin
# binary logging format – mixed recommended
binlog_format=mixed
# required unique id between 1 and 2^32 – 1
# defaults to 1 if master-host is not set
# but will not function as a master if omitted
server-id = 1
# Replication Slave (comment out master section to use this)
#
# To configure this host as a replication slave, you can choose between
# two methods :
#
# 1) Use the CHANGE MASTER TO command (fully described in our manual) –
# the syntax is:
#
# CHANGE MASTER TO MASTER_HOST=, MASTER_PORT=,
# MASTER_USER=, MASTER_PASSWORD= ;
#
# where you replace , , by quoted strings and
# by the master’s port number (3306 by default).
#
# Example:
#
# CHANGE MASTER TO MASTER_HOST=’125.564.12.1′, MASTER_PORT=3306,
# MASTER_USER=’joe’, MASTER_PASSWORD=’secret’;
#
# OR
#
# 2) Set the variables below. However, in case you choose this method, then
# start replication for the first time (even unsuccessfully, for example
# if you mistyped the password in master-password and the slave fails to
# connect), the slave will create a master.info file, and any later
# change in this file to the variables’ values below will be ignored and
# overridden by the content of the master.info file, unless you shutdown
# the slave server, delete master.info and restart the slaver server.
# For that reason, you may want to leave the lines below untouched
# (commented) and instead use CHANGE MASTER TO (see above)
#
# required unique id between 2 and 2^32 – 1
# (and different from the master)
# defaults to 2 if master-host is set
# but will not function as a slave if omitted
#server-id = 2
#
# The replication master for this slave – required
#master-host =
#
# The username the slave will use for authentication when connecting
# to the master – required
#master-user =
#
# The password the slave will authenticate with when connecting to
# the master – required
#master-password =
#
# The port the master is listening on.
# optional – defaults to 3306
#master-port =
#
# binary logging – not required for slaves, but recommended
#log-bin=mysql-bin
# Uncomment the following if you are using InnoDB tables
#innodb_data_home_dir = /Data/apps/mysql-5.5.12/data
#innodb_data_file_path = ibdata1:10M:autoextend
#innodb_log_group_home_dir = /Data/apps/mysql-5.5.12/data
# You can set .._buffer_pool_size up to 50 – 80 %
# of RAM but beware of setting memory usage too high
#innodb_buffer_pool_size = 16M
#innodb_additional_mem_pool_size = 2M
# Set .._log_file_size to 25 % of buffer pool size
#innodb_log_file_size = 5M
#innodb_log_buffer_size = 8M
#innodb_flush_log_at_trx_commit = 1
#innodb_lock_wait_timeout = 50
[mysqldump]
quick
max_allowed_packet = 16M
[mysql]
no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
#safe-updates
[myisamchk]
key_buffer_size = 20M
sort_buffer_size = 20M
read_buffer = 2M
write_buffer = 2M
[mysqlhotcopy]
interactive-timeout
[root@mysql4 support-files]#
———————————————————————————————————————-
在次查看管理节点:
ndb_mgm> show
Cluster Configuration
———————
[ndbd(NDB)] 2 node(s)
id=2 @172.1.2.9 (mysql-5.5.29 ndb-7.2.10, Nodegroup: 0, Master)
id=3 @172.1.2.8 (mysql-5.5.29 ndb-7.2.10, Nodegroup: 0)
[ndb_mgmd(MGM)] 1 node(s)
id=1 @172.1.2.10 (mysql-5.5.29 ndb-7.2.10)
[mysqld(API)] 4 node(s)
id=4 @172.1.2.7 (mysql-5.5.29 ndb-7.2.10)
id=5 (not connected, accepting connect from any host)
id=6 (not connected, accepting connect from any host)
id=7 (not connected, accepting connect from any host)
ndb_mgm>
MySQL Cluster 的详细介绍
:请点这里
MySQL Cluster 的下载地址
:请点这里
mysql cluster自动安装_MySQL Cluster 安装相关推荐
- windows mysql.tar安装_MySQL的安装
MySQL数据库服务的推荐安装方法是通过MySQL网站直接下载安装.这种方法在一些不同的平台上都有支持,仅在不同的平台上的安装细节上略有不同.然而,其主要步骤都一样.请注意你需要管理好权限设置以完成此 ...
- mysql客户端centos离线安装_mysql离线安装部署centos
# 1. Mysql单机安装 前提:切换用户命令 su root ## 1.1 卸载系统自带的mysql ### 1.1.1查看已安装的mysql ``` [root@localhost ~]# r ...
- mysql源代码安装_mysql源代码安装
下载: 选择[MySQL Community Server]并下载相应的版本 1.源代码包安装 1.1.安装编译环境 yum install -y cmake 1.2.创建运行用户 useradd m ...
- mysql非安装_mysql非安装版的装配
mysql非安装版的安装 mac的版本下载http://www.macupdate.com/app/mac/6915/mysql 参考http://www.blogjava.net/niumd/arc ...
- mysql tgz 安装_mysql的安装
分类: Mysql/postgreSQL CentOS6.3源码安装mysql-5.5.27 #mysql5.5以上使用cmake代替configure编译,首先需要安装cmake yum insta ...
- mysql怎么设置免安装_MySQL免安装配置步骤
此方式为直接解压压缩包安装MySQL 1.下载相关压缩包 下载后将压缩包解压至自己想要的文件路径即可 2.新建my.ini文件 在解压后的的根目录下新建一个my.ini文件 编辑文件内容为: [mys ...
- mysql 配置自动截断_MySql超长自动截断实例详解
MySql超长自动截断实例详解 小伙伴问到一个问题,为啥在项目中调用插入或者更新语句时超长的字无法自动截断,而在navicat中直接执行是可以自动截断的? 如下 CREATE TABLE `p_app ...
- mysql cluster 安装_MYSQL Cluster安装攻略
1. 为mysqld增加一个登录用户和组:--5个节点都要做此步骤 shell> groupadd mysql shell> useradd -g mysql mysql 2.安装管理节点 ...
- mysql 集群实践_MySQL Cluster集群探索与实践
MySQL集群是一种在无共享架构(SNA,Share Nothing Architecture)系统里应用内存数据库集群的技术.这种无共享的架构可以使得系统使用低廉的硬件获取高的可扩展性. MySQL ...
最新文章
- QT绘制嵌套的圆饼状图
- SAP Fiori Launchpad上的错误消息 - User Parameter /UI2/WD_TRKORR_CUST is not maintained
- Java第二次实验报告——Java面向对象程序设计
- jackson java网络接口_java~jackson实现接口的反序列化
- mysql2005本地连接_sql2005连接配置详细图解
- oracle11g导出空表
- solidwork 侵权 证据_电子商务法复习题
- 从王者荣耀看设计模式(五.组合模式)
- 工作中遇到的前后台联调的一些规则
- 29.yii2 RBAC
- Listen1:让你畅听全网音乐,支持多平台
- dell 恢复介质_在戴尔计算机上重置或重新安装Windows 10
- kerberos的 kdc_设置Kerberos版本5 KDC以使用AES加密
- 从零开始自制实现WebServer(十二)---- 剑指定时器小根堆处理 给EventLoop定时任务处理一个温暖的家
- 获得鸿蒙级抽奖,37鸿蒙天尊抽奖活动概率公示
- 华为R5和linux版什么区别,学生一族应该选什么笔记本?华为MateBook D告诉你
- golang版本管理gvm
- simulink/stateflow 纯电动+4档变速箱动力性经济性仿真模型 包含vcu控制及换档控制模型,可实现最高车速 最大爬坡度 加速时间,能耗续航仿真
- 小车高速怎么收费标准_2018小轿车高速路收费标准 私家车走高速怎么收费
- 软件测试有效性指标,评价软件测试的有效性
热门文章
- 共享文件夹的网络路径_Win10创建网络共享文件夹|设置局域网共享文件夹
- Python入门100题 | 第044题
- 在Windows环境下配置QT Creator 读取NC文件(NetCDP,C++接口)
- 搜索引擎solr系列---多字段匹配的实现方法
- 当我们在谈深度学习时,到底在谈论什么(一)--转
- Microservices Reference Architecture - with Spring Boot, Spring Cloud and Netflix OSS--转
- 连接mongodb,kafka异步处理代码
- 评分卡开发方法论scorecard
- R语言 scorecard包 评分卡
- DAPP(分布式应用),区块链新物种,程序员掘金新风口!