jzola_hyperic
Enthusiast
Enthusiast

jdbc mysql connection via socket?

I want to set mysql server connection, can i use unix socket instead of tcp?

i tried these but didnt work:

jdbcUrl=
jdbc:mysql://localhost:/var/run/mysqld5/mysqld.sock

jdbcUrl=
jdbc:mysql://localhost:/var/run/mysqld5/mysqld.sock/mysql

error:
"The configuration has not been set for this resource due to : Invalid configuration: Error contacting resource: Query failed for availability: Must specify port after ':' in connection string"
0 Kudos
1 Reply
dhustace
Contributor
Contributor

Unix domain sockets are not possible with a Java program that uses the JDBC API.
0 Kudos