Whenever I try to connect to my database an error comes up that reads: “Lost connection to MySQL server at ‘reading initial communication packet’, system error 0”. Most people suggest it has to do with an option “bind-access” which should be inside the my.cnf file. However I don’t have it inside the file and adding it didn’t seem to do much of anything. Does anyone have any idea or suggestion on what I should do?
Can you connect via the command line on the Linux VM itself?
Can you communicate with the Linux VM in other ways, like ssh?
Is it possibly a permissions issue? I would expect a different error messages, but it may be worth looking at your user table in your mysql database. Make sure that your user is authorized to connect using your physical machine’s IP address/network.