Accessing MySQL from Host Machine
In the VM, edit /etc/mysql/my.cnf
Make MySQL bind to all IPs
#bind-address = 127.0.0.1 Â # old value
bind-address = 0.0.0.0 # add this
Restart MySQL
sudo service mysql restartLogin to MySQL in VM
mysql -u root -pÂAdd new user
grant all privileges on openmrs.* to 'root'@'%' identified by 'OpenMRS'; flush privileges;ÂLogin from host machine
Â
Â