MySQL: How to allow remote connection to mysql

后端 未结 16 1171
北海茫月
北海茫月 2020-11-21 06:15

I have installed MySQL Community Edition 5.5 on my local machine and I want to allow remote connections so that I can connect from external source.

How can I do that

16条回答
  •  太阳男子
    2020-11-21 06:49

    If you installed MySQL from brew it really does only listen on the local interface by default. To fix that you need to edit /usr/local/etc/my.cnf and change the bind-address from 127.0.0.1 to *.

    Then run brew services restart mysql.

提交回复
热议问题