index > .NET Framework Data Access and Storage > Mysql connection

Mysql connection

Hey everyone i had a question if i could access a mysql database without having to make my users install odbc connection or what not. My app will retrieve search values from a database and allow them to follow a link of the file they want to download from that database search. Im a newbie so Any help is appreciate!
Atlantaazfinest
Sounds like you want to use a non-standard database provider without having to install the required database driver. Life doesn't work that way, have them install the MySql odbc driver. It is a one-time thingy you'll have to do, much like installing the .NET framework...
nobugz
oh ok do they have to configure anything ?? if not thanks for the answer
Atlantaazfinest

The users are going to need the database engines drivers installed onto there machine, also you could use odbc connections to build the connection string. Doing this all you would have to do is publish the odbc driver inside your setup file (You can get this driver from mysql) and then the users would not have to worry about configuring the system as you would do it in code.

Also not that you can also use the free sql express engine, using this would meen that the users would not have to do anything at all as the system can be installed directly from your setup file and the drivers are standard when installing the .net framework 2.0.




http://www.virtualrealm.com.au/blogs/mykre - XNA, Managed DirectX and Game Programming.
Glenn Wilson

Ok glenn would you happen to know how i can use this to display information gotten from a database

basically what i want to do is make this http://www.nextelnoob.com/mp3search.php?textfield=2pac  built into the app so that the users and search ringtones from the app.

So letting the users search the database for a certain values and the app returns anything that it find with that name and posts the results to the user

private void Form1_Load(object sender, System.EventArgs e)
{

    string connectionString = @"Driver={MySQL};SERVER=localhost;DATABASE=NorthwindMySQL;";
    OdbcConnection conn= new OdbcConnection(connectionString);
   
conn.Open();
    OdbcDataAdapter da = new OdbcDataAdapter
               ("SELECT ", conn); 

   
DataSet ds = new DataSet("Cust");    

    da.Fill(ds, "Customers");
   
dataGrid1.DataSource = ds.DefaultViewManager; 
    conn.Close();
}

Atlantaazfinest
reply 5

You can use google to search for other answers

 

More Articles

• Confused on the setup of VS with SQL Server
• how to create .xml file using SQL query (SQL Server 2000)
• Save and retrieve RTF Text from MSSQL DB
• delete row is not updating in dataAdapter
• Update Excel Data
• ODBC Wizard can't create insert/update/delete sql for my dataset,...
• [C# 2.0] ControlState
• Returning DataReaders
• no option to connect system.data.oledb
• Problem in element order - while writting dataset to Xml file
Bookmark and Share
Welcome to Bokebb   New Update  
 

New Articles

• Problem with : The type or namespace nam
• UpdateBatchSize without dataSets
• Serializing an Object into a database Co
• how to read only certain fields(columns)
• How to add codes in a three layer web ap
• Help trying to Insert to Access DB with
• jro.refreshcache on oledbconnection??? (
• Problem with SqlBulkCopy when destinatio
• How to retrive, view and manipulate tabl
• check user input data exist in database
• HELP!! writing sql in vb.net (ado.net)
• Problem Enumerating Sql Server Using Sys
• TransactionScope, Transactions and MSDTC
• Merging datasets causes an exception wit
• Can not detach database right after back

Hot Articles

• ComboBox, CheckBox in bound forms
• Add new Record in VB 2005
• Obtain dimension in byte of a record
• Memory Efficiency of DataTables
• mapping issue with sql executenonquery m
• Connection problem to an Excel File with
• Connection Pooling randomly throwing COM
• Copying tables from a dataset to a SQL T
• ComputerEase ODBC Date Insert/Update pro
• Why doesn't my C# form show the contents
• c#.net: Unable to update records with sq
• Architecture
• Application Startup
• DataGridViewCellStyle Editor
• how to modify and upadate the data in da

Recommend Articles

• Create table in code
• streamreader+inserting/updating the rows
• Help: UInt32 vs Int32 as foreign and pri
• - Is there a difference between Dataread
• connection and fucntions
• Design Issue: Multiple definitions of db
• How to get Database information in ASP.NET
• error connecting using the config file
• Database
• Unable to cast object of type 'System.Ob
• Problem in element order - while writtin
• Access problem - query returns some empt
• Add rows to DataTable
• DateTime Conversions
• How does .NET Data Provider for SQL Serv