Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP .net with Mysql

Status
Not open for further replies.

dcampo

Programmer
Jun 13, 2006
71
0
0
EC
Hi..

I want connect my website to database Mysql (using OleDb) but appear this message error:

the provider 'MySQLProv' is not register the local machine

Watch my code:

infcon = "Provider=MySQLProv;Server=localhost;Data Source=mysql;User Id=root;Password=control;";

usr = Login1.UserName.ToString().Trim();
pwd = Login1.Password.ToString().Trim();

sql = "select * from accesos where nombre ='"+usr+"' and clave ='"+pwd+"'";

OleDbConnection conectar = new OleDbConnection(infcon);
OleDbCommand comando = new OleDbCommand(sql, conectar);
conectar.Open();

thanks for help me!!!
 
hi,

where did you pick that connection string from???

Known is handfull, Unknown is worldfull
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top