首页 / MYSQL / Mysql-cluster7.5
Mysql-cluster7.5
内容导读
互联网集市收集整理的这篇技术教程文章主要介绍了Mysql-cluster7.5,小编现在分享给大家,供广大互联网技能从业者学习和参考。文章包含2069字,纯文字阅读大概需要3分钟。
内容图文
Data nodes:
shell> rpm -Uhv mysql-cluster-community-data-node-7.5.5-1.1.el7.x86_64.rpm
SQL nodes:
shell> rpm -Uhv mysql-cluster-community-server-7.5.5-1.1.el7.x86_64.rpm
shell> rpm -Uhv mysql-cluster-community-client-7.5.5-1.1.el7.x86_64.rpm
Management nodes:
shell> rpm -Uhv mysql-cluster-commercial-management-server-7.5.5-1.1.el7.x86_64.rpm
Configuring the data nodes and SQL nodes:
shell> vi /etc/my.cnf
[mysqld]
ndbcluster # run NDB storage engine
[mysql_cluster]
ndb-connectstring=192.168.0.10 # location of management server
Configuring the management node:
shell> mkdir /var/lib/mysql-cluster
shell> cd /var/lib/mysql-cluster
shell> vi config.ini
[ndbd default]
NoOfReplicas=2 # Number of replicas
DataMemory=80M # How much memory to allocate for data storage
IndexMemory=18M # How much memory to allocate for index storage
[tcp default]
# TCP/IP options:
portnumber=2202 # This the default; however, you can use any
[ndb_mgmd]
hostname=192.168.0.10 # Hostname or IP address of MGM node
datadir=/var/lib/mysql-cluster # Directory for MGM node log files
[ndbd]
hostname=192.168.0.30 # Hostname or IP address
datadir=/usr/local/mysql/data # Directory for this data node‘s data files
[ndbd]
hostname=192.168.0.40 # Hostname or IP address
datadir=/usr/local/mysql/data # Directory for this data node‘s data files
[mysqld]
hostname=192.168.0.20 # Hostname or IP address
Cluster management nodes is 1186; the default port for data nodes is 2202.
On the management host:
shell> ndb_mgmd -f /var/lib/mysql-cluster/config.ini
On each of the data node hosts:
shell> ndbd
On each of the SQL node hosts:
shell> mysqld_safe &
shell> mysqld_safe --user=mysql &
Safe Shutdown and Restart of MySQL Cluster
shell> ndb_mgm -e shutdown
Mysql-cluster7.5
标签:server ddr node can location engine cts var shell
本文系统来源:http://www.cnblogs.com/baxk/p/6004801.html
内容总结
以上是互联网集市为您收集整理的Mysql-cluster7.5全部内容,希望文章能够帮你解决Mysql-cluster7.5所遇到的程序开发问题。 如果觉得互联网集市技术教程内容还不错,欢迎将互联网集市网站推荐给程序员好友。
内容备注
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 gblab@vip.qq.com 举报,一经查实,本站将立刻删除。
内容手机端
扫描二维码推送至手机访问。