# config file does not work as expected

**URL:** <https://forums.percona.com/t/config-file-does-not-work-as-expected/6174>\
**Category:** Percona XtraDB Cluster 5.x\
**Created:** [February 5, 2018, 8:18am UTC](https://forums.percona.com/t/config-file-does-not-work-as-expected/6174 "2018-02-05T08:18:47Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![krunalbauskar](https://avatars.discourse-cdn.com/v4/letter/k/439d5e/32.png) [@krunalbauskar](https://forums.percona.com/u/krunalbauskar)\
**Post date:** [February 7, 2018, 11:49pm UTC](https://forums.percona.com/t/config-file-does-not-work-as-expected/6174/10 "2018-02-07T23:49:02Z")

</div>

As per MySQL doc (PS and PXC inherit upstream semantics)

[url][MySQL :: MySQL 5.7 Reference Manual :: 5.1.7 Server System Variables](https://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_wait_timeout%5B/url%5D)  
[LIST]  
[\*]On thread startup, the session [wait\_timeout](https://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_wait_timeout) value is initialized from the global [wait\_timeout](https://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_wait_timeout) value or from the global[interactive\_timeout](https://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_interactive_timeout) value, depending on the type of client (as defined by the CLIENT\_INTERACTIVE connect option to [mysql\_real\_connect()](https://dev.mysql.com/doc/refman/5.7/en/mysql-real-connect.html)). See also [interactive\_timeout](https://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_interactive_timeout).  
[/LIST] this means wait\_timeout value is defined by global wait\_timeout or interactive\_timout value.

I tried setting checking for client terminal (mysql) and given that it is an interactive terminal, session inherited interactive\_timeout

[setting in my.cnf]  
wait\_timeout=86400  
interactive\_timeout=1000000

mysql\> select @@global.interactive\_timeout;  
±-----------------------------+  
| @@global.interactive\_timeout |  
±-----------------------------+  
| 1000000 |  
±-----------------------------+  
1 row in set (0.00 sec)

mysql\> select @@session.interactive\_timeout;  
±------------------------------+  
| @@session.interactive\_timeout |  
±------------------------------+  
| 1000000 |  
±------------------------------+  
1 row in set (0.00 sec)

mysql\> select @@global.wait\_timeout;  
±----------------------+  
| @@global.wait\_timeout |  
±----------------------+  
| 86400 |  
±----------------------+  
1 row in set (0.00 sec)

mysql\> select @@session.wait\_timeout;  
±-----------------------+  
| @@session.wait\_timeout |  
±-----------------------+  
| 1000000 |  
±-----------------------+  
1 row in set (0.00 sec)

Hope this help clarify the confusion.

---

_[View the full topic](https://forums.percona.com/t/config-file-does-not-work-as-expected/6174)._
