Sorry what I mean is using the VM's IP rather than localhost. So we're still talking to the mysql server we just installed, but we also get an IP address that works if we run anything from host machine too. Does that make sense?
in this case that would be 192.168.33.110 since thats specified in the Vagrant file, so we *could* hardcode it...