Sponsored Links
My Products
linux covering server

mysql computer is already installed in linux and utility also.i poverty to enter my java(core) covering with mysql computer in linux.but i hit ClassNotFoundExcepition in my programe,why plz verify me with solution.my writing is:

import java.sql.* ;

public collection exam
{
public noise vacuum main( String[] args )
{
try
{
Class.forName( “com.mysql.jdbc.Driver” ).newInstance();
try
{
Connection jailbird = DriverManager.getConnection( “jdbc:mysql://localhost/scholar”, “root”, invalid );

try
{
Statement evidence = con.createStatement();

ResultSet rs = statement.executeQuery(”SELECT NAME FROM STUDENT”);

patch ( rs.next() )
{
System.out.println( rs.getString( “NAME” ) );
}

rs.close();
statement.close();
}
grownup (


Related Blogs


Related Blogs

Share and Enjoy:
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • LinkedIn
  • Live
  • MySpace
  • Print this article!
  • Reddit
  • StumbleUpon
  • Technorati
  • Wykop
  • YahooMyWeb
  • E-mail this story to a friend!

2 Responses to “database connectivity with mysql server on linux?”

Leave a Reply