mysql + vagrant + remote access
username: vagrant password: vagrant
sudo apt-get update sudo apt-get install build-essential zlib1g-dev git-core sqlite3 libsqlite3-dev sudo aptitude install mysql-server mysql-client
sudo nano /etc/mysql/my.cnf change: bind-address = 0.0.0.0
mysql -u root -p
use mysql GRANT ALL PRIVILEGES ON . to root@'%' WITH GRANT OPTION; FLUSH PRIVILEGES; exit
sudo /etc/init.d/mysql restart
Vagrant::Config.run do |config|
config.vm.box = "lucid32"
config.vm.box_url = "http://files.vagrantup.com/lucid32.box"
#config.vm.boot_mode = :gui
config.vm.forward_port 3306, 13306
config.vm.network :hostonly, "33.33.33.10"
end
Set dynamic dns in router settings https://prnt.sc/o5jnxp
Set port forwarding in router settings https://prnt.sc/ou9lqp (more details https://www.noip.com/support/knowledgebase/general-port-forwarding-guide/)
Install Dynamic Update Client https://www.noip.com/download
Find out your public ip here https://2ip.ru/
Another machine access by mysql -h 176.104.148.151 -P 3306 -u root -p