From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Query the version of MySQL ODB from LabVIEW

Solved!
Go to solution

I'm communicating with a database via the MySQL ODBC driver. I must deploy the software on different computers.

On the development computer I have MySQL ODBC 5.3 and on the target computer, I have MySQL ODBC 8.0.

enter image description here

Is there a simple way to determine the MySQL ODBC driver version so that I can modify the connection string as needed?

0 Kudos
Message 1 of 3
(2,291 Views)
Solution
Accepted by topic author SeanJ

Hi,

I did this once but i have only tried it on my computer, don't know if it works for others.

I have windows 10. 

/Peter

Find MySQL driver.png

Message 2 of 3
(2,266 Views)

Thanks Peter, that's fantastic.

 

The big clue was 

 

WOW6432Node

i.e. access 32bit registry on 64 bit machine.  I had read value too which for some reason didn't work (-603 error).  Your solution works perfect!

 

Smiley Happy

 

P.S. In case anyone interested, the below will read the computer name (note the intentional omission of 'WOW6432Node' in the subkey constant - it gives a 603 error if it is left in).  I was confused!

 

 computernamesnippet.png

 

0 Kudos
Message 3 of 3
(2,240 Views)