mysql: unknown variable 'table_definition_cache=400'
In order to solve this please put these configurations under [mysqld] section of config file. For reference check here 

[mysqld]
table_definition_cache = 400
table_open_cache = 400