Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/68.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/search/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
无法在mysql中设置线程堆栈大小_Mysql_Multithreading_My.cnf - Fatal编程技术网

无法在mysql中设置线程堆栈大小

无法在mysql中设置线程堆栈大小,mysql,multithreading,my.cnf,Mysql,Multithreading,My.cnf,我想增加变量。我可以使用如下命令行选项成功完成此操作: /usr/sbin/mysqld --thread-stack=256k 我还可以使用配置文件/etc/init/mysql.conf或/etc/init.d/mysql: thread_stack=262144 thread_stack=256k thread-stack=256k thread-stack=262144 但是,通过/etc/mysql/my.cnf进行设置不起作用显示变量,如“%thread_stack%”仍显示默认

我想增加变量。我可以使用如下命令行选项成功完成此操作:

/usr/sbin/mysqld --thread-stack=256k
我还可以使用配置文件
/etc/init/mysql.conf
/etc/init.d/mysql

thread_stack=262144
thread_stack=256k
thread-stack=256k
thread-stack=262144
但是,通过
/etc/mysql/my.cnf
进行设置不起作用<代码>显示变量,如“%thread_stack%”仍显示默认值
196608

为什么通过
/etc/mysql/my.cnf设置不起作用

我该如何解决这个问题


(MySQL 5.5,5.5.38-0ubuntu0.14.04.1-log。)

问题是MySQL运行了多个进程(线程)。问题中
pgrep
的输出导致我使用
kill-15-1


这将终止应用程序的所有活动进程。然后我不得不重新启动mysql和apache,并更新了值。

可能在文件的正下方有一行
thread stack=196608
,或者在其他一些ini文件中覆盖了您的设置。搜索
stack
会显示什么吗?@gobwas您是如何解决的?我在这里遇到了一个类似的问题:@KillABug没有解决这个问题,如果我没记错的话=(@Pacerier谢谢,但我不能尝试,这个任务已经过时了=(