I am able to access Mysql Database using previous following configuration.
And i am also able to access *MYSQL NDB CLuster* database using simple JDBC connectivity.
Problem is when i am using *MYSQL NDB CLuster* database credentials that time i am not able to access Database using Hibernate.
Please suggest any other configuration for Connect *MYSQL NDB CLuster *database using Hibernate configuration file (hibernate.cfg.xml).
{code:java} <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> <hibernate-configuration> <session-factory> <property name="hibernate.bytecode.use_reflection_optimizer">false</property> <property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property> <property name="hibernate.connection.password">HAZE@rt!f!c!aldb</property> <property name="hibernate.connection.pool_size">10</property> <property name="hibernate.connection.url">jdbc:mysql://192.168.1.187:3306/haze_videocon_v0.8</property> <property name="hibernate.connection.username">haze</property> <property name="hibernate.current_session_context_class">thread</property> <property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property> <property name="hibernate.search.autoregister_listeners">false</property> <property name="hibernate.show_sql">true</property> <property name="hibernate.validator.apply_to_ddl">false</property> </session-factory> </hibernate-configuration>
{code}
I think the soluation is new dialect is required for MySQL NDB clustered table types. Otherwise any changes in configuration file |
|