-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: nhibernate + Mysql
PostPosted: Tue Jun 16, 2009 1:14 pm 
Regular
Regular

Joined: Tue Jun 26, 2007 11:50 am
Posts: 105
Hello,

I use nhibernate 2.0.1 and I would like to connect to a mySQL database.

Though I've installed mysql-connector-net-6.0.4 and referenced MySql.Data.dll, I get the following error:
Quote:
The IDbCommand and IDbConnection implementation in the assembly MySql.Data could not be found. Ensure that the assembly MySql.Data is located in the application directory or in the Global Assembly Cache. If the assembly is in the GAC, use <qualifyAssembly/> element in the application configuration file to specify the full name of the assembly.


What else should I do to use MySQL with Nhibernate?

regards,

mathmax


Last edited by mathmax on Tue Jun 16, 2009 3:17 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: nhibernate + Mysql
PostPosted: Tue Jun 16, 2009 3:15 pm 
Hi

1) Did you download MySQL connector for .NET?
2) Did you add the assembly in your project?
3) Is the connector supported by the NHibernate version you are using?

[]s


Top
  
 
 Post subject: Re: nhibernate + Mysql
PostPosted: Tue Jun 16, 2009 3:19 pm 
Regular
Regular

Joined: Tue Jun 26, 2007 11:50 am
Posts: 105
I've updated my post. :-) Yes I've installed mysql-connector-net-6.0.4 and referenced MySql.Data.dll. How to know if NHibernate-2.0.1.GA supports the connector ?

EDIT: Ok. I've just find a solution to my problem:
http://www.darkside.co.za/archive/2009/ ... mysql.aspx

Thanks


Top
 Profile  
 
 Post subject: Re: nhibernate + Mysql
PostPosted: Tue Jun 16, 2009 3:29 pm 
In NHibernate reference
You can find the dialect supported by NHibernate 2.0.

I'm sure MySQL 5, MySQL 5.1 are fully supported.
I'm using MySQL.Data.dll version 5.1.5.0 and works fine.

[]s


Top
  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.