Created
August 5, 2014 19:26
-
-
Save alexander-arce/c2740fe02b6c9559ce94 to your computer and use it in GitHub Desktop.
Mysql-Vagrant Accept outside connections
This file contains hidden or 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
| Edit /etc/mysql/my.cnf | |
| Change | |
| #bind-address = 127.0.0.1 | |
| For | |
| bind-address = 0.0.0.0 | |
| Log into mysql | |
| mysql -u root -p | |
| Check ip assgined in eth0 and register users | |
| CREATE USER 'root'@'10.0.2.15' IDENTIFIED BY '123456'; | |
| GRANT ALL PRIVILEGES ON *.* TO 'root'@'10.0.2.15' WITH GRANT OPTION; | |
| CREATE USER 'root'@'%' IDENTIFIED BY '123456'; | |
| GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION; | |
| Add next line into Vagrantfile | |
| openerp.vm.network "forwarded_port", guest: 3306, host: 3306 | |
| Reload Vagrant machine with | |
| vagrant reload |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment