Ver Mensaje Individual
  #1 (permalink)  
Antiguo 19/03/2004, 06:35
Avatar de Jose2k
Jose2k
 
Fecha de Ingreso: junio-2003
Mensajes: 98
Antigüedad: 21 años, 9 meses
Puntos: 0
JDBC con mysql

buenas, gracias por su atencion y por su ayuda muchachos han sido como maestros para mi desde que me he iniciado con x lenguaje.

bueno, vamos al problema:

he estado investigando el uso de mysql en java y encontre un jar file, 'mysql-connector-java-[version]-bin.jar' y la verdad es que he visto los manuales y no entiendo NADA de lo que dicen por ejemplo:

Once you have un-archived the distribution archive, you can install the driver in one of two ways: Either copy the "com" and "org" subdirectories and all of their contents to anywhere you like, and put the directory holding the "com" and "org" subdirectories in your classpath, or put mysql-connector-java-[version]-bin.jar in your classpath, either by adding the FULL path to it to your CLASSPATH enviornment variable, or by copying the .jar file to $JAVA_HOME/jre/lib/ext. If you are going to use the driver with the JDBC DriverManager, you would use "com.mysql.jdbc.Driver" as the class that implements java.sql.Driver.

Código PHP:
 cCLASSPATH %home dir%mysql-connector-java-[version]-bin.jar 
esto estaria bien? que hago con esa linea?

bueno me supongo que despues de aqui podre usar el driver en cualquier archivo de java que yo desee.. verdad?

hace poco pude usar base de datos en php y me parecio sencillo, sera igual en java?

bueno muchachos de nuevo GRACIAS!!!