Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7003803
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:07:00+00:00 2026-05-27T21:07:00+00:00

I am trying to change the Orchard.Setup module so i can install Orchard CMS

  • 0

I am trying to change the Orchard.Setup module so i can install Orchard CMS 1.3.10 with MySQL as datase.

I come so long that i getting MySQL in the GUI for setup and when i press setup button i getting this error message from orchard:

The value 'MySql' is not valid for DatabaseOptions.

But i can not find how i adding MySql as DatabaseOptions, do anyone else get it to work with MySQL?

The old module for MySQL is not compatible wtih the latest version of Orchard CMS thats why it ring to make it by my own, if i get it to work i going to release it open source for others to use.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T21:07:00+00:00Added an answer on May 27, 2026 at 9:07 pm

    The error you’re talking about is because the DatabaseOptions property is a boolean. You’ll need to change that property to accept string values. There are a few places in the Setup Controller that you’ll need to change how that property is used…

    However, the most important part is to implement a DataServicesProvider. I added mine to core, but I think you could just put it in the Setup Module as a feature. Mine looks like this…

    namespace Orchard.Data.Providers {
        public class MySqlDataServiceProvider : AbstractDataServicesProvider
        {
            private readonly string _connectionString;
    
            public MySqlDataServiceProvider(string dataFolder, string connectionString)
            {
                _connectionString = connectionString;
            }
    
            public static string ProviderName
            {
                get { return "MySql"; }
            }
    
            public override IPersistenceConfigurer GetPersistenceConfigurer(bool createDatabase)
            {
                var persistence = MySQLConfiguration.Standard;
    
                if (string.IsNullOrEmpty(_connectionString))
                {
                    throw new ArgumentException("The connection string is empty");
                }
    
                persistence = persistence.ConnectionString(_connectionString);
                return persistence;
            }
        }
    }
    

    Oh, and don’t forget you’ll need to reference MySql.Data. It’s available as a NuGet package.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to change one of the legacy code that declares everything in
I am trying to change the priority of a thread but I can't get
I trying to change a website that is already up and running. I have
I trying to change background of one button when another button clicked. i can't
I'm trying to insert a image in my Orchard module, but I'm having some
I'm trying change an input mask for textbox when the the check box has
Im trying to change images on click similar to what SO does with the
I´m trying to change a spring jsp example to use freemarker. I changed all
I'm trying to change the background color of a single subplot in a MATLAB
I'm trying to change the background color of single cell be based on a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.