I am trying to import a large MariaDB dump file in a running MariaDB instance (production) without any performance issues. In order to do so i am trying to use cpipe, for a throughput speed limit as below:
/usr/bin/mysql -uuser -ppass -h host DBname | /usr/bin/cpipe -vr -vw -vt -s 512 -b 1 < /path/to/dump.sql
It is worth mentioning that the above line is part of a simple bash script, where I specified login credentials + host.
I am receiving contents of dump.sql
on screen (with the provided limitations) but nothing is actually imported in the MariaDB instance.
What am i doing wrong here?
You inverted the pipe...