Subject:mySQL DB Connection 2 Author:daniel weberhofer Date:31 Mar 2008 04:28 PM
Hi,
I face the same problem as described in
Home » Boards » Stylus Studio Developer Network » Stylus Studio Technical Forum » mySQL DB Connection
when I want to connect to MYSQL community edition on my Vista PC:
java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/test
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at com.stylusstudio.DataDirectDDXQStub.connect(DataDirectDDXQStub.java:84)
at com.stylusstudio.DataDirectDDXQStub.getConnection(DataDirectDDXQStub.java:120)
In the project node I have added
C:\Program\mysql-connector-java-5.1.6\mysql-connector-java-5.1.6-bin.jar saved the project and restart Stylus Studio.
But I still get java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/test .
Subject:mySQL DB Connection 2 Author:Minollo I. Date:31 Mar 2008 04:38 PM
The driver .jar file doesn't need to be added to the project classpath, but to the connection you create. When adding a connection and selecting "MySQL Community Edition", enter/select the full driver's location in the "Driver Classpath" field.
Subject:mySQL DB Connection 2 Author:daniel weberhofer Date:01 Apr 2008 02:54 AM
>The driver .jar file doesn't
>need to be added to the
>project classpath, but to the
>connection you create. When
>adding a connection and
>selecting "MySQL Community
>Edition", enter/select the
>full driver's location in the
>"Driver Classpath" field.
I tried this too - same result.
I also tried it on a XP machine - same error message.
- same jdbc driver version as you are using (C:\Program\mysql-connector-java-5.1.5\mysql-connector-java-5.1.5.bin.jar)
- disable windows vista UAC
- Capital letter path (C:\TEST\mysql-connector-java-5.1.6-bin.jar)
... of course always with restarting Stylus Studio 2008.