<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Problem regarding mysql cluster in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/problem-regarding-mysql-cluster/m-p/4705741#M42573</link>
    <description>Hi All, &lt;BR /&gt;I have implemented mysql cluster with configuration(1 management node, 4 data node, and 2 sql nodes).I stuck with a problem where my sql node is running but showing not connected on management client. &lt;BR /&gt;I have implemented it before with same configuration but now it is not working. Please help me out to resolve this. Thanks in advance. &lt;BR /&gt;==== ndb_mgm -e show ==== &lt;BR /&gt;Connected to Management Server at: 192.168.38.87:1186 &lt;BR /&gt;Cluster Configuration &lt;BR /&gt;--------------------- &lt;BR /&gt;[ndbd(NDB)] 4 node(s) &lt;BR /&gt;id=2 @192.168.38.84 (mysql-5.1.35 ndb-7.0.7, starting, Nodegroup: 0, Master) &lt;BR /&gt;id=3 @192.168.38.85 (mysql-5.1.35 ndb-7.0.7, starting, Nodegroup: 0) &lt;BR /&gt;id=4 @192.168.38.86 (mysql-5.1.35 ndb-7.0.7, starting, Nodegroup: 0) &lt;BR /&gt;id=5 @192.168.144.114 (mysql-5.1.35 ndb-7.0.7, starting, Nodegroup: 0) &lt;BR /&gt;&lt;BR /&gt;[ndb_mgmd(MGM)] 1 node(s) &lt;BR /&gt;id=1 @192.168.38.87 (mysql-5.1.35 ndb-7.0.7) &lt;BR /&gt;&lt;BR /&gt;[mysqld(API)] 2 node(s) &lt;BR /&gt;id=6 (not connected, accepting connect from 192.168.38.87) &lt;BR /&gt;id=7 (not connected, accepting connect from 192.168.38.70) &lt;BR /&gt;&lt;BR /&gt;===== My configuration are as follows: ===== &lt;BR /&gt;Management node: 192.168.38.87 &lt;BR /&gt;DataNode1: 192.168.38.84 &lt;BR /&gt;DataNode2: 192.168.38.85 &lt;BR /&gt;DataNode3: 192.168.38.86 &lt;BR /&gt;DataNode4: 192.168.144.114 &lt;BR /&gt;SQLNode1: 192.168.38.87 &lt;BR /&gt;SQLNode2: 192.168.38.70 &lt;BR /&gt;&lt;BR /&gt;====== config.ini ===== &lt;BR /&gt;#options affecting ndbd processes on all data nodes: &lt;BR /&gt;[ndbd default] &lt;BR /&gt;NoOfReplicas=2 # Number of replicas &lt;BR /&gt;DataMemory=1332M # ~1.3GB # How much memory to allocate for data storage &lt;BR /&gt;IndexMemory=300M # How much memory to allocate for index storage &lt;BR /&gt;# For DataMemory and IndexMemory, we have used the &lt;BR /&gt;# default values. &lt;BR /&gt;TimeBetweenLocalCheckpoints=20 &lt;BR /&gt;# TCP/IP options: &lt;BR /&gt;[tcp default] &lt;BR /&gt;portnumber=2202 # This the default; however, you can use any port that is free &lt;BR /&gt;# for all the hosts in the cluster &lt;BR /&gt;# Note: It is recommended that you do not specify the port &lt;BR /&gt;# number at all and allow the default value to be used instead &lt;BR /&gt;&lt;BR /&gt;# Management process options SQL1: &lt;BR /&gt;[ndb_mgmd] &lt;BR /&gt;hostname=192.168.38.87 # Hostname or IP address of management node &lt;BR /&gt;datadir=/var/lib/mysql-cluster # Directory for management node log files &lt;BR /&gt;&lt;BR /&gt;# Options for data node DN1: &lt;BR /&gt;[ndbd] &lt;BR /&gt;# (one [ndbd] section per data node) &lt;BR /&gt;hostname=192.168.38.84 # Hostname or IP address &lt;BR /&gt;datadir=/var/lib/mysql-cluster # Directory for this data node's data files &lt;BR /&gt;id=2 &lt;BR /&gt;&lt;BR /&gt;# Options for data node DN2: &lt;BR /&gt;[ndbd] &lt;BR /&gt;hostname=192.168.38.85 # Hostname or IP address &lt;BR /&gt;datadir=/var/lib/mysql-cluster # Directory for this data node's data files &lt;BR /&gt;id=3 &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# Options for data node DN3: &lt;BR /&gt;[ndbd] &lt;BR /&gt;hostname=192.168.38.86 # Hostname or IP address &lt;BR /&gt;datadir=/var/lib/mysql-cluster # Directory for this data node's data files &lt;BR /&gt;id=4 &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# Options for data node DN4: &lt;BR /&gt;[ndbd] &lt;BR /&gt;hostname=192.168.144.114 # Hostname or IP address &lt;BR /&gt;datadir=/var/lib/mysql-cluster # Directory for this data node's data files &lt;BR /&gt;id=5 &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# SQL node options: &lt;BR /&gt;#Option for SQL node SQLNode1: &lt;BR /&gt;[mysqld] &lt;BR /&gt;hostname = 192.168.38.87 &lt;BR /&gt;id=6 &lt;BR /&gt;&lt;BR /&gt;#Option for SQL node SQLNode2: &lt;BR /&gt;[mysqld] &lt;BR /&gt;hostname = 192.168.38.70 &lt;BR /&gt;id=7 &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;========= my.cnf ============= &lt;BR /&gt;[mysqld] &lt;BR /&gt;datadir=/usr/local/mysql-cluster-gpl-7.0.7-linux-i686-glibc23/data &lt;BR /&gt;basedir=/usr/local/mysql-cluster-gpl-7.0.7-linux-i686-glibc23/ &lt;BR /&gt;socket=/var/lib/mysql/mysql.sock &lt;BR /&gt;user=mysql &lt;BR /&gt;&lt;BR /&gt;# Default to using old password format for compatibility with mysql 3.x &lt;BR /&gt;# clients (those using the mysqlclient10 compatibility package). &lt;BR /&gt;old_passwords=1 &lt;BR /&gt;&lt;BR /&gt;# To allow mysqld to connect to a MySQL Cluster management daemon, uncomment &lt;BR /&gt;# these lines and adjust the connectstring as needed. &lt;BR /&gt;ndbcluster &lt;BR /&gt;ndb-connectstring="nodeid=1;host=192.168.38.87:1186" &lt;BR /&gt;#ndb-connectstring="nodeid=1;host=localhost:1186" &lt;BR /&gt;server-id=6 &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;[client] &lt;BR /&gt;socket=/var/lib/mysql/mysql.sock &lt;BR /&gt;&lt;BR /&gt;[mysql_cluster] &lt;BR /&gt;ndb-connectstring=192.168.38.87 &lt;BR /&gt;&lt;BR /&gt;[mysqld_safe] &lt;BR /&gt;log-error=/var/log/mysqld.log &lt;BR /&gt;pid-file=/var/run/mysqld/mysqld.pid &lt;BR /&gt;&lt;BR /&gt;[ndbd] &lt;BR /&gt;# If you are running a MySQL Cluster storage daemon (ndbd) on this machine, &lt;BR /&gt;# adjust its connection to the management daemon here. &lt;BR /&gt;# Note: ndbd init script requires this to include nodeid! &lt;BR /&gt;#connect-string="nodeid=2;host=192.168.38.87:1186" &lt;BR /&gt;#connect-string=192.168.41.17 &lt;BR /&gt;[ndb_mgm] &lt;BR /&gt;# connection string for MySQL Cluster management tool &lt;BR /&gt;#connect-string="host=localhost:1186" &lt;BR /&gt;connect-string="nodeid=6;host=192.168.38.87:1186"</description>
    <pubDate>Wed, 27 Oct 2010 12:49:32 GMT</pubDate>
    <dc:creator>rishabh pandey</dc:creator>
    <dc:date>2010-10-27T12:49:32Z</dc:date>
    <item>
      <title>Problem regarding mysql cluster</title>
      <link>https://community.hpe.com/t5/operating-system-linux/problem-regarding-mysql-cluster/m-p/4705741#M42573</link>
      <description>Hi All, &lt;BR /&gt;I have implemented mysql cluster with configuration(1 management node, 4 data node, and 2 sql nodes).I stuck with a problem where my sql node is running but showing not connected on management client. &lt;BR /&gt;I have implemented it before with same configuration but now it is not working. Please help me out to resolve this. Thanks in advance. &lt;BR /&gt;==== ndb_mgm -e show ==== &lt;BR /&gt;Connected to Management Server at: 192.168.38.87:1186 &lt;BR /&gt;Cluster Configuration &lt;BR /&gt;--------------------- &lt;BR /&gt;[ndbd(NDB)] 4 node(s) &lt;BR /&gt;id=2 @192.168.38.84 (mysql-5.1.35 ndb-7.0.7, starting, Nodegroup: 0, Master) &lt;BR /&gt;id=3 @192.168.38.85 (mysql-5.1.35 ndb-7.0.7, starting, Nodegroup: 0) &lt;BR /&gt;id=4 @192.168.38.86 (mysql-5.1.35 ndb-7.0.7, starting, Nodegroup: 0) &lt;BR /&gt;id=5 @192.168.144.114 (mysql-5.1.35 ndb-7.0.7, starting, Nodegroup: 0) &lt;BR /&gt;&lt;BR /&gt;[ndb_mgmd(MGM)] 1 node(s) &lt;BR /&gt;id=1 @192.168.38.87 (mysql-5.1.35 ndb-7.0.7) &lt;BR /&gt;&lt;BR /&gt;[mysqld(API)] 2 node(s) &lt;BR /&gt;id=6 (not connected, accepting connect from 192.168.38.87) &lt;BR /&gt;id=7 (not connected, accepting connect from 192.168.38.70) &lt;BR /&gt;&lt;BR /&gt;===== My configuration are as follows: ===== &lt;BR /&gt;Management node: 192.168.38.87 &lt;BR /&gt;DataNode1: 192.168.38.84 &lt;BR /&gt;DataNode2: 192.168.38.85 &lt;BR /&gt;DataNode3: 192.168.38.86 &lt;BR /&gt;DataNode4: 192.168.144.114 &lt;BR /&gt;SQLNode1: 192.168.38.87 &lt;BR /&gt;SQLNode2: 192.168.38.70 &lt;BR /&gt;&lt;BR /&gt;====== config.ini ===== &lt;BR /&gt;#options affecting ndbd processes on all data nodes: &lt;BR /&gt;[ndbd default] &lt;BR /&gt;NoOfReplicas=2 # Number of replicas &lt;BR /&gt;DataMemory=1332M # ~1.3GB # How much memory to allocate for data storage &lt;BR /&gt;IndexMemory=300M # How much memory to allocate for index storage &lt;BR /&gt;# For DataMemory and IndexMemory, we have used the &lt;BR /&gt;# default values. &lt;BR /&gt;TimeBetweenLocalCheckpoints=20 &lt;BR /&gt;# TCP/IP options: &lt;BR /&gt;[tcp default] &lt;BR /&gt;portnumber=2202 # This the default; however, you can use any port that is free &lt;BR /&gt;# for all the hosts in the cluster &lt;BR /&gt;# Note: It is recommended that you do not specify the port &lt;BR /&gt;# number at all and allow the default value to be used instead &lt;BR /&gt;&lt;BR /&gt;# Management process options SQL1: &lt;BR /&gt;[ndb_mgmd] &lt;BR /&gt;hostname=192.168.38.87 # Hostname or IP address of management node &lt;BR /&gt;datadir=/var/lib/mysql-cluster # Directory for management node log files &lt;BR /&gt;&lt;BR /&gt;# Options for data node DN1: &lt;BR /&gt;[ndbd] &lt;BR /&gt;# (one [ndbd] section per data node) &lt;BR /&gt;hostname=192.168.38.84 # Hostname or IP address &lt;BR /&gt;datadir=/var/lib/mysql-cluster # Directory for this data node's data files &lt;BR /&gt;id=2 &lt;BR /&gt;&lt;BR /&gt;# Options for data node DN2: &lt;BR /&gt;[ndbd] &lt;BR /&gt;hostname=192.168.38.85 # Hostname or IP address &lt;BR /&gt;datadir=/var/lib/mysql-cluster # Directory for this data node's data files &lt;BR /&gt;id=3 &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# Options for data node DN3: &lt;BR /&gt;[ndbd] &lt;BR /&gt;hostname=192.168.38.86 # Hostname or IP address &lt;BR /&gt;datadir=/var/lib/mysql-cluster # Directory for this data node's data files &lt;BR /&gt;id=4 &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# Options for data node DN4: &lt;BR /&gt;[ndbd] &lt;BR /&gt;hostname=192.168.144.114 # Hostname or IP address &lt;BR /&gt;datadir=/var/lib/mysql-cluster # Directory for this data node's data files &lt;BR /&gt;id=5 &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# SQL node options: &lt;BR /&gt;#Option for SQL node SQLNode1: &lt;BR /&gt;[mysqld] &lt;BR /&gt;hostname = 192.168.38.87 &lt;BR /&gt;id=6 &lt;BR /&gt;&lt;BR /&gt;#Option for SQL node SQLNode2: &lt;BR /&gt;[mysqld] &lt;BR /&gt;hostname = 192.168.38.70 &lt;BR /&gt;id=7 &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;========= my.cnf ============= &lt;BR /&gt;[mysqld] &lt;BR /&gt;datadir=/usr/local/mysql-cluster-gpl-7.0.7-linux-i686-glibc23/data &lt;BR /&gt;basedir=/usr/local/mysql-cluster-gpl-7.0.7-linux-i686-glibc23/ &lt;BR /&gt;socket=/var/lib/mysql/mysql.sock &lt;BR /&gt;user=mysql &lt;BR /&gt;&lt;BR /&gt;# Default to using old password format for compatibility with mysql 3.x &lt;BR /&gt;# clients (those using the mysqlclient10 compatibility package). &lt;BR /&gt;old_passwords=1 &lt;BR /&gt;&lt;BR /&gt;# To allow mysqld to connect to a MySQL Cluster management daemon, uncomment &lt;BR /&gt;# these lines and adjust the connectstring as needed. &lt;BR /&gt;ndbcluster &lt;BR /&gt;ndb-connectstring="nodeid=1;host=192.168.38.87:1186" &lt;BR /&gt;#ndb-connectstring="nodeid=1;host=localhost:1186" &lt;BR /&gt;server-id=6 &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;[client] &lt;BR /&gt;socket=/var/lib/mysql/mysql.sock &lt;BR /&gt;&lt;BR /&gt;[mysql_cluster] &lt;BR /&gt;ndb-connectstring=192.168.38.87 &lt;BR /&gt;&lt;BR /&gt;[mysqld_safe] &lt;BR /&gt;log-error=/var/log/mysqld.log &lt;BR /&gt;pid-file=/var/run/mysqld/mysqld.pid &lt;BR /&gt;&lt;BR /&gt;[ndbd] &lt;BR /&gt;# If you are running a MySQL Cluster storage daemon (ndbd) on this machine, &lt;BR /&gt;# adjust its connection to the management daemon here. &lt;BR /&gt;# Note: ndbd init script requires this to include nodeid! &lt;BR /&gt;#connect-string="nodeid=2;host=192.168.38.87:1186" &lt;BR /&gt;#connect-string=192.168.41.17 &lt;BR /&gt;[ndb_mgm] &lt;BR /&gt;# connection string for MySQL Cluster management tool &lt;BR /&gt;#connect-string="host=localhost:1186" &lt;BR /&gt;connect-string="nodeid=6;host=192.168.38.87:1186"</description>
      <pubDate>Wed, 27 Oct 2010 12:49:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/problem-regarding-mysql-cluster/m-p/4705741#M42573</guid>
      <dc:creator>rishabh pandey</dc:creator>
      <dc:date>2010-10-27T12:49:32Z</dc:date>
    </item>
  </channel>
</rss>

