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

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...MySQL AccessMySQL Access
Previous
 
Next
New Post
7/23/2006 11:38 PM
 

I reviewed serval thread regarding MySQL but, not very clear (free vs purchased).  I have MS SQL 2000 running but would also like connection to MySQL 4.x. I would like to use the DOTNETNUKE Built-in SQL module or prefer SQLGridSelectedView module (downloaded). I tried SQLGridSelectedView to connect with no sucess. Anyone have this module working with MySQL? I have MySQL connection striin added and DB instance is on another server that I can access okay. Please advise.

 
New Post
7/24/2006 12:53 PM
 

If you can't get what you want elsewhere you could look at our modules.  With the ActiveHTML module you can take a selection from the database and display it in any format you want using a asp:repeater like control.  Complete with heading, footing, details, anternate rows...

They use System.Data.sqlclient for data access so you should be able to connect to a MySQL server. 

Brillnat ActiveHTML module
A data access HTML module that functions like an asp:repeater control. For HTML savvy DotNetNuke implementers who want completely flexible data display capability.

Brillnat DbHTML module

A alternative to the core Text/HTML module that functions like it, but also allow tags to be placed in the text that will be replaced with data from several sources. 

1.  A selection set from a database
2.  Logged in user profile
3.  Portal information
4.  Querystring parameters
5.  User host information

For HTML savvy DotNetNuke implementers who want simple data access.

mj
Brillnat.com

System.Data.sqlclient


Michael Jackson
Brillnat.com
Custom module development
Database access tokenized HTML modules
 
New Post
7/24/2006 2:52 PM
 

You should be able to connect to your MySQL database as I have several other users that do.   Check out www.connectionstrings.com to determine the appropriate connection string. There are 10+ possible connection strings depending on providor or Driver being used.  Rememeber to include the approprivate provider and/or driver.   Just so I know, what version of DNN and MySQL are you using? 

Hopes this helps.
Paul
www.tressleworks.ca (home of SQLGridSelectedView)

 
New Post
7/25/2006 11:12 AM
 

Hi Paul,

I'm not sure which connect string is needed. I have MySQL 4.0.18 on port 3306 and ASPnet 2.0 and want to connect using the SQlGridSelectedView module.

I tried the following conenction string which fails with error below.

Data Source=nybcssmts;Port=3306;Database=abcsmartsalerts;User ID=root;Password=;Command Logging=false;

Error: Reports is currently unavailable.
DotNetNuke.Services.Exceptions.ModuleLoadException: An OLE DB Provider was not specified in the ConnectionString. An example would be, 'Provider=SQLOLEDB;'. ---> System.ArgumentException: An OLE DB Provider was not specified in the ConnectionString. An example would be, 'Provider=SQLOLEDB;'. at System.Data.OleDb.OleDbConnectionString.ValidateProvider(String progid) at System.Data.OleDb.OleDbConnectionString.ValidateConnectionString(String connectionString) at System.Data.OleDb.OleDbConnectionString..ctor(String connectionString, Boolean validate) at System.Data.OleDb.OleDbConnectionFactory.CreateConnectionOptions(String connectionString, DbConnectionOptions previous) at System.Data.ProviderBase.DbConnectionFactory.GetConnectionPoolGroup(String connectionString, DbConnectionPoolGroupOptions poolOptions, DbConnectionOptions& userConnectionOptions) at System.Data.OleDb.OleDbConnection.ConnectionString_Set(String value) at System.Data.OleDb.OleDbConnection.set_ConnectionString(String value) at System.Data.OleDb.OleDbConnection..ctor(String connectionString) at TressleWorks.SQLGridSelectedView.SQLGridSelectedView.DisplayGrid(String psSortExpr, Boolean pbExport) at TressleWorks.SQLGridSelectedView.SQLGridSelectedView.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---

My SQL command is simple "Select * from notifications;"

I know access to MySQL is working well because I have several PHP Web pages that connect successfuly with the below settings (excerpt).

// connect to the database
if (!($mylink = mysql_connect("nybcssmts:3306","root","")))
 {
  print "<h3>could not connect to database</h3>\n";
  exit;
 }
Mysql_select_db("abcsmartsalerts");

$inst_query = "select count(*) as count, Instance from notifications where EventTime > UNIX_TIMESTAMP(DATE_SUB(CURDATE(), INTERVAL ".$daysback." DAY)) group by instance order by severity, count DESC limit 0,10" ;

$result = mysql_query($inst_query)
  or die("ack! query failed: "
   ."<li>errorno=".mysql_errno()
   ."<li>error=".mysql_error()
   ."<li>query=".$inst_query
  );

Please advise.

 
New Post
7/25/2006 12:48 PM
 

As I noted in my previous message and as you can see from the error message, a provider is required.  Please select one of the connection strings that defines the provider.  Try the OLE DB connection string (Provider=MySQLProv;Data Source=mydb;User Id=UserName;Password=asdasd). 

Until a provider is defined, DNN (.NET actually) will not be able to open a connection.

Hopes this helps.
Paul.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...MySQL AccessMySQL Access


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