my.cnf vars evaluated before plugin

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


# 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
[...]

# 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!

try this

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

OR

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