Connect to MySQL with JDBC over network

前端 未结 3 430
被撕碎了的回忆
被撕碎了的回忆 2020-12-11 10:36

I am trying to connect to MySQL database over a network. I have installed MySQL, and the service is running on the default port. I have also install the SQL connector to the

3条回答
  •  既然无缘
    2020-12-11 11:22

    By default, MySQL doesnt allow remote access and only allow local access. You will have to modify your /etc/mysql/my.cnf config (on Linux) with:

    bind-address = 192.168.1.45 // Your Server IP address
    # skip-networking // This should be commented .
    

    See the whole procedure here.

提交回复
热议问题