[opencms-dev] Error connection

Jose Ignacio Yarza jiyarza at opensistemas.com
Fri Mar 23 21:42:05 CET 2012


Hi Rafael,

Might be a typo in that connection string? Try with jdbc:mysql://...
instead of jdbc:mysqld://...

Cheers,

Jose

On Fri, 2012-03-23 at 17:28 +0100, Rafael Braza Polanco wrote:
> How does OpenCms connect to a database? with sql taglib or java code?
> 
> El 22 de marzo de 2012 19:46, Rafael Braza Polanco
> <rafaelbrazapolanco at gmail.com> escribió:
>         Hello,
>         
>         
>         I'm working with OpenCms 8.0.3 and MySQL. I'm trying to
>         connect to a schema (database) called test using the sql
>         taglib. This the code:
>         
>         
>         ...
>         <%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql"
>         %>
>         
>         
>         <sql:query
>         dataSource="jdbc:mysqld://localhost:3306/test,com.mysql.jdbc.Driver,user,password" 
>         sql="SELECT * FROM test.cliente" var="datos" />
>         ...
>         
>         
>         But the next SQLException appears:
>         
>         
>         Unable to get connection, DataSource invalid:
>         "java.sql.SQLException: No suitable driver found for
>         jdbc:mysqld://localhost:3306/test
>         
>         
>         Does somebody know the reason?
>         
>         
>         Thank you.
> 
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
> 
> 
> 

-- 
Open Sistemas
Jose Ignacio Yarza Vidal
Telf: 649 157 537






More information about the opencms-dev mailing list