# my.cnf vars evaluated before plugin

**URL:** <https://forums.percona.com/t/my-cnf-vars-evaluated-before-plugin/5617>\
**Category:** Percona Server for MySQL 5.7\
**Created:** [May 18, 2017, 6:09am UTC](https://forums.percona.com/t/my-cnf-vars-evaluated-before-plugin/5617 "2017-05-18T06:09:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![guido.iaquinti](https://avatars.discourse-cdn.com/v4/letter/g/f6c823/32.png) [@guido.iaquinti](https://forums.percona.com/u/guido.iaquinti)\
**Post date:** [May 18, 2017, 6:09am UTC](https://forums.percona.com/t/my-cnf-vars-evaluated-before-plugin/5617/1 "2017-05-18T06:09:17Z")

</div>

MySQL fails to start on new installations if my.cnf contains an option that depends on a plugin.

```auto

# my.cnf
plugin-load = QUERY_RESPONSE_TIME_AUDIT=query_response_time.so;QUERY_RESPONSE_TIME_READ=query_response_time.so;QUERY_RESPONSE_TIME_WRITE=query_response_time.so;
query_response_time_stats = ON
[...]

```

```auto
# error.log
2017-05-18T11:08:49.356652Z 0 [ERROR] unknown variable 'query_response_time_stats=ON'

```

It could be nice to be able to install and enable plugins in my.cnf. Is there any way to do that? Thanks!

---

<div class="post-metadata">

**Author:** ![kkkk1k1o](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/kkkk1k1o/32/12108_2.png) [@kkkk1k1o](https://forums.percona.com/u/kkkk1k1o)\
**Post date:** [August 6, 2023, 8:50pm UTC](https://forums.percona.com/t/my-cnf-vars-evaluated-before-plugin/5617/2 "2023-08-06T20:50:32Z")

</div>

try this

```auto
[mysqld]
...
plugin-load-add = query_response_time.so
query_response_time_stats = ON

```

OR

```auto
[mariadb]
...
plugin_load_add = query_response_time
query_response_time_stats = ON

```
