I want to clear the content of
/var/log/mysql/mysql.log. I tried this:
sudo cat /dev/null > /var/log/mysql/mysql.log
But it says I don't have permissions. That is strage for me because as you can see I'm running it as root.
Why can I not empty the content of
mysql.log with that command? What is your advice to empty it?