- You must not use the
password directly in the terminal, use without it like follows
zcat YOUR_FILE.sql.gz | mysql -u YOUR_DB_USERNAME -p YOUR_DATABASE_NAME
- Hit enter and when terminal asked for your password, type your password and hope everything will work fine.