问题
I have laravel homestead installed and originally it had mysql 5.7 installed. I subsequently updated my yaml file by included the following and running vagrant reload --provision
features:
- mysql8: true
Now I want to downgrade back to mysql 5.7 however simply removing the the above and re-running vagrant reload --provision
does not downgrade back to 5.7
How do I downgrade back to 5.7?
回答1:
You need to destroy the existing instance and start it again with mysql8 set to false.
In your Homestead.yaml (you can also remove mysql8 parameter)
...
features:
- mariadb: false
- ohmyzsh: false
- webdriver: false
- mysql8: false
...
Destroy and start again:
~\Homestead > vagrant box destroy
~\Homestead > vagrant up
NOTE: Make sure backup databases if you have any before destroying.
来源:https://stackoverflow.com/questions/61189727/laravel-homestead-downgrade-to-mysql-5-7