31.07.2013 Views

MySQL Cluster Tutorial - cdn.oreillystatic.com

MySQL Cluster Tutorial - cdn.oreillystatic.com

MySQL Cluster Tutorial - cdn.oreillystatic.com

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Lets look at some files which are useful for daily usage of <strong>MySQL</strong> <strong>Cluster</strong>:<br />

/usr/local/mysql/<br />

bin/mysql <strong>MySQL</strong> <strong>com</strong>mand-line client tool<br />

bin/mysqld <strong>MySQL</strong> server<br />

Use the mysqld_safe to start the <strong>MySQL</strong> server. To see all<br />

the options available use:<br />

shell> mysqld --help --verbose | less<br />

bin/mysqldump Schema and data backup<br />

For <strong>MySQL</strong> <strong>Cluster</strong> you’ll need this to backup schema,<br />

stored procedures, etc.. For data you want to use<br />

ndb_restore.<br />

bin/mysqld_safe <strong>MySQL</strong> server startup script<br />

Use this to start the <strong>MySQL</strong> server.<br />

bin/ndbd Data Node daemon<br />

bin/ndbmtd Data Node daemon, multi-threaded<br />

bin/ndb_mgm <strong>MySQL</strong> <strong>Cluster</strong> management client tool<br />

bin/ndb_mgmd Management Node daemon<br />

bin/ndb_restore Restore <strong>MySQL</strong> <strong>Cluster</strong> backup<br />

You can use the --help option for the above application to show their options.<br />

Locations<br />

After the installation of <strong>MySQL</strong> <strong>Cluster</strong> we need to define where the data is going to be<br />

stored. For this tutorial we’ll use some subdirectories in /opt/mysqlcluster/.<br />

/opt/mysqlcluster<br />

/ndb Data directory for <strong>MySQL</strong> <strong>Cluster</strong><br />

/ndb_Slave Data Directory for Slave <strong>MySQL</strong> <strong>Cluster</strong><br />

/mysql_A Data directory for first <strong>MySQL</strong> server (mysqld)<br />

/mysql_B Data directory for second <strong>MySQL</strong> server (mysqld)<br />

my_A.cnf Option files for first <strong>MySQL</strong> server<br />

my_B.cnf Option file for second <strong>MySQL</strong> server<br />

config.ini Configuration file for <strong>MySQL</strong> <strong>Cluster</strong><br />

/mysql_Slave Data directory for Slave <strong>MySQL</strong> <strong>Cluster</strong><br />

Copyright © 2010, Oracle and/or its affiliates. All rights reserved. 10/81

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!