使用mysqldumpslow时候报错,请大神看看什么问题?

ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'mysqldumpslow --help' at line 1

你sql语句错了,区debug下,你写得sql,sql语句中 mysqldumpslow 附件有错误!!!

语法错误,例如语句尾没有分号;,或者语句中有mysql保留字,如果需要在语句中使用保留字,记得用反引号括起来。
参看:https://dev.mysql.com/doc/refman/5.5/en/keywords.html

错误1064 (42000):SQL语法有错误;检查对应于MySQL服务器版本的手册,在第1行“mysqldumpslow—help”附近使用正确的语法