• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

How to enable slow query log

K

Konstantin2

Guest
Hello, I added a line to my.cnf to log slow queries, but the log is not being created. I pointed it to /var/log/ and called it mysql-slow.log but nothing. I tried to create the file manually but it didnt save in that folder.

What am I doing wrong? (using fedora core6).
 
Create the file
Code:
touch /var/log/mysql-slow.log 
chmod 644 /var/log/mysql-slow.log 
chown root:root /var/log/mysql-slow.log

Then in the /etc/my.cnf under the [mysqld_safe] or [mysqld] section
Code:
log-slow-queries=/var/log/mysql-slow.log

if its not saving anything then perhaps you have nothing to save :)
 
Back
Top