Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# guus81nl 9/17/2009 5:29 PM (edited 9/17/2009 5:32 PM)
Today I heard my hosting provider will charge extra money for MSSQL in the near future. No problem of course because I wrote all scripts in MySQL as well as MSSQL. :)

But now I've setup a test environment with MySQL, when I run the code I got the rather generic error 'Container not initialized' (We all know that one...) So I decided to dig deeper. And got to the following exceptions:

---
Exception:
Could not create the driver from NHibernate.Driver.MySqlDataDriver.

InnerException:
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.
---

Now I've added the MySql.Data.dll (Connector 6.0) to the app directory (Copy Local to true). But no luck...

Any ideas? Is this a trunk specific problem? Or am I missing something?

Oh yeah PS, of course the MySql.Data.dll is located in GAC as well. 5.0 and 6.0 versions for that matter.

Guus


# Yeorwned 9/18/2009 4:12 AM
Did you read the topic that was right under your with the exact same subject? Martijn addressed this issue in the following thread:

http://www.cuyahoga-project.org/home/forum.aspx?g=posts&t=1333
# guus81nl 9/18/2009 9:33 AM
Thanks for your reply,

I've read that, but that doesn't seem to be the same issue. I don't even get at any scripts. NHibernate isn't able to communicate with the Connector at all.

The exceptions you posted differ from mine as well. They look alike, but aren't the same. ;)

Regards
# guus81nl 9/18/2009 11:03 AM
Ok, I got through the 1st exception. So for social participation to the community:

Download newest Connector/Net from MySql site here.

Copy the MySql.Data.dll MANUALLY (so not through references) to the Cuyahoga.Web/bin directory.

That should do it. If not, check here.

Regards
# Yeorwned 9/18/2009 5:16 PM
guus81nlThanks for your reply,

I've read that, but that doesn't seem to be the same issue. I don't even get at any scripts. NHibernate isn't able to communicate with the Connector at all.

The exceptions you posted differ from mine as well. They look alike, but aren't the same. ;)

Regards

It isn't about the original post. It's the response that matters and it is the exact same problem you are running into. Gotta read past the first post. (h)
martijnbMySQL and PostgreSQL as well don't have any of the 2.0 db scripts yet. It's planned after the first alpha, but if somebody is willing to convert the SQL Server scripts, we'd be more than happy to incorporate these.
# guus81nl 9/20/2009 11:34 AM
Still... Not the same problem. Did you read my post at all?! It didn't have anything to do with the scripts. :P No matter. (a)

By the way I migrated the 2.0.0.sql scripts for core and modules yesterday and my version of the trunk runs on mysql now. :) So if you guys are interested, just tell me how to upload it to svn (patch or just check in?).

Regards
# Yeorwned 9/20/2009 9:16 PM
Well it was the same problem no matter how you try to spin it. MySQL isn't supported on the trunk because it has no database structure and no data connector...
# guus81nl 9/21/2009 9:01 AM
I don't understand how this discussion adds value to this forum topic. So for all who's struggling to get MySql to work:
Ok, I got through the 1st exception. So for social participation to the community:

Download newest Connector/Net from MySql site here.

Copy the MySql.Data.dll MANUALLY (so not through references) to the Cuyahoga.Web/bin directory.

That should do it. If not, check here.

Regards

I will send a patch file with Core/2.0.0.sql and Modules/2.0.0.sql files to Martijn asap.

Topic closed.

Regards