Re: mysql in java error connection
Fabian Bieker <[email protected]>
| Newsgroups | gmane.comp.db.mysql.java |
|---|---|
| Message-ID | <[email protected]> |
SOF - Dragone Jose Luis wrote: > Sorry if the answer is already in the archives but: > > > > I have no idea on how to connect to MySQL 4.1.11 using java 1.5 > > > > I'm trying this way: > > > > public static final String DRIVER = "com.mysql.jdbc.Driver"; // this one > exist and is in : src/com/mysql/jdbc/Driver.java Imho you should have a compiled version of Driver.java somewhere where it's found by your java runtime, use CLASSPATH env variable etc. I for example use CLASSPATH=$CLASSPATH:/home/fb/lib/mysql-connector-java-5.0.4-bin.jar just my 2 cents, fb -- Fabian Bieker, QA Netzwert AG, An den Treptowers 1, 12435 Berlin, Germany Voice: +49.30.5900800-0 Fax: +49.30.5900800-700 http://www.netzwert.ag -- MySQL Java Mailing List For list archives: http://lists.mysql.com/java To unsubscribe: http://lists.mysql.com/[email protected]