MySQL connector

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
9/11/2011 4:08:52 PM
Gravatar
Total Posts 2

MySQL connector

Dear Joe,

I've inserted the MySQL.Data.dll from MySQL connector inside the bin folder but referencing it in Web.config is difficult.I already referenced the correct version of the connector.

Where should I insert it?After the reference to user.config ?

There is a MS SQL reference in web.config.Even if I delete it connecting to the databease fails.

The host recommended to use the code below:

<system.web>
<compilation debug="true">
<assemblies>
<add assembly="MySql.Data, Version=6.4.3.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d"/>
</assemblies>
</compilation>
<customErrors mode="Off"/>
</system.web>

But it doesn't work.

Thanks a lot.

BR.azil

 

 

9/12/2011 10:44:52 AM
Gravatar
Total Posts 1196
Proud member of the mojoPortal team

Help support mojoPortal!
Add-on modules

Re: MySQL connector

Hi there. You don't need to download the MySQL Connector for .NET or change anything in Web.config to make mojoPortal work with MySQL. The procedure for configuring mojoPortal for MySQL is explained on the Using MySQL documentation page.

First, you should download the MySQL data layer file from the mojoPortal Codeplex Download page. When you place the files from that download into your web tree, as detailed in the ReadMe.txt file in the zip package, you will overwrite the MS SQL versions of them.

After that, you just need to put a MySQL connections string into your user.config.

I hope this helps,

Jamie

9/15/2011 6:25:23 PM
Gravatar
Total Posts 2

Re: MySQL connector

Dear Jamie,

It looks much better now!But an error appeared at the end......

Probing system...
File system permissions ok.
MySQL database connection ok.
database permissions are sufficient to alter schema.
database initial schema already exists.
database core schema is up to date.
1 site(s) found.
This site appears to be running in a secured environment using Medium Trust policy or at least lower than Full Trust.

etc.......

Running script webstore - 0.0.7.1 - 00:00:16.2714258
Configuring feature Web Store - 00:00:16.2870264
Configuring feature Xml/Xsl - 00:00:16.3182276
Ensuring all features are installed in server admin sites... - 00:00:16.3494288
No pages found so creating default content...

An Error Occurred:Method not found: 'Int32 mojoPortal.Data.DBPageSettings.Create(Int32, Int32, System.String, System.String, System.String, Int32, System.String, System.String, System.String, System.String, System.String, Boolean, Boolean, Boolean, Boolean, System.String, System.String, System.String, System.String, Boolean, System.String, Boolean, Boolean, Boolean, Boolean, System.String, System.String, System.String, System.Guid, System.Guid, Boolean, System.Guid, System.String, System.DateTime, Boolean, Boolean, Boolean, Boolean, System.String, Boolean, Boolean, Boolean, System.Guid)'.

Source:mojoPortal.Business

Stack Trace at mojoPortal.Business.PageSettings.Create() at mojoPortal.Web.mojoSetup.SetupDefaultContentPages(SiteSettings siteSettings) at mojoPortal.Web.UI.Pages.SetupHome.RunSetup() at mojoPortal.Web.UI.Pages.SetupHome.Page_Load(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint

Thanks a lot!

Marcio/Brazil/São Paulo


 

9/16/2011 6:28:15 AM
Gravatar
Total Posts 18439

Re: MySQL connector

It sounds like you installed a different version of the MySql data layer than the version of mojoPortal, the need to be the same.

You must sign in to post in the forums. This thread is closed to new posts.