1select @@global.thread_stack;
2@@global.thread_stack
3262144
4select @@session.thread_stack;
5ERROR HY000: Variable 'thread_stack' is a GLOBAL variable
6show global variables like 'thread_stack';
7Variable_name	Value
8thread_stack	262144
9show session variables like 'thread_stack';
10Variable_name	Value
11thread_stack	262144
12select * from information_schema.global_variables where variable_name='thread_stack';
13VARIABLE_NAME	VARIABLE_VALUE
14THREAD_STACK	262144
15select * from information_schema.session_variables where variable_name='thread_stack';
16VARIABLE_NAME	VARIABLE_VALUE
17THREAD_STACK	262144
18set global thread_stack=1;
19ERROR HY000: Variable 'thread_stack' is a read only variable
20set session thread_stack=1;
21ERROR HY000: Variable 'thread_stack' is a read only variable
22