MySQL集群:Mysqld无法启动

时间:2013-07-05 21:10:52

标签: mysql

我无法让mysqld在mysql集群中启动。以下是我尝试启动时获得的日志。

130706 06:46:13 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
2013-07-06 06:46:13 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2013-07-06 06:46:13 5855 [ERROR] Can't read from messagefile '/usr/share/mysql/english/errmsg.sys'
2013-07-06 06:46:13 5855 [Note] Plugin 'FEDERATED' is disabled. /usr/sbin/mysqld: Unknown error 1146
2013-07-06 06:46:13 5855 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
2013-07-06 06:46:13 5855 [Note] InnoDB: The InnoDB memory heap is disabled
2013-07-06 06:46:13 5855 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2013-07-06 06:46:13 5855 [Note] InnoDB: Compressed tables use zlib 1.2.3
2013-07-06 06:46:13 5855 [Note] InnoDB: Using Linux native AIO
2013-07-06 06:46:13 5855 [Note] InnoDB: Using CPU crc32 instructions
2013-07-06 06:46:13 5855 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2013-07-06 06:46:13 5855 [Note] InnoDB: Completed initialization of buffer pool
2013-07-06 06:46:13 5855 [Note] InnoDB: The first specified data file ./ibdata1 did not exist: a new database to be created!
2013-07-06 06:46:13 5855 [Note] InnoDB: Setting file ./ibdata1 size to 12 MB
2013-07-06 06:46:13 5855 [Note] InnoDB: Database physically writes the file full: wait...
2013-07-06 06:46:14 5855 [Note] InnoDB: Setting log file ./ib_logfile101 size to 48 MB
2013-07-06 06:46:14 5855 [Note] InnoDB: Setting log file ./ib_logfile1 size to 48 MB
2013-07-06 06:46:16 5855 [Note] InnoDB: Renaming log file ./ib_logfile101 to ./ib_logfile0
2013-07-06 06:46:16 5855 [Warning] InnoDB: New log files created, LSN=45781
2013-07-06 06:46:16 5855 [Note] InnoDB: Doublewrite buffer not found: creating new
2013-07-06 06:46:16 5855 [Note] InnoDB: Doublewrite buffer created
2013-07-06 06:46:16 5855 [Note] InnoDB: 128 rollback segment(s) are active.
2013-07-06 06:46:16 5855 [Warning] InnoDB: Creating foreign key constraint system tables.
2013-07-06 06:46:16 5855 [Note] InnoDB: Foreign key constraint system tables created
2013-07-06 06:46:16 5855 [Note] InnoDB: Creating tablespace and datafile system tables.
2013-07-06 06:46:16 5855 [Note] InnoDB: Tablespace and datafile system tables created.
2013-07-06 06:46:16 5855 [Note] InnoDB: Waiting for purge to start
2013-07-06 06:46:16 5855 [Note] InnoDB: 5.6.11 started; log sequence number 0
2013-07-06 06:46:16 5855 [Note] NDB: Changed global value of binlog_format from STATEMENT to MIXED
2013-07-06 06:46:16 5855 [Note] NDB: NodeID is 255, management server '192.168.0.1:1186'
2013-07-06 06:46:17 5855 [Note] NDB[0]: NodeID: 255, all storage nodes connected
2013-07-06 06:46:17 5855 [Warning] NDB: server id set to zero - changes logged to bin log with server id zero will be logged with another server id by slave mysqlds
2013-07-06 06:46:17 5855 [Note] Starting Cluster Binlog Thread
2013-07-06 06:46:17 5855 [ERROR] Aborting

2013-07-06 06:46:17 5855 [Note] Binlog end
2013-07-06 06:46:17 5855 [Note] Stopping Cluster Utility thread
2013-07-06 06:46:18 5855 [Note] Stopping Cluster Binlog
2013-07-06 06:46:18 5855 [Note] Stopping Cluster Index Stats thread
2013-07-06 06:46:18 5855 [Note] Shutting down plugin 'partition'
2013-07-06 06:46:18 5855 [Note] Shutting down plugin 'ARCHIVE'
2013-07-06 06:46:18 5855 [Note] Shutting down plugin 'PERFORMANCE_SCHEMA'
2013-07-06 06:46:18 5855 [Note] Shutting down plugin 'ndb_transid_mysql_connection_map'
2013-07-06 06:46:18 5855 [Note] Shutting down plugin 'ndbinfo'
2013-07-06 06:46:18 5855 [Note] Shutting down plugin 'ndbcluster'
2013-07-06 06:46:18 5855 [Note] Stopping Cluster Index Statistics thread
2013-07-06 06:46:18 5855 [Note] Shutting down plugin 'BLACKHOLE'
2013-07-06 06:46:18 5855 [Note] Shutting down plugin 'INNODB_SYS_DATAFILES'
2013-07-06 06:46:18 5855 [Note] Shutting down plugin 'INNODB_SYS_TABLESPACES'
2013-07-06 06:46:18 5855 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN_COLS'
2013-07-06 06:46:18 5855 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN'
2013-07-06 06:46:18 5855 [Note] Shutting down plugin 'INNODB_SYS_FIELDS'
2013-07-06 06:46:18 5855 [Note] Shutting down plugin 'INNODB_SYS_COLUMNS'
2013-07-06 06:46:18 5855 [Note] Shutting down plugin 'INNODB_SYS_INDEXES'
2013-07-06 06:46:18 5855 [Note] Shutting down plugin 'INNODB_SYS_TABLESTATS'
2013-07-06 06:46:18 5855 [Note] Shutting down plugin 'INNODB_SYS_TABLES'
2013-07-06 06:46:18 5855 [Note] Shutting down plugin 'INNODB_FT_INDEX_TABLE'
2013-07-06 06:46:18 5855 [Note] Shutting down plugin 'INNODB_FT_INDEX_CACHE'
2013-07-06 06:46:18 5855 [Note] Shutting down plugin 'INNODB_FT_CONFIG'
2013-07-06 06:46:18 5855 [Note] Shutting down plugin 'INNODB_FT_BEING_DELETED'
2013-07-06 06:46:18 5855 [Note] Shutting down plugin 'INNODB_FT_DELETED'
2013-07-06 06:46:18 5855 [Note] Shutting down plugin 'INNODB_FT_DEFAULT_STOPWORD'
2013-07-06 06:46:18 5855 [Note] Shutting down plugin 'INNODB_METRICS'
2013-07-06 06:46:18 5855 [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS'
2013-07-06 06:46:18 5855 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU'
2013-07-06 06:46:18 5855 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE'
2013-07-06 06:46:18 5855 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX_RESET'
2013-07-06 06:46:18 5855 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX'
2013-07-06 06:46:18 5855 [Note] Shutting down plugin 'INNODB_CMPMEM_RESET'
2013-07-06 06:46:18 5855 [Note] Shutting down plugin 'INNODB_CMPMEM'
2013-07-06 06:46:18 5855 [Note] Shutting down plugin 'INNODB_CMP_RESET'
2013-07-06 06:46:18 5855 [Note] Shutting down plugin 'INNODB_CMP'
2013-07-06 06:46:18 5855 [Note] Shutting down plugin 'INNODB_LOCK_WAITS'
2013-07-06 06:46:18 5855 [Note] Shutting down plugin 'INNODB_LOCKS'
2013-07-06 06:46:18 5855 [Note] Shutting down plugin 'INNODB_TRX'
2013-07-06 06:46:18 5855 [Note] Shutting down plugin 'InnoDB'
2013-07-06 06:46:18 5855 [Note] InnoDB: FTS optimize thread exiting.
2013-07-06 06:46:18 5855 [Note] InnoDB: Starting shutdown...
2013-07-06 06:46:20 5855 [Note] InnoDB: Shutdown completed; log sequence number 1600607
2013-07-06 06:46:20 5855 [Note] Shutting down plugin 'MRG_MYISAM'
2013-07-06 06:46:20 5855 [Note] Shutting down plugin 'CSV'
2013-07-06 06:46:20 5855 [Note] Shutting down plugin 'MEMORY'
2013-07-06 06:46:20 5855 [Note] Shutting down plugin 'MyISAM'
2013-07-06 06:46:20 5855 [Note] Shutting down plugin 'sha256_password'
2013-07-06 06:46:20 5855 [Note] Shutting down plugin 'mysql_old_password'
2013-07-06 06:46:20 5855 [Note] Shutting down plugin 'mysql_native_password'
2013-07-06 06:46:20 5855 [Note] Shutting down plugin 'binlog'
2013-07-06 06:46:20 5855 [Note]
130706 06:46:20 mysqld_safe mysqld from pid file /var/lib/mysql/localhost.localdomain.pid ended

/etc/my.cnf文件中的以下内容(确实有效)但由于某种原因现在无效。

[mysqld]
ndbcluster

[mysql_cluster]
ndb-connectstring=192.168.0.1

以下是主群集配置文件(config.ini)。

# TCP Parameters
[tcp default]
SendBufferMemory = 2M
ReceiveBufferMemory = 2M

# Management Node Parameters
[ndb_mgmd default]

[ndb_mgmd]
HostName = 192.168.0.1
NodeId = 1

# Data Node Parameters
[ndbd default]
NoOfReplicas = 1

LockPagesInMainMemory = 1

DataMemory = 3072M
IndexMemory = 384M

ODirect = 1

NoOfFragmentLogFiles = 300
MaxNoOfConcurrentOperations = 10000

SchedulerSpinTimer = 400
SchedulerExecutionTimer = 100
RealTimeScheduler = 1

TimeBetweenGlobalCheckpoints = 2000
TimeBetweenLocalCheckpoints = 20
TimeBetweenEpochs = 200
DiskCheckpointSpeed = 10M
DiskCheckpointSpeedInRestart = 100M
RedoBuffer = 32M

MaxNoOfTables = 1024
MaxNoOfOrderedIndexes = 256

[ndbd]
HostName = 192.168.0.1
NodeID = 2

# SQL Nodes / API Node Parameters
[mysqld]
HostName = 192.168.0.1
NodeID = 255

[mysqld]
NodeID = 254

服务器规格如下: i7 2.0 Ghz 8 Gb Ram 300千兆硬盘。

关于如何让mysqld与mysql集群一起运行的任何帮助都会非常棒。

提前致谢。       Hodds。

0 个答案:

没有答案