aspose file tools
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 » Java » 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
 
 
subject: Problem connecting Jdeveloper to MySQL
 
Threads others viewed
getting last row
WA #1.....word association
Advice of database type is needed
Using datasource in netbeans to get connection
Oracle to buy Sun Microsystems..
MyEclipse, The Clear Choice

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture