C%23 - MySQL Connection

31 January 2009, 11:28 PM

Add Refence

using MySql.Data.MySqlClient;

Then code also her is code to Create a DataGridView

 private DataTable dt = new DataTable();

        private BindingSource bs = new BindingSource();  

// Localhost if Local otherwise need SERVER name
string CONN_STRING = "SERVER=localhost;" +

                    "DATABASE=databasename;" +

                    "UID=username;" +

                    "PASSWORD=password;";


Categories

All
General
Applications
Code
Networking
 

 

 

Recent blog posts

4

Cent OS adding port into iptables - command line SSH
4 August 2013, 10:06 AM - Read More
   

17

Convert NSTimeInterval to NSString - iOS Development
17 September 2012, 4:38 PM - Read More
   

12

Find string in NSArray and return index of string - iOS Development
12 September 2012, 3:54 PM - Read More
   

Recent apps

Slots!
Read More
   
MobileRota
Read More
   
Eleven2
Read More
   

 

Customer Support

Need help with a product?
Product Support


Contact

Drop us a line?
hello@olliekett.com
   
Follow us on Twitter
@okdltd