Take the 2-minute tour ×
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

I keep getting this error whether I run my query from the terminal or from within Java. Anyone has some instructions how to resolve this?

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

BTW: I am using mac osx lion

share|improve this question
    
what is the query you are trying to run? –  Aaron Brown Apr 16 '12 at 1:32
add comment

1 Answer

I don't think Rolando thought about what this variable does before answering. Don't set the thread_stack to 32M. It's is allocated per connection and 100 connections is going use 3.2GB.

thread_stack = 192K

Setting it to the fairly standard 192k should be fine.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.