linux - AWS RDS documentation leads to BASH syntax error -
when following this guide , command
sudo mysqldump --databases world --single-transaction --compress --order-by-primary –u <local_user> -p<local_password> | mysql --host=hostname –-port=3306 –u <rds_user_name> –p<rds_password>
bash returns following error:
-bash: syntax error near unexpected token `|'
can me understand why?
after deleting greater / less symbols command, returns
mysqldump: got errno 32 on write
which pipe error.
how shall proceed?