mysql TRUNCATE TABLE!!!
Posted: Mon Oct 02, 2017 4:36 pm
I was advice by one the Nagios engineer while doing the demo explaining the Nagios XI function and features. So this was the told to clear the ton of logs. I'm not really familiar with mysql, any help will be great.
mysql> echo 'TRUNCATE TABLE nagios_logentries;' | mysql -u root -p nagiosxi nagios;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the ht syntax to use near 'echo
Thanks,
Ravi Ponnaiah
mysql> echo 'TRUNCATE TABLE nagios_logentries;' | mysql -u root -p nagiosxi nagios;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the ht syntax to use near 'echo
Thanks,
Ravi Ponnaiah