user_1
2007-06-29 02:10:07 UTC
Hi All,
I have some problems with connecting to the MySQL database.
I have created the dsn as follows..
from control pannel,odbc connection..then user dsn filled in the computer name,username,pwd and db name
Connect option and advanced option(the next two tabs) i havent filled anything.
as i have installed mysql in mypc and so its a local host.Test connection also successful.
But i was getting an error when i was trying to open the connection.
using open connection.vi.
In the open connection.vi. i gave the dmu.dsn(the name of dsn i created ) for connection information parameter,for userid ,user name to MySQL which is root and the appropriate password also(i tried both wth giving user name and password and also without giving username and password.)
TRied by creating user dsn and also system dsn and establishing connection.But i was getting the following error.
the error is...
Error -2147467259 occurred at DB Tools Open Connec (String).vi->DB Tools Open Connec (Path).vi->Untitled 1Possible reason(s):Exception occured in Microsoft OLE DB Provider for ODBC Drivers: General error: Invalid file dsn 'dmu.dsn' in DB Tools Open Connec (String).vi->DB Tools Open Connec (Path).vi->Untitled 1
Can anybody help me?
I have some problems with connecting to the MySQL database.
I have created the dsn as follows..
from control pannel,odbc connection..then user dsn filled in the computer name,username,pwd and db name
Connect option and advanced option(the next two tabs) i havent filled anything.
as i have installed mysql in mypc and so its a local host.Test connection also successful.
But i was getting an error when i was trying to open the connection.
using open connection.vi.
In the open connection.vi. i gave the dmu.dsn(the name of dsn i created ) for connection information parameter,for userid ,user name to MySQL which is root and the appropriate password also(i tried both wth giving user name and password and also without giving username and password.)
TRied by creating user dsn and also system dsn and establishing connection.But i was getting the following error.
the error is...
Error -2147467259 occurred at DB Tools Open Connec (String).vi->DB Tools Open Connec (Path).vi->Untitled 1Possible reason(s):Exception occured in Microsoft OLE DB Provider for ODBC Drivers: General error: Invalid file dsn 'dmu.dsn' in DB Tools Open Connec (String).vi->DB Tools Open Connec (Path).vi->Untitled 1
Can anybody help me?