I tried to sudo netstat -natp | grep mysql
to see what port mysql was listening on and I see that it is actually listening on what is below. I also did an ifconfig
to see what ip I was on within the vagrant box. I am trying to find out this info so that I can connect to a mysql database through a vagrant virtual machine, but use that information in an .env inside of a laravel application that is outside of the box. Can anyone help?
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LIST