This project is read-only.

Orchard with Mysql

Topics: General
Apr 25, 2011 at 7:06 AM

If anybody know how to config MS Orchard with Mysql?, If yes then please give the details and source.

Apr 27, 2011 at 6:49 PM
Edited Apr 27, 2011 at 6:54 PM

In order to support MySQL in Orchard you'd need to implement a new DataServicesProvider. This data provider can be hooked up, for instance, in the setup module for orchard under a new feature. A few other small tweaks to the setup are required to be able to input parameters like the connection string.


I've uploaded an example into the gallery under:


Please note that this does NOT include the required DLL's so u'd have to get those after deploying this setup module in replacement to the one that ships with Orchard.


Also note that none of the suggested providers seems to work under medium trust OOB. As such, you may have constraints in some hosting environments.




Jul 9, 2011 at 7:03 PM

Very nice. Is the source code for your module available anywhere? I am bringing my source code base up from v1.0 to v1.2, and would be interested in using your module rather than the one I did previously which was not easily installable. But I deploy from source code, so I would like to know where I can get the source from?

Jul 9, 2011 at 9:51 PM

When you install the module, the source is included. I have created the codeplex project but it's still pending publishing (accept license from outercurve foundation etc). Should be online in the next few days.

Jul 9, 2011 at 10:00 PM

How do I extract the stuff out of the package file, without installing the module into a working server? Is the file in a standard format, like ZIP or something?

Jul 9, 2011 at 10:01 PM

Never mind, I opened it with 7-zip and it appears to be a standard archive format :)

Jul 9, 2011 at 10:04 PM

Ok, looking at the code this appears to be just a replacement for the Orchard.Setup module with MySQL functionality included, rather than a modularized database system. So it is not much different to what I did before. Also, I did not see the MySQL and SQLite data providers in the download? It just had the modified setup module, without the new data providers?

Aug 3, 2011 at 11:21 AM


When I try to setup a website with mysql provider, I got this error:

"Column 'ReservedWord' does not belong to table ReservedWords"

It seems that the problem is the fluently configuration that doesn't have the "hbm2ddl.keywords" setted to 'none'.

Any tips?


Oct 8, 2011 at 8:01 PM

What's the status of a MySQL module or patch? The link to the other codeplex project ( is either wrong or that project still hasn't been approved.

Oct 8, 2011 at 10:33 PM

Did you try to ask the author of the module through the gallery contact form?