Hello there, am a student and love to move to opensolaris , i have install the latest version and its running greate. i have create a java application and want to connect it to mysql. when i run the application i get an error. When you look at windows OS, there is a place for you to set up the Data Source Name in the Administration tool in control panel. is it possible for anyone to come to my aid please....
Here is the program " import java.sql.*; public class Connect { public static void main (String[] args) { Connection conn = null; try { String url = "jdbc:mysql://localhost/LuxuryCar"; Class.forName ("com.mysql.jdbc.Driver").newInstance (); conn = DriverManager.getConnection (url); System.out.println ("Database connection established"); } catch (Exception e) { System.err.println ("Cannot connect to database server"); } finally { if (conn != null) { try { conn.close (); System.out.println ("Database connection terminated"); } catch (Exception e) { /* ignore close errors */ } } } } } thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/webstack-discuss/attachments/20090813/3ecac12e/attachment.html>