慢查日志文件設(shè)置不了
執(zhí)行set global slow_query_log_file='/home/mysql/sql_log/mysql-slow.log'
報(bào)錯(cuò)variable‘slow_query_log_file’can't be set to the value of '/home/mysql/sql_log/mysql-slow.log'
執(zhí)行set global slow_query_log_file='/home/mysql/sql_log/mysql-slow.log'
報(bào)錯(cuò)variable‘slow_query_log_file’can't be set to the value of '/home/mysql/sql_log/mysql-slow.log'
2018-02-01
舉報(bào)
2019-07-29
設(shè)置slow_query_log_file時(shí),目錄必須存在,并且mysql 有權(quán)讀寫該目錄
2019-07-29
可以解決
2018-12-18
請(qǐng)問解決了嗎??遇到同樣問題
2018-02-05
?# cd /data/log/mysql
?# touch slow.log
?#chmod 777 -R slow.log
試試