humanmade / Salty-WordPress

A flavorful way to manage your entire WordPress stack.
126 stars 22 forks source link

DBs don't automatically mount on vagrant up #116

Open dashaluna opened 9 years ago

dashaluna commented 9 years ago

So, I've mapped databases to preserve them between each destroy, as specified in the instructions under the Localize Your Environment

However, whenever I restart mac and start a VM again, the DBs don't seem to be mounted automatically. I have to do the following to make them work:

  1. vagrant ssh
  2. sudo service mysql restart

And only then they seem to appear. Is that correct? Am I missing something in configuration?

dashaluna commented 8 years ago

@Japh pinging about this given you're maintaining the repo now ;) This is still the case. Let me know if it can be fixed :) Thanks!

Japh commented 8 years ago

Thanks, @dashaluna! Seems like perhaps there's a race condition of some kind where the MySQL service is starting before the DBs are mounted. Does this also happen just when you restart the VM with a vagrant reload ?

Japh commented 8 years ago

Doesn't look like that's the issue to me. The Customfile is loaded in the Vagrantfile, so should all be setup before you get that far, I would've thought.

dashaluna commented 8 years ago

@Japh just checked, doesn't work with vagrant reload either i.e. I had to go and restart the mysql service and then it worked.