Skip to content

Instantly share code, notes, and snippets.

@alexander-arce
Created August 5, 2014 19:26
Show Gist options
  • Select an option

  • Save alexander-arce/c2740fe02b6c9559ce94 to your computer and use it in GitHub Desktop.

Select an option

Save alexander-arce/c2740fe02b6c9559ce94 to your computer and use it in GitHub Desktop.
Mysql-Vagrant Accept outside connections
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