title: ERROR 1126 (HY000): Can't open shared library 'lib_mysqludf_sys.so' (errno: 193 )
body: <p>I am using MySQL 5.6.11 running on 32-bit Microsoft Windows XP (Professional Version 2002 Service Pack 3). I am interested in installing the MySQL <a href="https://github.com/mysqludf/lib_mysqludf_sys" rel="nofollow"><code>sys_exec</code></a> UDF.</p>
  
  <p>The following command,</p>
  
  <pre><code>mysql&gt; SHOW VARIABLES LIKE 'plugin_dir';
  </code></pre>
  
  <p>shows the following plugin location.</p>
  
  <pre><code>+---------------+-----------------------------------------------------+
  | Variable_name | Value                                               |
  +---------------+-----------------------------------------------------+
  | plugin_dir    | C:\Program Files\MySQL\MySQL Server 5.6\lib\plugin\ |
  +---------------+-----------------------------------------------------+
  </code></pre>
  
  <p>Where I pasted <code>lib_mysqludf_sys.so</code>. Then running the following command,</p>
  
  <pre><code>CREATE FUNCTION sys_exec RETURNS INT SONAME 'lib_mysqludf_sys.so';
  </code></pre>
  
  <p>from the MySQL command line results in the following error (after login has been made into the root user and an already created database has been selected).</p>
  
  <blockquote>
    <p>ERROR 1126 (HY000): Can't open shared library 'lib_mysqludf_sys.so'
    (errno: 193 )</p>
  </blockquote>
  
  <p>How to fix this error?</p>
  
  <p><sub>Is <code>msvcp110.dll</code> needed under <code>C:\WINDOWS\system32</code>? It is not available there. The file <code>msvcp100.dll</code> is however, located under <code>C:\WINDOWS\system32</code>.</sub></p>