MySQL Over Local Network #270
-
Hi Takeout Fans - Is there an easy way to make my local MySQL database available over my local network (or, I guess, over the Internet). This would be a big help in sharing a development database. Looking at the Docker app, it seems to be bound to 0.0.0.0::3307 - is there a way to change that (through Takeout or through the Docker app) to the actual IP address (NAT or real) of the machine? Thanks!! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @ulfie22! Takeout does not have a built-in network tunnel to share connections externally, but you can easily use ngrok to do that. Install ngrok and run For example, in the screenshot above, you can see a forwarding address of From an external network, you can connect via mysql to host |
Beta Was this translation helpful? Give feedback.
Hey @ulfie22!
Takeout does not have a built-in network tunnel to share connections externally, but you can easily use ngrok to do that.
Install ngrok and run
ngrok tcp 3306
(or whatever port your takeout container is bound to). This will provide a forwarding address that you can share with external networks.For example, in the screenshot above, you can see a forwarding address of
tcp://8.tcp.ngrok.io:15423
From an external network, you can connect via mysql to host
8.tcp.ngrok.io
with port15423
.