Note that there are some explanatory texts on larger screens.

plurals
  1. POMySQL Clustering. Update of database at Data & SQL Nodes
    primarykey
    data
    text
    <p>I'm currently trying to setup a MySQL Cluster within my tomcat web application project. I've already properly set up my entire MySQL Cluster with my.cnf files sitting on both the Data Nodes and MySQL Nodes, and config.ini file sitting on the management node. All in all, I have 2 Management nodes, 2 Data Nodes, and 2 SQL Nodes. </p> <p>This is the config.ini file:</p> <pre><code>#config.ini file [ndb_mgmd] NodeId=1 HostName=192.168.0.8 datadir=c:\my_cluster\ndb_data [ndb_mgmd] NodeId=2 HostName=192.168.0.2 datadir=c:\my_cluster\ndb_data [ndbd default] noofreplicas=2 datadir=c:\my_cluster\ndb_data [ndbd] hostname=192.168.0.1 NodeId=3 [ndbd] hostname=192.168.0.6 NodeId=4 [mysqld] hostname=192.168.0.2 [mysqld] hostname=192.168.0.3 </code></pre> <p>This is the my.cnf file</p> <pre><code>#my.cnf file [mysqld] ndbcluster datadir=c:\\my_cluster\\mysqld_data basedir=c:\\mysqlc port=5000 ndb-connectstring=192.168.0.8,192.168.0.2 skip-name-resolve [mysql_cluster] ndb-connectstring=192.168.0.8,192.168.0.2 </code></pre> <p>After setting up this entire cluster, the entire cluster setup works. However, when I made a simple insertion of data in my project web application when testing using the computer with this ip address, 192.168.0.6, the insertion did not take place at the data nodes' databases. Instead, insertion of data took place at the SQL Nodes' localhost databases. </p> <p>Please advice me what should I do to ensure that insertion of new data goes to the data nodes' databases. </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload