title: Can't connect to MariaDB via MATLAB - Invalid MEX File
body: <p>I am trying to connect to MariaDB using mYm (Mysql wrapper for MATLAB) on MATLAB.
  Every time I use mYm to access DB I get an error</p>
  <p><code>Invalid MEX-file 'path\to\DB\MySQL\mYm1.36 64-bit\mym.mexw64': A dynamic link library (DLL) initialization routine failed.</code></p>
  <p>So far what I've understood is that DLL in question i.e. <code>libmysql.dll</code> is not registered.I tried do do that using <code>regsvr32 &quot;path\to\DB\MySQL\mYm1.36 64-bit\libmysql.dll&quot;</code>. But that results in following error:</p>
  <pre><code>The module path\to\DB\MySQL\mYm1.36 64-bit\libmysql.dll failed to load. 
  Make sure the binary is stored at specified path or debug it to check for problems with binary or dependent .DLL files.
  The specified module could not be found.
  </code></pre>
  <p>I require a solution to fix this error.
  I might be wrong in assuming the dll is not registered.</p>