Closed itsazzad closed 8 years ago
Hello,
vagrant-bindfs does not share anything between your host and your virtual machine. To synchronize ./mysql
on your host with /var/libmysql
on your guest and rewrite permissions, you have to share your ./mysql
host folder with your VM and mount it somewhere (say /home/vagrant/mysql
) and then bind this guest folder to /var/lib/mysql
with correct permissions.
config.vm.synced_folder "./mysql", "/home/vagrant/mysql", type: "nfs"
config.bindfs.bind_folder "/home/vagrant/mysql", "/var/lib/mysl"
There's a long time I didn't test the plugin on an OS X host. In my memories, HFS+ filesystems won't work nicely with bindfs. So even if a correct configuration, you may have permissions problems.
Hope this helps.
Basically I am now in stuck to share
/var/lib/mysql/
. So I am sharing the/var/lib/mysql
folder in./mysql
. Originalconfig.vm.synced_folder "./mysql", "/var/lib/mysql", type: "nfs"
was working fine except the permission errors. So I have chosen your plugin but unfortunately I could not make it work; the folder is not syncing. Seems to be that I am missing something. Can you please guide me? I am using OSX Yosemite. And the server is ubuntu/trusty64.---Vagrantfile---
---bootstrap.sh---