Problem to connect with local machine from container


How I can connect to my local database?
(firewall in the local machine is disabled)

What can I do?

mysql -h -u root -p

works for me!


try this instead

mysql -h localhost -u root -p


Ok. My final thought (out of more ideas): check the MySQL connect address at devilbox control panel.

See my image. I can connect to both and

I don’t compose container with mysql. I use mysql only in local machine, and want to connect with it from container. Is it impossible?

Sorry, I’m not sure. Maybe someone else can help?

Maybe, but I am very grateful to you :wink:

the problem resolved by itself. I carefully read the documentation again. Maybe someone will need my experience :slight_smile:

mysql -h -u root -p

and everything works