# Clarification on Mysql dynamic variable "expire\_logs\_days"

**URL:** <https://forums.percona.com/t/clarification-on-mysql-dynamic-variable-expire-logs-days/3179>\
**Category:** Other MySQL® Questions\
**Created:** [January 3, 2014, 2:33pm UTC](https://forums.percona.com/t/clarification-on-mysql-dynamic-variable-expire-logs-days/3179 "2014-01-03T14:33:45Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![mirfan](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/mirfan/32/16890_2.png) [@mirfan](https://forums.percona.com/u/mirfan)\
**Post date:** [January 4, 2014, 2:57pm UTC](https://forums.percona.com/t/clarification-on-mysql-dynamic-variable-expire-logs-days/3179/2 "2014-01-04T14:57:09Z")

</div>

expire\_logs\_days is dynamic variable and it’s value can be set without restarting MySQL however, if server restarts expire\_log\_days value will be reset and your changes will be lost. In order to make change permanent you can also add it in my.cnf and whenever mysql restarts it value will be persist which you already set previously without restarting via SET GLOBAL expire\_log\_days=14 You can read more about it here [url][MySQL :: MySQL 8.0 Reference Manual :: 5.1.8 Server System Variables](http://dev.mysql.com/doc/refman/5.5/en/server-system-variables.html#sysvar_expire_logs_days%5B/url%5D)

Hope that helps.

---

_[View the full topic](https://forums.percona.com/t/clarification-on-mysql-dynamic-variable-expire-logs-days/3179)._
