Hai friends,
I want to use mySql as my backend?(Iam new to that)
From my C# app how to make the connection?
regards,
Kolluru.
Loading
Hai friends,
I want to use mySql as my backend?(Iam new to that)
From my C# app how to make the connection?
regards,
Kolluru.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
MartinPosted Apr 27, 2006, 12:49 PM
Will MarcouillerPosted Apr 18, 2006, 5:43 PM
Greetings everyone,
I just discovered this forum which seems to be a reliable source of information about C# programming and databases implementation.
Now, I give a try wondering whether one of you knows how to install ByteFX .NET 0.76 with SharpDevelop 2.0. I firstly downloaded and installed the driver on my machine, but I can't use it...
"using ByteFX.Data.MySqlClient;"
An error displays that ByteFX can not be found... I read about somewhat an assembly or something, but I can't be sure. Might someone help me resolve this issue ?
Thank you in advance.
WILL.
phiber gaiusPosted Apr 13, 2006, 9:59 PM
you need to download a driver for that.
there are few connectors in the net.
you can try bytefx or something substantial.
Happy coding :)
Krishna KishorePosted Apr 13, 2006, 3:24 AM
Let me try and come back to u again.....
regards,
Marcos D. A. de SouzaPosted Apr 12, 2006, 8:47 AM
Instead of use OleDB, you can access the MySQL using a Native Provider.
http://www.mysql.com/products/connector/net/
Bye
Sushil BadyalPosted Apr 12, 2006, 5:46 AM
Using NameSpace :
using System.Data;
using System.Data.OleDb;
Put this code in function:
OleDbConnection conn=new OleDbConnection("");
conn.ConnectionString="Provider=MySQLProv;Data Source=mysql;";
try
{
conn.Open();
if (conn.State==ConnectionState.Open)
MessageBox.Show("Connection to MySQL opened through OLE DB Provider");
conn.Close();
}
catch(Exception ex)
{
MessageBox.Show(ex.Message);
}
Sushil BadyalPosted Apr 12, 2006, 5:46 AM
Using NameSpace :
using System.Data;
using System.Data.OleDb;
Put this code in function:
OleDbConnection conn=new OleDbConnection("");
conn.ConnectionString="Provider=MySQLProv;Data Source=mysql;";
try
{
conn.Open();
if (conn.State==ConnectionState.Open)
MessageBox.Show("Connection to MySQL opened through OLE DB Provider");
conn.Close();
}
catch(Exception ex)
{
MessageBox.Show(ex.Message);
}
Sushil BadyalPosted Apr 12, 2006, 5:46 AM
Using NameSpace :
using System.Data;
using System.Data.OleDb;
Call this function:
private void connectToMySql()
{
OleDbConnection conn=new OleDbConnection("");
conn.ConnectionString="Provider=MySQLProv;Data Source=mysql;";
try
{
conn.Open();
if (conn.State==ConnectionState.Open)
MessageBox.Show("Connection to MySQL opened through OLE DB Provider");
conn.Close();
}
catch(Exception ex)
{
MessageBox.Show(ex.Message);
}
}