I want to enable slow query log. When I execute the following query
set global slow_query_log = 'ON';
I get :
#29 - File '/var/log/mysqld_slow.log' not found (Errcode: 13 - Permission denied)
I tried solution here : https://bugs.mysql.com/bug.php?id=98340 but I have issue on last command :
touch /var/log/mysqld_slow.log
chown mysql:mysql /var/log/mysqld_slow.log (also tried mysql:adm)
chmod 640 /var/log/mysqld_slow.log (also tried 666)
chcon -t mysqld_log_t /var/log/mysqld_slow.log
chcon: can't apply partial context to unlabeled file '/var/log/mysqld_slow.log'