Skip navigation

Kemarin pas nyobain MySQL Cluster dapat error seperti di bawah ini di log.

2012-03-07 21:42:41 [MgmtSrvr] INFO     — Got initial configuration from ‘../mysql_cluster/conf/config.ini’, will try to set it when all ndb_mgmd(s) started
2012-03-07 21:42:41 [MgmtSrvr] INFO     — Id: 1, Command port: *:1186
2012-03-07 21:42:41 [MgmtSrvr] INFO     — Node 1: Node 1 Connected
2012-03-07 21:42:41 [MgmtSrvr] INFO     — MySQL Cluster Management Server mysql-5.5.19 ndb-7.2.4 started
2012-03-07 21:42:41 [MgmtSrvr] INFO     — Node 1 connected
2012-03-07 21:42:41 [MgmtSrvr] INFO     — Starting initial configuration change
2012-03-07 21:42:41 [MgmtSrvr] ERROR    — Failed to open file ‘../mysql_cluster/conf//ndb_1_config.bin.1.tmp’ while preparing, errno: 2
2012-03-07 21:42:41 [MgmtSrvr] WARNING  — Node 1 refused configuration change, error: 6
2012-03-07 21:42:41 [MgmtSrvr] ERROR    — Configuration change failed! error: 6 ‘Prepare of config change failed’

Menjalankan servernya pake command:

bin/ndb_mgmd -f ../mysql_cluster/conf/config.ini –initial –configdir=../mysql_cluster/conf

Tak ada yang salah dengan konfigurasinya, setelah Googling akhirnya ketahuan kalau itu kutu. Solusinya juga sederhana, jalankan perintah di atas dengan path absolut terhadap file konfigurasi.

./bin/ndb_mgmd -f /opt/mysql_cluster/conf/config.ini –initial –configdir=/opt/mysql_cluster/conf

Iklan

2 Comments

  1. Mantep info nya gan… Lanjuttt…


Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s

%d blogger menyukai ini: