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

Run mysql command every reload/up #958

Closed
octoxan opened this Issue Oct 9, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@octoxan

octoxan commented Oct 9, 2018

Is it possible to run a mysql command on every vagrant up or vagrant reload with homestead?

If not, how hard would this be to implement and where would I start looking?

Reason is, we have to use some old websites that throw an error until you run set @@global.show_compatibility_56=ON; in mysql. And for some reason I have to run that every few reloads and it's driving me insane.

@svpernova09

This comment has been minimized.

Show comment
Hide comment
@svpernova09

svpernova09 Oct 9, 2018

Member

You can add the command to after.sh and it will run on every vagrant up --provision or if you destroy the box, it will run the next time you run vagrant up

Member

svpernova09 commented Oct 9, 2018

You can add the command to after.sh and it will run on every vagrant up --provision or if you destroy the box, it will run the next time you run vagrant up

@svpernova09 svpernova09 closed this Oct 9, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment