This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes JDBC and the fly likes Problem connecting Jdeveloper to MySQL Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "Problem connecting Jdeveloper to MySQL" Watch "Problem connecting Jdeveloper to MySQL" New topic
Author

Problem connecting Jdeveloper to MySQL

mark mathis
Greenhorn

Joined: Mar 14, 2002
Posts: 13
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

Joined: Mar 25, 2002
Posts: 264
yes it is poosible .
Better u see this website and download "
http://mmmysql.sourceforge.net/"
Tejeshwara Murthy K.G
Greenhorn

Joined: Apr 08, 2002
Posts: 4
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
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Problem connecting Jdeveloper to MySQL
 
Similar Threads
Using datasource in netbeans to get connection
Advice of database type is needed
WA #1.....word association
Oracle to buy Sun Microsystems..
getting last row