connecting to mysql server on another PC in LAN

前端 未结 10 859
[愿得一人]
[愿得一人] 2020-12-09 07:00

I have mySQL setup in a PC on my local network, how do I connect to it? I also have mySQL installed in this computer (which I want to use to connect to the database).

<
10条回答
  •  佛祖请我去吃肉
    2020-12-09 07:27

    actually you shouldn't specify port in the host name. Mysql has special option for port (if port differs from default)

    kind of

    mysql --host=192.168.1.2 --port=3306
    

提交回复
热议问题