不开启start slave时,从库运行正常start slave 后 从库在重放更改的时候,会自动死掉,可以肯定的是这个原因导致的,但具体不知道为什么因为测试单独开启IO线程,从库也是正常的,而只要开启sql线程,重放的时候就可能死掉错误日志如下:150817 15:39:25 mysqld_safe Number of processes running now: 0
150817 15:39:25 mysqld_safe mysqld restarted
150817 15:39:25 InnoDB: The InnoDB memory heap is disabled
150817 15:39:25 InnoDB: Mutexes and rw_locks use GCC atomic builtins
150817 15:39:25 InnoDB: Compressed tables use zlib 1.2.3
150817 15:39:25 InnoDB: Initializing buffer pool, size = 5.0G
150817 15:39:26 InnoDB: Completed initialization of buffer pool
150817 15:39:26 InnoDB: highest supported file format is Barracuda.
InnoDB: The log sequence number in ibdata files does not match
InnoDB: the log sequence number in the ib_logfiles!
150817 15:39:26 InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
InnoDB: Last MySQL binlog file position 0 107, file name ./mysql-bin.000366
150817 15:39:31 InnoDB: Waiting for the background threads to start
150817 15:39:32 InnoDB: 5.5.31 started; log sequence number 63807024682
150817 15:39:32 [Note] Recovering after a crash using mysql-bin
150817 15:39:32 [Note] Starting crash recovery...
150817 15:39:32 [Note] Crash recovery finished.
150817 15:39:32 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306
150817 15:39:32 [Note] - '0.0.0.0' resolves to '0.0.0.0';
150817 15:39:32 [Note] Server socket created on IP: '0.0.0.0'.
150817 15:39:32 [Warning] 'user' entry 'root@iZ2399ayyz4Z' ignored in --skip-name-resolve mode.
150817 15:39:32 [Warning] 'proxies_priv' entry '@ root@iZ2399ayyz4Z' ignored in --skip-name-resolve mode.
150817 15:39:32 [Note] Event Scheduler: Loaded 0 events
150817 15:39:32 [Note] /data/mysql/bin/mysqld: ready for connections.
Version: '5.5.31-log' socket: '/data/mysql/data/mysql.sock' port: 3306 Source distribution
150817 15:39:32 [Note] Event Scheduler: scheduler thread started with id 1
150817 15:40:33 [Note] Slave SQL thread initialized, starting replication in log 'mysql-bin.012473' at position 18861503, relay log './db-relay-bin.000002' position: 18861649
150817 15:40:33 [Note] 'SQL_SLAVE_SKIP_COUNTER=1' executed at relay_log_file='./db-relay-bin.000002', relay_log_pos='18861649', master_log_name='mysql-bin.012473', master_log_pos='18861503' and new position at relay_log_file='./db-relay-bin.000002', relay_log_pos='18862404', master_log_name='mysql-bin.012473', master_log_pos='18862258'
150817 15:40:33 [Note] Slave I/O thread: connected to master '用户名@主机:端口',replication started in log 'mysql-bin.012491' at position 573816968
07:45:26 UTC - mysqld got signal 11 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
We will try our best to scrape up some info that will hopefully help
diagnose the problem, but since we have already crashed,
something is definitely wrong and this may fail.key_buffer_size=5368709120
read_buffer_size=1048576
max_used_connections=2
max_threads=400
thread_count=3
connection_count=2
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 7295442 K bytes of memory
Hope that's ok; if not, decrease some variables in the equation.Thread pointer: 0x7f4590000990
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
stack_bottom = 7f485a7c5e58 thread_stack 0x40000
/data/mysql/bin/mysqld(my_print_stacktrace+0x2e)[0x75ca6e]
/data/mysql/bin/mysqld(handle_fatal_signal+0x41a)[0x65299a]
/lib64/libpthread.so.0[0x3c3d80f710]
/data/mysql/bin/mysqld(_ZNK9table_def15compatible_withEP3THDP14Relay_log_infoP5TABLEPS5_+0x47d)[0x5f0add]
/data/mysql/bin/mysqld(_ZN14Rows_log_event14do_apply_eventEPK14Relay_log_info+0x78d)[0x6e6e2d]
/data/mysql/bin/mysqld(_Z26apply_event_and_update_posP9Log_eventP3THDP14Relay_log_info+0x11d)[0x516a2d]
/data/mysql/bin/mysqld[0x51b148]
/data/mysql/bin/mysqld(handle_slave_sql+0x8f5)[0x51c475]
/lib64/libpthread.so.0[0x3c3d8079d1]
/lib64/libc.so.6(clone+0x6d)[0x3c3d4e88fd]Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (0): is an invalid pointer
Connection ID (thread ID): 5
Status: NOT_KILLEDThe manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
information that should help you find out what is causing the crash.求指导,谢谢
150817 15:39:25 mysqld_safe mysqld restarted
150817 15:39:25 InnoDB: The InnoDB memory heap is disabled
150817 15:39:25 InnoDB: Mutexes and rw_locks use GCC atomic builtins
150817 15:39:25 InnoDB: Compressed tables use zlib 1.2.3
150817 15:39:25 InnoDB: Initializing buffer pool, size = 5.0G
150817 15:39:26 InnoDB: Completed initialization of buffer pool
150817 15:39:26 InnoDB: highest supported file format is Barracuda.
InnoDB: The log sequence number in ibdata files does not match
InnoDB: the log sequence number in the ib_logfiles!
150817 15:39:26 InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...
InnoDB: Last MySQL binlog file position 0 107, file name ./mysql-bin.000366
150817 15:39:31 InnoDB: Waiting for the background threads to start
150817 15:39:32 InnoDB: 5.5.31 started; log sequence number 63807024682
150817 15:39:32 [Note] Recovering after a crash using mysql-bin
150817 15:39:32 [Note] Starting crash recovery...
150817 15:39:32 [Note] Crash recovery finished.
150817 15:39:32 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306
150817 15:39:32 [Note] - '0.0.0.0' resolves to '0.0.0.0';
150817 15:39:32 [Note] Server socket created on IP: '0.0.0.0'.
150817 15:39:32 [Warning] 'user' entry 'root@iZ2399ayyz4Z' ignored in --skip-name-resolve mode.
150817 15:39:32 [Warning] 'proxies_priv' entry '@ root@iZ2399ayyz4Z' ignored in --skip-name-resolve mode.
150817 15:39:32 [Note] Event Scheduler: Loaded 0 events
150817 15:39:32 [Note] /data/mysql/bin/mysqld: ready for connections.
Version: '5.5.31-log' socket: '/data/mysql/data/mysql.sock' port: 3306 Source distribution
150817 15:39:32 [Note] Event Scheduler: scheduler thread started with id 1
150817 15:40:33 [Note] Slave SQL thread initialized, starting replication in log 'mysql-bin.012473' at position 18861503, relay log './db-relay-bin.000002' position: 18861649
150817 15:40:33 [Note] 'SQL_SLAVE_SKIP_COUNTER=1' executed at relay_log_file='./db-relay-bin.000002', relay_log_pos='18861649', master_log_name='mysql-bin.012473', master_log_pos='18861503' and new position at relay_log_file='./db-relay-bin.000002', relay_log_pos='18862404', master_log_name='mysql-bin.012473', master_log_pos='18862258'
150817 15:40:33 [Note] Slave I/O thread: connected to master '用户名@主机:端口',replication started in log 'mysql-bin.012491' at position 573816968
07:45:26 UTC - mysqld got signal 11 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
We will try our best to scrape up some info that will hopefully help
diagnose the problem, but since we have already crashed,
something is definitely wrong and this may fail.key_buffer_size=5368709120
read_buffer_size=1048576
max_used_connections=2
max_threads=400
thread_count=3
connection_count=2
It is possible that mysqld could use up to
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 7295442 K bytes of memory
Hope that's ok; if not, decrease some variables in the equation.Thread pointer: 0x7f4590000990
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
stack_bottom = 7f485a7c5e58 thread_stack 0x40000
/data/mysql/bin/mysqld(my_print_stacktrace+0x2e)[0x75ca6e]
/data/mysql/bin/mysqld(handle_fatal_signal+0x41a)[0x65299a]
/lib64/libpthread.so.0[0x3c3d80f710]
/data/mysql/bin/mysqld(_ZNK9table_def15compatible_withEP3THDP14Relay_log_infoP5TABLEPS5_+0x47d)[0x5f0add]
/data/mysql/bin/mysqld(_ZN14Rows_log_event14do_apply_eventEPK14Relay_log_info+0x78d)[0x6e6e2d]
/data/mysql/bin/mysqld(_Z26apply_event_and_update_posP9Log_eventP3THDP14Relay_log_info+0x11d)[0x516a2d]
/data/mysql/bin/mysqld[0x51b148]
/data/mysql/bin/mysqld(handle_slave_sql+0x8f5)[0x51c475]
/lib64/libpthread.so.0[0x3c3d8079d1]
/lib64/libc.so.6(clone+0x6d)[0x3c3d4e88fd]Trying to get some variables.
Some pointers may be invalid and cause the dump to abort.
Query (0): is an invalid pointer
Connection ID (thread ID): 5
Status: NOT_KILLEDThe manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains
information that should help you find out what is causing the crash.求指导,谢谢
解决方案 »
- 谁有mysql的学习视频啊,推荐下
- mysql建方面的多对多的实例原理该如何理解?
- mysqlyog中建表时的类型是什么意思,新手求解
- 6/15 varchar 能否轉成日期型 date 06-15
- red hat linux5 下的 my.cnf 在哪?
- 数据库连接问题
- 菜鸟问mysql语法(grant)
- 请教一个MYSQL查询的问题,感谢关注的朋友:)
- HELP!在线等~~~~~~~~~~~~~~~~~~
- MyBatis 批处理 在本地可以操作批处理 但是在服务器上 没插入一条数据 创建一个sqlsession 是怎么回事
- 安装mysql后,过一会目录空了!!求解
- net start mysql发生系统错误2 ,找不到指定文件?求各位的大神指导
07:45:26 UTC - mysqld got signal 11 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
We will try our best to scrape up some info that will hopefully help
diagnose the problem, but since we have already crashed,
something is definitely wrong and this may fail.
这个我看过,不是
这个我有看,但应该不是根本原因
我同样的mysql版本,其他都是正常同步的
不知道有没有大神遇到过以前