MySQL Forums
Forum List  »  Microsoft SQL Server

Class.forName("com.mysql.jdbc.Driver"); con=DriverManager.getConnection("jdbc:mysql://lo calhost:3306/karthicraj","mysql","mysql");
Posted by: karthicraj rajendran
Date: August 10, 2009 02:33PM

Hi friends..
i have correct that error myself..
fir problem solved by
add mysql .jar then correct datasource name/...
example code :

Class.forName("com.mysql.jdbc.Driver");
con=DriverManager.getConnection("jdbc:mysql://localhost:3306/karthicraj","mysql","mysql");
stm=con.createStatement();

String strQry="update sriram set age=?,salary=? where name=? and age=?";

thanks my dear friends

Options: ReplyQuote


Subject
Written By
Posted
Class.forName("com.mysql.jdbc.Driver"); con=DriverManager.getConnection("jdbc:mysql://lo calhost:3306/karthicraj","mysql","mysql");
August 10, 2009 02:33PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.