MySQL集群的安全关闭和重启方法-创新互联

成都创新互联是一家集网站制作、网站设计、网站页面设计、网站优化SEO优化为一体的专业网站制作公司,已为成都等多地近百家企业提供网站建设服务。追求良好的浏览体验,以探求精品塑造与理念升华,设计最适合用户的网站页面。 合作只是第一步,服务才是根本,我们始终坚持讲诚信,负责任的原则,为您进行细心、贴心、认真的服务,与众多客户在蓬勃发展的市场环境中,互促共生。ong>--关闭集群
在管理节点所在的主机上执行下面命令
[root@localhost config]# /cluster/bin/ndb_mgm -e shutdown
Connected to Management Server at: localhost:1186
3 NDB Cluster node(s) have shutdown.
Disconnecting to allow management server to shutdown.
--启动管理节点
[root@localhost config]# /cluster/bin/ndb_mgmd -f /cluster_data/config/config.ini
MySQL Cluster Management Server mysql-5.6.29 ndb-7.4.11
--启动数据节点
[root@localhost mysql-cluster-gpl-7.4.11]# /cluster/bin/ndbd
2016-05-15 06:41:36 [ndbd] INFO     -- Angel connected to '192.168.78.141:1186'
2016-05-15 06:41:36 [ndbd] INFO     -- Angel allocated nodeid: 2
--重启SQL节点
[root@localhost mysql-cluster-gpl-7.4.11]# /cluster/bin/mysqladmin -usystem -p shutdown
[root@localhost mysql-cluster-gpl-7.4.11]# /cluster/bin/mysqld_safe --defaults-file=/etc/my.cnf &

新闻名称:MySQL集群的安全关闭和重启方法-创新互联
浏览路径:http://pwwzsj.com/article/goidg.html