MySQL via ODBC: "no datasource found" when the program runs from a mapped network drive on another computer

Applies to: as reported, Clarion 6 with MySQL 4.017 through the ODBC 3.51 driver. No other versions are named.

Problem

On the poster's own machine the program ran fine against MySQL through the 3.51 ODBC driver. Run from a mapped network drive (X:) on a different computer, it failed with the error "no datasource found".

Solution

  1. Create the data source on every machine in the network, not only on the one that holds the program.
  2. Make each one with the ODBC 3.51 driver, give it the IP number of the MySQL server, and give it the same name on every machine.

The poster found this himself the next day and reported it as the fix.

Caveats

  • The program file on the share is not the problem. A DSN is stored per machine, so a machine without it has no data source of that name, wherever the program is started from.
  • The thread names no other check, so it does not say whether a DSN-less connection string would have avoided the step. It also does not say whether the ODBC 3.51 driver itself was already installed on the other computers.
  • Nobody else confirmed the fix in the thread.

Today (2026)

Likely unchanged: a DSN lives on each machine, and the driver it names must be installed there too. Not re-tested.

Sources: Marco V. (Mar 2004, the question and the answer) in softvelocity.clarion.databasedrivers.