laravel homestead downgrade to mysql 5.7

删除回忆录丶 提交于 2020-12-15 04:30:38

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!