ok, der richtige treiber dürfte das sein, danke.
nur hab ich jetzt noch das problem, daß ich nicht weiß, wie ich den richtigen treiber einbauen soll.
das ganze soll nämlich eine JSP sein, normalerweise würde ich diesen ja einfach zum klassenpfad hinzufügen, aber wie funzt das hier?
aus der readme werd ich nicht ganz schlau.
Zitat:
Put mysql-connector-java-3.0.7-stable-bin.jar in your classpath, either by adding the
FULL path to it to your CLASSPATH enviornment variable, or putting it
in $JAVA_HOME/jre/lib/ext.
If you are using a servlet engine or application server, you will have
to read your vendor's documentation for more information on how to
configure third-party class libraries, as most application servers
ignore the CLASSPATH environment variable. If you are developing
servlets and/or JSPs, and your application server is J2EE-compliant,
you should put the driver's .jar file in the WEB-INF/lib subdirectory
of your webapp, as this is the standard location for third party
class libraries in J2EE web applications. You can also use the
MysqlDataSource, MysqlConnectionPoolDataSource or MysqlXADataSource
classes in the com.mysql.jdbc.jdbc2.optional package, if your J2EE
application server supports/requires them. MysqlDataSource supports the
following parameters (through standard "set" mutators):
user
password
serverName (see the next section about fail-over hosts)
databaseName
port
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.
You might use this name in a Class.forName() call to load the driver:
Class.forName("com.mysql.jdbc.Driver").newInstance ();
To connect to the database, you need to use a JDBC url with the following
format ([xxx] denotes optional url components):
jdbc:mysql://[hostname][,failoverhost...][ ort]/[dbname][?param1=value1][¶m2=value2].....
|
das hinzufügen ins $JAVA_HOME/jre/lib/ext hab ich schon probiert, bringt aber leider nix. irgendwie muß ich ja den treiber wohl auch im quelltext einbinden.