MEMSQL Installation Failed need help to unbind a port 3306

Hi,
I followed the instructions to install MEMSQL on my Mac but the installation failed.
I removed the container and tried to install again but it is failing because of the port is already allocated.
Please let me know how can I fix this issue. Thank you!!!

docker: Error response from daemon: driver failed programming external connectivity on endpoint memsql-ciab (23d5ac032740400c31114876c861acf897197e817a3ebc6edc181c0189fa9acc): Error starting userland proxy: Bind for 0.0.0.0:3306 failed: port is already allocated.

ERRO[0000] error waiting for container: context canceled

I was able to solve the issue. I started the container on a different port because port 3306 was already allocated to MySQL. Thank you!!!

1 Like

On mac you can see what process id is using port 3306 with:
lsof -ti:3306

If you are running MySQL in another docker container using that port then just stop the container. If you are running MySQL natively on your mac, why? If you really need it then yeah what you did, mapping port 3306 in the container to a different port on your host is a good solution.

1 Like