Omnis Technical Note TNSQ0039March 2021
Using the Dynamic MySQL DAM
for Omnis Studio 10.2 or above
by Gary Ashford, Omnis Engineering
The "dynamic" MySQL DAM allows selection of the MySQL client library in a given deployment and this makes it possible to update the client library without the need for a replacement DAM. Using the latest release of the client library ensures support for the latest MySQL features including enhanced encryption and SSL support. The client library and its dependencies can be obtained from a standard MySQL client or server distribution and applied to the system.
Downloading the Clientware
The required client libraries can be extracted from any standard distribution of MySQL Database Server, including the MySQL Community Server, available from the MySQL Developer Site.
The following table shows the name of the client library required on each supported platform, together with the required dependencies. These must all be extracted and placed in a location where Omnis will find them when it starts up.
Assuming a .zip or .tar archive is downloaded, the client library (and its symbolic link file) can normally be found inside the "lib" folder. The dependencies can be found either in the "lib" folder or inside the "bin" folder.
*The Windows client currently requires the Microsoft Visual C++ Redistributable for Visual Studio 2015 to be installed. This provides the additional library dependency: vcruntime140_1.dll (Newer clients may require a later version of the C++ redistributable).
If you are familiar with them, you can place the client libraries anywhere on the operating system's standard library search path. We recommend placing the client library and its dependencies in the following locations however:
|Install Location||"Omnis" folder|
(in the same folder as omnis.exe)
On Linux, the client libraries can be placed inside the Omnis folder because the omnisX64 script appends to the LD_LIBRARY_PATH environment variable.
MySQL DAM Compatibility
In Studio 10.2 (builds after 30204), the MySQL DAM is able to use a dynamic client library in place of it's embedded client library. This means that no replacement DAM is needed as it was with Studio 10.2 build 30204 and earlier.
Testing the DAM
After starting Studio, check the Trace Log in case there is an error loading the MySQL DAM. When loaded, the MYSQLDAM should appear in the $extobjects section, viewed using the Notation Inspector.
Failure to load the MYSQLDAM indicates that either the client library or one of its dependencies could not be located, or may be of the wrong architecture. Please refer to technote TNEX0009 for help in diagnosing & resolving dynamic library dependencies.
- Please note that libssl and libcrypto are part of the OpenSSL project which is released under the dual OpenSSL and SSLeay licence, available here.
- Technote TNSQ0030: Making SSL Connections using the MySQL DAM.
- Technote TNGI0030: Notarizing your Omnis application for macOS.