12-31-2014 07:33 AM - edited 12-31-2014 07:35 AM
Hello.
I have a problem to connect with mysql. can you help me?
I make a database in my sql and I use ODBC as interface.
in labview, ADO blocks are used to connect with mysql as example attached. but, when I run this program, it dosn't work. this example is along with ADO pack.
By the way,, it dosnt get me any ID!
do you know what is the problem?
Best Reagards
12-31-2014 11:57 PM
any one dosn't use ADO?
01-01-2015 06:05 AM
it seems that, because LabSQL(ADO) is 32 bit but ODBC driver was 64bit. on the other hand, my windows is 64 bit and my labview is 32 bit!
I Confused!!
01-01-2015 06:20 AM - edited 01-01-2015 06:21 AM
Can you share the VI in 2011.. I havent seen your VI but better go for UDL file for connecting to DB. From there it is easy to debug the problem.
01-01-2015 06:53 AM
Hi Ranjeet_Singh
Thank you
I attached it in 2011. may you explain more about UDL too? my friend will work on database, he just know SQL and my SQL. these work with UDL?
Best Regards
01-01-2015 09:05 AM
Do you get any errors when runing the code?
it seems that your connectionstring is very very short.
When you connect to the MySQL database, don't you use a user and a password?
A UDL file is the same as a connectionstring, is "kust" describes how to connect to a database, like the name, server, username, password.
Do a search on google for connectionstirng and UDL, and there should be a lot of info.
01-01-2015 09:08 AM
01-03-2015 12:53 AM
UDL is very basic and best way to communicate to DB. becasue here you can change the database which you need to connect to any time. I havent seen your VI but first you need to create UDL file and configure it as per your application. For there if you can test the connection that means your configuration is ok.
Then from VI you need to open the UDL file and check the error message. From there you can easily check what is the problem.
Here start from page 3-4. Let us know if any issue