fourkitchens / pantheon-tools

Tools to run actions against a Pantheon site
GNU General Public License v3.0
16 stars 3 forks source link

Pipe Viewer causes write error when dumping a database if not installed. #26

Open cbfannin opened 8 months ago

cbfannin commented 8 months ago

If a user of pantheon-tools does not have pipe viewer installed when running the pantheon-db-dump command (may need to check other commands) you receive the error: mysqldump: Got errno 0 on write

This is because pipe viewer information is passed to the $PV variable to the dump command: mysqldump --no-autocommit --single-transaction -B --opt --quote-names --user=$mysql_username --host=127.0.0.1 --port=$mysql_port --password=$mysql_password $mysql_database | $PV

Possible solutions:

Pipe viewer info: https://www.ivarch.com/programs/pv.shtml