UNIX socket implementation for Java?

后端 未结 7 713
感动是毒
感动是毒 2020-11-27 16:10

I realize that since UNIX sockets are platform-specific, there has to be some non-Java code involved. Specifically, we\'re interested in using JDBC to connect to a MySQL in

7条回答
  •  庸人自扰
    2020-11-27 16:44

    You could use junixsocket: https://github.com/kohlschutter/junixsocket

    It already provides code for connecting to MySQL from Java (Connector/J) via Unix sockets.

    One big advantage compared to other implementations is that junixsocket uses the standard Java Socket API.

提交回复
热议问题