Click here to Skip to main content
15,902,445 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi if i type Imports mysql.data.mysqlclient
it is showing error and how i can connect with mysql from vb.net please help.
thnx in advance.
Posted

Please check if your mysql server is running and what the port, pwd and username
 
Share this answer
 
Comments
taher ahmed choudhury 4-Jan-12 5:01am    
its running but when i type in vb.net showing error that means that means some error then where is the error. plz help me to all expert helper
NewPast 4-Jan-12 7:38am    
what the error message says exactly
is it giving error to Imports Data.Mysqldata.mysqlclient ?
go through this[^] link. it will help you.
 
Share this answer
 
Make sure you have referenced the MySql.Data library in your project using Add References in the context menu in Solution Explorer. You have to reference the library in your project first and then you can Import it into your class.

Hope this helps
 
Share this answer
 
Hi,

use MySQL Dot Net Connector.

and use Manual

Thanks
-amit.
 
Share this answer
 
try this-

VB
System.Data.OleDb.OleDbConnection


and use this Connection String-

VB
Server=myServerAddress; Database=myDataBase; Uid=myUsername; Pwd=myPassword;
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900