Error with mysql on importing site

Symptoms

- (WARNING: 16ff000000000016): Could not restore 'domain_com_016': /usr/bin/mysql: unknown option '--:q'. You will be able to recover the databases from /var/lib/mysql/domain_com_016.mysql.dmp

or

- (WARNING: 16ff000000000016): Could not restore ABCD_mail': sh: line 1: /usr/bin/mysql: No such file or directory127 . You will be able to recover the databases from /var/lib/mysql/ABCD_mail.mysql.dmp