MySQL: How to allow remote connection to mysql

后端 未结 16 1135
北海茫月
北海茫月 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:48

    If your MySQL server process is listening on 127.0.0.1 or ::1 only then you will not be able to connect remotely. If you have a bind-address setting in /etc/my.cnf this might be the source of the problem.

    You will also have to add privileges for a non-localhost user as well.

提交回复
热议问题