Connect to MySQL with JDBC over network

前端 未结 3 434
被撕碎了的回忆
被撕碎了的回忆 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:26

    You can test the server setup using the MySQL Workbench or mysql client which will narrow down the problem. It's also sometimes useful to just see if the server's there:

    telnet host 3306

    It'll tell you the version number of the server and some other binary junk. Enough to know your host is listening.

提交回复
热议问题