Mysql Error Code : 1436 Thread stack overrun
作者:mdxy-dxy 时间:2024-01-23 14:04:04
ERRNO: 256
TEXT: SQLSTATE[HY000]: General error: 1436 Thread stack overrun: 4904 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. If the thread stack size is too small, it limits the complexity of the SQL statements that the server can handle, the recursion depth of stored procedures, and other memory-consuming actions” .
To resolve this issue you need to change the default value of parameter 'thread_stack' in /etc/my.cnf in your MySQL configuration file. I use the XAMPP for php/mysql development.
Once you set this value you need to restart MySQL as this value cannot be set dynamically.
you maybe also encounter with the message when you try to modify the my.cnf
"Cannot open file for writing: Permission denied"
We will try to use the 'chmod' instruction to change permission as usually. I seldom take the concrete permission into consideration, so I use always use the 'chmod 777'. but it resulted in another errors when I use the phpmyadmin, another tools included in XAMPP, after running 'chmod 777'.
After googling it, I get this file (my.cnf) permissions has to be 600. I change its permission and it works well now.
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
python 在某.py文件中调用其他.py内的函数的方法
最新Linux系统下安装MySql 5.7.17全过程及注意事项
使用python+Flask实现日志在web网页实时更新显示
![](https://img.aspxhome.com/file/2023/6/104816_0s.jpg)
python如何去除字符串中不想要的字符
python 请求服务器的实现代码(http请求和https请求)
mysql中获取一天、一周、一月时间数据的各种sql语句写法
python解释器pycharm安装及环境变量配置教程图文详解
![](https://img.aspxhome.com/file/2023/2/70692_0s.jpg)
Python学习之Anaconda的使用与配置方法
![](https://img.aspxhome.com/file/2023/9/105279_0s.png)
理解生产者消费者模型及在Python编程中的运用实例
![](https://img.aspxhome.com/file/2023/4/130744_0s.jpg)
谈一谈基于python的面向对象编程基础
![](https://img.aspxhome.com/file/2023/3/63543_0s.png)
sql语言中delete删除命令语句详解
Java API学习教程之正则表达式详解
![](https://img.aspxhome.com/file/2023/2/65352_0s.png)
VUE+Element实现增删改查的示例源码
![](https://img.aspxhome.com/file/2023/4/127424_0s.png)
使用 Python 读取电子表格中的数据实例详解
检测tensorflow是否使用gpu进行计算的方式
vue模仿网易云音乐的单页面应用
Python 如何求矩阵的逆
![](https://img.aspxhome.com/file/2023/7/72807_0s.jpg)
Sharding-JDBC自动实现MySQL读写分离的示例代码
![](https://img.aspxhome.com/file/2023/0/71030_0s.png)
python求解三角形第三边长实例
![](https://img.aspxhome.com/file/2023/8/95398_0s.png)
ORM Django 终端打印 SQL 语句实现解析
![](https://img.aspxhome.com/file/2023/7/75177_0s.png)