 <h1>Repeat 10 times:</h1> <ol> <li>I will never use a symlink to solve a missing library problem due to a different soname</li> <li>I will never use a symlink to solve a missing library problem due to a different soname</li> <li>I will never use a symlink to solve a missing library problem due to a different soname</li> <li>I will never use a symlink to solve a missing library problem due to a different soname</li> <li>I will never use a symlink to solve a missing library problem due to a different soname</li> <li>I will never use a symlink to solve a missing library problem due to a different soname</li> <li>I will never use a symlink to solve a missing library problem due to a different soname</li> <li>I will never use a symlink to solve a missing library problem due to a different soname</li> <li>I will never use a symlink to solve a missing library problem due to a different soname</li> <li>I will never use a symlink to solve a missing library problem due to a different soname</li> </ol> <p><strong>Never <em>ever</em> solve that kind of problems via symlinking</strong>. If your system does not provide the exact soname required by a library or an executable, you'll need to recompile that library or executable. There is a reason why libraries have the soname version number in their file names, and a mismatching soname will result in a <code>not found</code> for the dynamic linker/loader. You're just breaking that process <em>and your entire system</em> by inserting a broken soname for a library.</p> <h1>So, <strong>first thing to do: get rid of the symlink you introduced.</strong> Go in <code>/usr/lib/x86_64-linux-gnu/</code> and remove it. Do it <strong>now</strong>.</h1> <hr> <p><strong>Then, how to recompile the plugin so that it works on Ubuntu?</strong></p> <p>(Or, actually, anywhere. Even Windows or Mac. Just adapt the instructions)</p> <p>Step by step:</p> <ol> <li>Install the mysql development packages. On Ubuntu it should be the <code>libmysqlclient-dev</code> package, but double check in case the name changed on your particular Ubuntu edition. Go on <a href="https://packages.ubuntu.com" rel="nofollow">https://packages.ubuntu.com</a> and use the file-based search to look for <code>mysql.h</code>.</li> <li>Run the maintanance tool from the installer, and ask it to also install the Qt source components. You'll find the tool in your Qt installation directory.</li> <li>Go under <code>INSTALL_DIR/Src/5.7/qtbase/src/plugins/sqldrivers/mysql</code> (adjust <code>INSTALL_DIR</code> and <code>5.7</code> to your actual case).</li> <li>Run <strong>the right</strong> <code>qmake</code>. The right one is the one coming from the same installation of Qt, and whose version matches the sources. In your case it's likely to be in <code>INSTALL_DIR/5.7/gcc_64/bin/qmake</code>.</li> <li>Run <code>make</code>. If it fails to compile due to some library not found, install the required packages on your system. The Ubuntu package search linked above may be useful.</li> <li>Once <code>make</code> runs successfully, it will create a brand new <code>libqsqlmysql.so</code>. It should automatically overwrite the one in <code>INSTALL_DIR/5.7/gcc_64/plugins/sqldrivers</code>. If for any reason it's not automatically overwritten, move it manually there.</li> </ol> <p>Done! Enjoy your MySQL database connection.</p>