Getting Error during execute the stored procedure 

Thread stack overrun: 6444 bytes used of a 131072 byte stack, and 128000 bytes needed. Use ‘mysqld -O thread_stack=#’ to specify a bigger stack. According to the MySQL manual “The default (192KB) is large enough for normal operation.

In my Case. Logged on server and edit my.cnf file.

You will see default value thread_stack = 128K

You need increase to 256 K  

thread_stack = 256K

Kindly contact with us to [email protected] if you have any query related to this post.