Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cbfannin opened this issue Oct 27, 2023 · 0 comments
Open

Comments

@cbfannin
Copy link
Contributor

cbfannin commented Oct 27, 2023

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:

  • Check to see if pipe viewer is installed and don't pass pipe viewer data to the command. (maybe prompt the user that if pipe viewer is installed that they would see this data).
  • Check to see if pipe viewer is installed and fail early with a prompt to install pipe viewer.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant