rahul_ashish
asked on
Connecting to MYSQL
HI
I have a database in MySQL but i don't know know how to connect to MySQL. i want know, do i need a separate driver to connect to MySQL from java or the java ODBC will connect me to MySQL. if i need a separate driver then from where can i get that.
I have a database in MySQL but i don't know know how to connect to MySQL. i want know, do i need a separate driver to connect to MySQL from java or the java ODBC will connect me to MySQL. if i need a separate driver then from where can i get that.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
> do i need a separate driver to connect to MySQL from java
yes - you need to download MySQL JDBC driver
yes - you need to download MySQL JDBC driver
ASKER
For Jose
Did u download any 8.jar file for that except one from SourceForge.net
Did u download any 8.jar file for that except one from SourceForge.net
ASKER
For Jose
Did u download any *.jar file for that except one from SourceForge.net
Did u download any *.jar file for that except one from SourceForge.net
ASKER
Thanks for the help
I'm curious about a couple things:
1. did my suggestion not work?
2. since jose_tijo answered your question thoroughly, why does he only receive a "b"?
-corey
1. did my suggestion not work?
2. since jose_tijo answered your question thoroughly, why does he only receive a "b"?
-corey
Hi
I downloaded only the driver from sourceforge.net. Nothing else.
Tijo Jose
I downloaded only the driver from sourceforge.net. Nothing else.
Tijo Jose
ASKER
hey what is the port number for connecting to the MySQL?
ASKER
hey what is the port number for connecting to the MySQL?
ASKER
hey what is the port number for connecting to the MySQL?
http://mmmysql.sourceforge.net/
A sample connection:
Connection conn = null;
try {
DriverManager.registerDriv
conn = DriverManager.getConnectio
}
catch( SQLException e ) {
System.out.println( "argh!" );
}
-corey