Last active
July 20, 2017 17:14
-
-
Save sl-digital/854fb67f3d1bd3359a1349c8e7f9674d to your computer and use it in GitHub Desktop.
Vagrant: CentOS 7 MariaDB Remote Access
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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