I'm trying to restore the empty DB for mydb table but the syntax of mysqlimport doesn't seem to be straight forward. I had earlier created the file emptyDbs when doing a mysqldump.
Still a problem.. echo "mysqlimport mydb /var/tmp/emptyDbs" | mysql statsdb ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'mysqlimport /var/tmp/emptyDbs' at line 1
mysqlcommand.mysql < file_to_import.sql