Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...DNN & MySqlDNN & MySql
Previous
 
Next
New Post
12/10/2013 6:07 PM
 

In theory it could  help - peta poco works with MySQL - and the script calls are for the most  part generic.

 
New Post
1/14/2014 3:29 PM
 

If all you need to do is *integrate* with a MySQL database, you can of course use a suitable .NET MySQL connector:

http://dev.mysql.com/downloads/connector/net/6.8.html

To access the MySQL database from a module, you'll need a suitable entry in your web.config e.g.

<add name="MySqlDataProvider" 
    type="MySql.Data.MySqlDataProvider, MySql.MySqlDataProvider" 
    connectionStringName="SiteMySqlServer" 
    upgradeConnectionString=""
    providerPath="~\Providers\DataProviders\MySqlDataProvider\" 
    objectQualifier="" 
    databaseOwner="root" 
/>

It's easy enough to then create your concrete SQLDataProvider.

Add a reference to MySql.Data:

using MySql.Data.MySqlClient;

Here's how you'd get your connection string:

_connectionString = Config.GetConnectionString("SiteMySqlServer");

And here's an example of calling a DB-specific helper method from your concrete class:

return (IDataReader)MySqlHelper.ExecuteReader(ConnectionString, "SELECT * FROM Expense;");

Compare this with the MS SQL Server version:

return (IDataReader)SqlHelper.ExecuteReader(ConnectionString, CommandType.Text, "SELECT * FROM Expense;");

 
New Post
10/12/2015 5:18 AM
 

Hi,

Can we use DNN  with My-Sql (MariaDb) as Database ?

Did you get a solution for that issue ?

Please help me.

Thanks

 

 
New Post
10/12/2015 6:46 AM
 
Kuldeep,
sorry, DNN 7 (as well as previous versions and DNN 8) are optimized for Microsoft SQL Server.
There are plans to use Entity Framework for DNN neXt, which would support other DBMS as well.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
10/12/2015 7:21 AM
 
Thank you for reply!
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...DNN & MySqlDNN & MySql


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out