• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem connecting Jdeveloper to MySQL

 
mark mathis
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, I'm new to the Jdeveloper tool and am trying to get a connection to a mySQL database using the mySQL driver mm.mysql.... Is this possible?
 
Graham Thorpe
Ranch Hand
Posts: 265
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes it is poosible .
Better u see this website and download "
http://mmmysql.sourceforge.net/"
 
Tejeshwara Murthy K.G
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi mark

It's possible to connect.

Try with this source code.
Connection con = null;
try
{
Class.forName("org.gjt.mm.mysql.Driver");
con = DriverManager.getConnection("jdbc:mysql://localhost/DBName?user=root");//This is for Linux for windows don't specify user=root.
}
catch (SQLException e)
{
System.out.println("error "+e);
}
Regds
Tejesh
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic