mschott
(usa Debian)
Enviado em 20/01/2014 - 09:53h
Estou usando essa configuração no meu management, essa máquina tem o banco que precisa ser replicado.
vi /etc/my.cf
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
#ndbcluster
#ndb-connectstring=mysql-mng
#[mysql_cluster]
#ndb-connectstring=mysql-mng
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
se descomento as linhas
#ndbcluster
#ndb-connectstring=mysql-mng
#[mysql_cluster]
#ndb-connectstring=mysql-mng
o mysql não sobe.
Nos logs do mysql me retorna isso:
140120 9:42:03 [Note] /usr/libexec/mysqld: Normal shutdown
140120 9:42:03 [Note] Event Scheduler: Purging the queue. 0 events
140120 9:42:03 InnoDB: Starting shutdown...
140120 9:42:06 InnoDB: Shutdown completed; log sequence number 0 54630
140120 9:42:06 [Note] /usr/libexec/mysqld: Shutdown complete
140120 09:42:06 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
140120 09:42:06 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
140120 9:42:06 InnoDB: Initializing buffer pool, size = 8.0M
140120 9:42:06 InnoDB: Completed initialization of buffer pool
140120 9:42:06 InnoDB: Started; log sequence number 0 54630
140120 9:42:06 [ERROR] /usr/libexec/mysqld: unknown option '--ndbcluster'
140120 9:42:06 [ERROR] Aborting
140120 9:42:06 InnoDB: Starting shutdown...
140120 9:42:12 InnoDB: Shutdown completed; log sequence number 0 54630
140120 9:42:12 [Note] /usr/libexec/mysqld: Shutdown complete
140120 09:42:12 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended