0
I have a vagrant file using puppet to configure mysql.
Here is the relevant code in default.pp:
class { '::mysql::server':
override_options => { 'mysqld' => { 'bind_address' => '0.0.0.0' } },
grants => {
'root@10.0.2.2/*.*' => {
ensure => 'present',
options => ['GRANT'],
privileges => ['ALL'],
table => '*.*',
user => 'root@10.0.2.2',
},
},
}
This works, but from the host machine (not the VM) I can only access mysql via 127.0.0.1 and I want to be able to access via localhost (the default for the mysql client).
So my questions are: 1) what is the significance of 10.0.2.2? ( copied and pasted this from an example) 2) how do I configure the mysql install on the VM to be accessible from the host OS (mac) as
mysql -u root -h localhost
I should also note that I tried changing root@10.0.2.2 to root@localhost and this did not work.
thanks! phil