是否可以将MySql与oracle.jdbc.pool.OracleDataSource类一起使用?
我试图这样做,但得到例外......
"Exception in thread "main" java.sql.SQLException: Invalid Oracle URL specified
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:208)
at oracle.jdbc.pool.OracleDataSource.getPhysicalConnection(OracleDataSource.java:301)
at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:221)"
其中url是,
" String url =" jdbc:mysql:// localhost:3306 / test";"