Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Secure shutdown and restart methods of MySQL Cluster

2025-03-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

-- shut down the cluster

Execute the following command on the host where the management node resides

[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.

-- start the management node

[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

-- start the data node

[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.141purl 1186'

2016-05-15 06:41:36 [ndbd] INFO-- Angel allocated nodeid: 2

-- restart the SQL node

[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 &

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report