Skip to content

Instantly share code, notes, and snippets.

@sl-digital
Last active July 20, 2017 17:14
Show Gist options
  • Save sl-digital/854fb67f3d1bd3359a1349c8e7f9674d to your computer and use it in GitHub Desktop.
Save sl-digital/854fb67f3d1bd3359a1349c8e7f9674d to your computer and use it in GitHub Desktop.
Vagrant: CentOS 7 MariaDB Remote Access
# VAGRANT FILE
config.vm.network "forwarded_port", guest: 80, host: 8080
config.vm.network "forwarded_port", guest: 3306, host: 33060
config.vm.network "private_network", ip: "192.168.33.10"
config.vm.synced_folder "./webroot", "/var/www/html", create:true, owner:"apache", group:"apache"
# MYSQL BIND
Change 127.0.0.1 to 0.0.0.0
# MYSQL/MARIADB COMMAND - ONLY DO THIS FOR LOCAL DEVELOPMENT!!!
grant all on *.* to 'root'@'%' identified by 'root' with grant option;
flush privileges;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment