Linux中国 Linux中国门户站!
设为主页 设为主页
收藏本站 收藏本站
 
当前位置 :首页 ->数据库应用 ->Mysql ->正文

实用心得:MySQL群集双机模拟方案

来源:赛迪网技术社区  作者:Webmaster 时间:2007-04-23 点击: [收藏] [投稿]

重新启动集群(顺序不能弄错)

在主机ndb1_mgmd_sqld1上执行如下过程:

shell>; ndb_mgmd -f /var/lib/mysql-cluster/config.ini

在两台主机上执行如下过程:

shell>;/usr/local/mysql/bin/ndbd

启动完ndbd进程后启动sqld进程:

shell>;/etc/init.d/mysql.server start

附:

config.ini中各部分解释:

[COMPUTER]: 定义群集主机.

[NDBD]: 定义群集数据节点.

[MYSQLD]: 定义Sql server节点.

[MGM|NDB_MGMD]: Defines the management server node in the cluster.

[TCP]: Defines TCP/IP connections between nodes in the cluster, with TCP/IP being the default connection protocol.

[SHM]: Defines shared-memory connections between nodes.

在MySQL 4.1.9之前,这个功能必须使用--with-ndb-shm option编译进去, 从MySQL 4.1.9-max版本开始, it is enabled by default。

(T115)

 如果您对本文有任何疑问或者建议,请到讨论区发表您的意见: >> 论坛入口 <<



上一篇:强烈推荐:MySQL 4.1字符集支持的原理   下一篇:MySQL (C API)VC实例及代码下载

文章评论】 【收藏本文】 【推荐好友】 【打印本文】 【我要投稿】 【论坛讨论
更多相关文章
Power by linux-cn.com 粤ICP备05006655号