Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

How To Guides
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Problem Solutions
Privacy Policy




16.3.6. Safe Shutdown and Restart

To shut down the cluster, enter the following command in a shell on the machine hosting the MGM node:

shell> ndb_mgm -e shutdown

The -e option here is used to pass a command to the ndb_mgm client from the shell. See Section 4.3.1, “Using Options on the Command Line”. The command causes the ndb_mgm, ndb_mgmd, and any ndbd processes to terminate gracefully. Any SQL nodes can be terminated using mysqladmin shutdown and other means.

To restart the cluster, run these commands:

  • On the management host ( in our example setup):

    shell> ndb_mgmd -f /var/lib/mysql-cluster/config.ini
  • On each of the data node hosts ( and

    shell> ndbd

    Remember not to invoke this command with the --initial option when restarting an NDBD node normally.

  • On the SQL host (

    shell> mysqld &

For information on making Cluster backups, see Section, “Using The Management Server to Create a Backup”.

To restore the cluster from backup requires the use of the ndb_restore command. This is covered in Section, “How to Restore a Cluster Backup”.

More information on configuring MySQL Cluster can be found in Section 16.4, “MySQL Cluster Configuration”.

  Published under the terms of the GNU General Public License Design by Interspire