vagrant - Mysql virtual machine remote connection failure -
i created virtual machine on virtual box using vagrant puppet configurations. in vm, can connect mysql db want connect vm's mysql local machine.
firstly, tried change "bind-adress" value in my.cnf restarted mysql service didn't work. think not change bind-address should be. when run "mysql --help" command bind-address's value "no default value".
vm properties:
- ubuntu 14.04
- mysql 5.6
- forwarded_port ( host:7104 -> guest:22 )
part of "mysql --help" command
p.s. => after changed /etc/mysql/my.cnf file, restarted mysql service
please :)
step1: comment bind address entry in cnf file.
step2: restart mysql service.
step3: stop iptables service if not using other purpose-
service iptables stop
step4: grant permission 1 user, connect db remotely.
grant privileges on *.* user1@'%' identified 'user1';
here test have provided rights globally, can prepare grant statement per requirement.
Comments
Post a Comment