asp.net c#

i need connection string for mysql 5.1

how to connect mysql5.1 to asp.net webapplication 

 

0
vallimohan
5/4/2009 6:23:21 AM
asp.net.mysql 1929 articles. 0 followers. Follow

2 Replies
635 Views

Similar Articles

[PageSpeed] 36

 using MySql.Data.MySqlClient.MySqlConnection;

Server=myServerAddress;Database=myDataBase;Uid=myUsername;Pwd=myPassword;

or

check the follwing Link..

http://www.connectionstrings.com/mysql#28

hope it helps


Thanks
Avinash Tiwari

Remember to click “Mark as Answer” on the post, if it helps you.
0
qwe123kids
5/4/2009 6:34:44 AM

Hi There,

Connection to MySql 5.1 using ODBC

Driver={MySQL ODBC 5.1 Driver};Server=myServerAddress;Database=myDataBase;User=myUsername; Password=myPassword;Option=3;

More connectionstring http://connectionstrings.com/mysql#31

Simple Example connect via ODBC

Namespace to use

using System.Data.Odbc;

using (OdbcConnection conn = new OdbcConnection("YourConnectionString")) {using (OdbcCommand cmd = new OdbcCommand("SELECT * FROM TABLENAME", conn)) {

cmd.Connection.Open();

cmd.CommandType = CommandType.Text;

OdbcDataReader dr = cmd.ExecuteReader();

if (dr.Read()) {

string result = dr.GetString(1);

}

}

}

Cheers


DC517
Don't forget to click "Mark as Answer" on the post that helped you.
This credits that member, earns you a point and marks your thread as Resolved.
0
d4dennis
5/4/2009 6:41:36 AM
Reply:

Web resources about - asp.net c# - asp.net.mysql

ASP - Wikipedia
ASP may refer to: Electronics Analog signal processing, processing electronic signals that represent continuous variables by use of analog circuitry ...

ASP World Tour (@ASP) on Twitter
Log in Sign up You are on Twitter Mobile because you are using an old version of Internet Explorer. Learn more here ASP World Tour @ ASP Planet ...

Easy Background Tasks in ASP.NET
As I work on the badge implementation for Stack Overflow, I needed a way to call the code that detects and awards the badges out of band. Traditionally ...

Every Day is Day One - Samsung - ASP - Surf - YouTube
Samsung Mobile is proud to be the first global partner of the ASP, together they celebrate the growth of surfing worldwide and remind us that ...

高性价大变焦头 腾龙18-200mm亚马逊促销_腾龙 AF18-200mm f/3.5-6.3 XR DiII LD Asp[IF] MACRO(A14)索尼卡口_数码影像报价-中关村在线
腾龙AF18-200mmf/3.5-6.3XRDiIILDAsp[IF]MACRO(A14)索尼卡口是大变焦比镜头开发的先锋企业-日本腾龙公司针对索尼数码微单相机系列E卡口而开发研制的新产品。为配合E卡口相机所搭载的对比度检测AF方式,镜头AF驱。

Legacy iPhones Biting Apple in the ASP
... the option of purchasing past-generation and lower-capacity devices, Apple is gradually compressing the iPhone’s average selling price (ASP). ...

Apple's iPhone 5c margins, ASP expected to push AAPL previous estimates
A new report from Morgan Stanley suggests that the iPhone 5c's better-than-anticipated margins and popularity will propel Apple past previous ...

Microsoft takes ASP.NET MVC into the open with community patches and bug-fixes
Scott Guthrie, Vice President in Microsoft's Developer Division, has announced that ASP.NET MVC and related Microsoft projects will now be developed ...

iPhone 4 ASP is $600
As a footnote to the unlocked iPhone 4 story, it's worth noting that the average Apple store pricing for UK and France is around $824 (assuming ...

ARM Drops 8%: Deutsche Cuts to Sell on Intel Threat, Falling ASPs
Shares of chip technology designer ARM Holdings ( ARMH ) are down $2.19, or 8%, at $25.06 after Deutsche Bank's Kai Korschelt this morning cut ...

Resources last updated: 12/11/2015 10:16:38 AM