[mysqld]
long_query_time=1
log-slow-queries=/var/log/mysql/log-slow-queries.log

You must create the file manually and change owners this way:

mkdir /var/log/mysql
touch /var/log/mysql/log-slow-queries.log
chown mysql.mysql -R /var/log/mysql

相关文章:

  • 2021-08-20
  • 2021-10-07
  • 2021-11-17
  • 2021-04-22
  • 2022-12-23
  • 2021-11-17
  • 2021-12-31
猜你喜欢
  • 2021-11-17
  • 2021-11-17
  • 2021-09-11
  • 2021-11-17
  • 2021-11-17
  • 2021-11-17
相关资源
相似解决方案