IntelliJ IDEA
 
Get IntelliJ IDEA
You are viewing the documentation for an earlier version of IntelliJ IDEA.

Connect to MySQL with unix sockets

Last modified: 10 August 2022

Linux only

Junixsocket JAR files: the junixsocket repository at github.com

IntelliJ IDEA must be on the host where the server is running (MySQL 8.0 Reference Manual at dev.mysql.com)

On Unix, you can connect to the mysqld server by using two different ways: a Unix socket file (for example, /var/run/mysqld/mysqld.sock), or by using TCP/IP (for example, 127.0.0.1:3306). A connection that is created with a Unix socket file is faster than TCP/IP but can only be used when connecting to a server on the same computer. When you use a Unix socket file, you can skip a hostname and port in the connection string.