i creating a windows application from VS2010 under Win7 64Bit and its work fine... then i build the app and i copy the app to another machine that work under Win XP SP2 32Bit.
When i try to running the app its work fine and when i try to connect to mysql database i got some error like this:
Error [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and not default driver specified.
this is my conection string :
Dim MysqlCon As New MySqlConnection
Dim OdbcCon As New OdbcConnection
Dim ConnString As String = ("Dsn=SqlConn;Server=192.168.10.1;uid=USERID;pwd=PASSWORD;database=DATABASE;port=3306")
OdbcCon.ConnectionString = ConnString
OdbcCon.Open()
some people says i have to change my connection string but no one can tell me the right connection string..
how can i resolve this problem? sory for my bad english.
RESOLVED :
On Windows XP
Open Control Panel - Administrative Tools - Data Source (ODBC)
Under "User DSN" click "Add"
In my case i choose "MySQL ODBC 5.2 Unicode Driver"
Data Source Name:SqlConn, TCP/IP Sever:192.168.10.1, User:USERID, Password:PASSWORD, Database:DATABASE
- OK
this simple step is working.. thanks for the answer.