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

Using mysql:dump prepends a comment to the dump file, making it syntax error #5

Open
nlg8111 opened this issue Oct 14, 2016 · 1 comment

Comments

@nlg8111
Copy link

nlg8111 commented Oct 14, 2016

Using heroku mysql:dump <db> --search <old> --replace <new> > dump.sql prepends the generated dump.sql with info about database provider, such as Using ClearDB.

Easy fix would be to prepend the echo with -- making it -- Using ClearDB so it wont destroy the syntax, but it might not be ideal to fix the root cause.

@josepfrantic
Copy link
Contributor

Fixed. Unfortunately it also requires to redirect STDERR stream to /dev/null in order to discard the recent Heroku warnings.

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

2 participants