tail: cannot open `/var/log/mysqld.log' for reading: No such file or directory

Silver_2000

Well-Known Member
Mar 31, 2002
337
1
318
Just working on getting server secured and logs working

When I try to see the /usr/local/cpanel/logs/error_log... I get
tail: cannot open `/var/log/mysqld.log' for reading: No such file or directory

Any ideas where to look to fix this ?

Doug
 

AndyReed

Well-Known Member
PartnerNOC
May 29, 2004
2,217
4
193
Minneapolis, MN
tail: cannot open `/var/log/mysqld.log' for reading: No such file or directory

Any ideas where to look to fix this ?
Make sure /var/log/mysqld.log file is there.
ls -al /var/log/mysqld.log
If you get the same error message, that means the file doesn't exist. In addition, you need to need to use the -f switch with your command:
tail -f /var/log/mysqld.log