when I set up connection to mysql in my
java app I would use:
Class.forName("com.mysql.jdbc.Driver").newInstance();
dbConnection = DriverManager.getConnection("jdbc:mysql://localhost/dbName?user=root&
password=MyP&socketFactory=com.mysql.jdbc.NamedPipeSocketFactory
[originally posted on jforum.net by Anonymous]