主库中的表全部是InnoDB引擎,从库中的表全部是MyISAM引擎,主从配置完成之后,运行正常,可以主从复制,然后我用mysqlcft建立全文索引,一开始从库中有数据,建立全文索引时,Mysql报lost connection to mysql server during query错误,无法建立全文索引,于是我就把从库中的数据全部删除了,然后建立全文索引成功,但是主从复制又无法正常运行了,数据无法写入从库。并且此时show slave status:Slave_IO_Running: No, Slave_SQL_Running: No,Master_Server_Id指向了0,主库的id是225,主库和从库的配置如下:
主库配置如下:
# For advice on how to change settings please see
# http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html[mysqld]# Remove leading # and set to the amount of RAM for the most important data
# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
# innodb_buffer_pool_size = 128M# Remove leading # to turn on a very important data integrity option: logging
# changes to the binary log between backups.
log_bin = /var/lib/mysql/binlog
binlog-do-db = sentiment_master_slave
sync_binlog = 1
innodb_flush_log_at_trx_commit
innodb_support_xa = 1# These are commonly set, remove the # and set as required.
# basedir = .....
# datadir = .....
# port = .....
server_id = 255 
# socket = .....# Remove leading # to set options mainly useful for reporting servers.
# The server defaults are faster for transactions and fast SELECTs.
# Adjust sizes as needed, experiment to find the optimal values.
# join_buffer_size = 128M
# sort_buffer_size = 2M
# read_rnd_buffer_size = 2M sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES 从库配置如下:
# For advice on how to change settings please see
# http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html[mysqld]innodb=OFF 
ignore-builtin-innodb 
skip-innodb
default-storage-engine=myisam 
default-tmp-storage-engine=myisam# Remove leading # and set to the amount of RAM for the most important data
# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
# innodb_buffer_pool_size = 128M# Remove leading # to turn on a very important data integrity option: logging
# changes to the binary log between backups.
log_bin = /var/lib/mysql/slave_binlog
relay_log = /var/lib/mysql/realy_bin
log_slave_updates = 1
skip_slave_start
ft_min_word_len = 2
max_allowed_packet = 32M
# These are commonly set, remove the # and set as required.
# basedir = .....
# datadir = .....
# port = .....
server_id = 226 
# socket = .....# Remove leading # to set options mainly useful for reporting servers.
# The server defaults are faster for transactions and fast SELECTs.
# Adjust sizes as needed, experiment to find the optimal values.
# join_buffer_size = 128M
# sort_buffer_size = 2M
# read_rnd_buffer_size = 2M sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES 
折腾了两三天了,求大神指教啊!!!!

解决方案 »

  1.   

    错误日志:
    2014-11-01 12:40:04 21838 [Note] Slave SQL thread initialized, starting replication in log 'binlog.000001' at position 958813457, relay log '/var/lib/mysql/realy_bin.000001' position: 4
    04:42:15 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=8388608
    read_buffer_size=131072
    max_used_connections=1
    max_threads=151
    thread_count=3
    connection_count=1
    It is possible that mysqld could use up to 
    key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 68245 K  bytes of memory
    Hope that's ok; if not, decrease some variables in the equation.Thread pointer: 0x7f83b8000990
    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 = 7f83c0c4f7e0 thread_stack 0x40000
    /usr/sbin/mysqld(my_print_stacktrace+0x35)[0x8d68f5]
    /usr/sbin/mysqld(handle_fatal_signal+0x4a4)[0x663224]
    /lib64/libpthread.so.0(+0xf710)[0x7f83e0985710]
    /usr/lib64/mysql/plugin/mysqlcft.so(+0x8f9)[0x7f83c0c928f9]
    /usr/sbin/mysqld(ft_parse+0x4e)[0xac7d9e]
    /usr/sbin/mysqld(_mi_ft_parse+0xa2)[0xb0b9e2]
    /usr/sbin/mysqld(_mi_ft_parserecord+0x87)[0xb0ba87]
    /usr/sbin/mysqld(_mi_ft_add+0x33)[0xb0be13]
    /usr/sbin/mysqld(mi_write+0x1ff)[0xafbcaf]
    /usr/sbin/mysqld(_ZN7handler12ha_write_rowEPh+0xab)[0x5ac24b]
    /usr/sbin/mysqld(_Z12write_recordP3THDP5TABLEP9COPY_INFOS4_+0x8a)[0x6c362a]
    /usr/sbin/mysqld(_Z12mysql_insertP3THDP10TABLE_LISTR4ListI4ItemERS3_IS5_ES6_S6_15enum_duplicatesb+0xb70)[0x6cac90]
    /usr/sbin/mysqld(_Z21mysql_execute_commandP3THD+0x1d15)[0x6dfb95]
    /usr/sbin/mysqld(_Z11mysql_parseP3THDPcjP12Parser_state+0x32f)[0x6e2dff]
    /usr/sbin/mysqld(_ZN15Query_log_event14do_apply_eventEPK14Relay_log_infoPKcj+0x74c)[0x87883c]
    /usr/sbin/mysqld(_ZN9Log_event11apply_eventEP14Relay_log_info+0x74)[0x87b3e4]
    /usr/sbin/mysqld(_Z26apply_event_and_update_posPP9Log_eventP3THDP14Relay_log_info+0x263)[0x8a6d23]
    /usr/sbin/mysqld[0x8abc93]
    /usr/sbin/mysqld(handle_slave_sql+0xb92)[0x8ad5b2]
    /usr/sbin/mysqld(pfs_spawn_thread+0x12a)[0xabe12a]
    /lib64/libpthread.so.0(+0x79d1)[0x7f83e097d9d1]
    /lib64/libc.so.6(clone+0x6d)[0x7f83df6e686d]Trying to get some variables.
    Some pointers may be invalid and cause the dump to abort.
    Query (7f83b800cdcb): is an invalid pointer
    Connection ID (thread ID): 3
    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.
    141101 12:42:15 mysqld_safe Number of processes running now: 0
    141101 12:42:15 mysqld_safe mysqld restarted
    2014-11-01 12:42:15 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
    2014-11-01 12:42:15 21957 [Warning] ignore-builtin-innodb is ignored and will be removed in future releases.
    2014-11-01 12:42:15 21957 [Note] Plugin 'FEDERATED' is disabled.
    2014-11-01 12:42:15 21957 [Note] Plugin 'InnoDB' is disabled.
    2014-11-01 12:42:15 21957 [Note] Recovering after a crash using /var/lib/mysql/slave_binlog
    2014-11-01 12:42:15 21957 [Note] Server hostname (bind-address): '*'; port: 3306
    2014-11-01 12:42:15 21957 [Note] IPv6 is available.
    2014-11-01 12:42:15 21957 [Note]   - '::' resolves to '::';
    2014-11-01 12:42:15 21957 [Note] Server socket created on IP: '::'.
    2014-11-01 12:42:15 21957 [Warning] Info table is not ready to be used. Table 'mysql.slave_master_info' cannot be opened.
    2014-11-01 12:42:15 21957 [Warning] Info table is not ready to be used. Table 'mysql.slave_relay_log_info' cannot be opened.
    2014-11-01 12:42:15 21957 [Note] Event Scheduler: Loaded 0 events
    2014-11-01 12:42:15 21957 [Note] /usr/sbin/mysqld: ready for connections.
    Version: '5.6.19-log'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  MySQL Community Server (GPL)