mysql从库同步时出现Thread stack overrun

环境说明:主库mysql5.5 (centos6.3)

                 从库mysql5.5 (win7)

今天在测试mysql同步数据库时,发现没有同步成功。

使用show slave status\G;命令查看后发现报如下错误

Error 'Thread stack overrun:  8624 bytes used of a 131072 byte stack, and 128000 bytes needed.  Use 'mysqld --thread_stack=#' to specify a bigger stack.' on query.

根据描述可知是thread_stack参数的值设置的比较小。

于是我就参考主库的配置,发现主库没有这个参数,再去查从库,发现有这个参数。

上网搜索了一下,发现thread_stack这个参数一般都是用Windows下的my-small.ini模板文件进行配置的,这个文件里的默认配置是128K,但是Linux系统的mysql默认是没有这个参数的。

把windows下从库的这个参数改为512K,重启从库后同步成功。

猜你喜欢

转载自cloud315.iteye.com/blog/2257940