title: MySql QT QMYSQL driver not loaded
body: <p>I try to use the MySQL module from QT but without result, the module is present but Qt does not load it. I have this error</p>
  
  <p><code>QSqlDatabase: QMYSQL driver not loaded
   QSqlDatabase: available drivers: QSQLITE QMYSQL QMYSQL3 QPSQL QPSQL7
   QSqlError("", "Driver not loaded", "Driver not loaded")</code></p>
  
  <p>if I make a <code>ldd libqsqlmysql.so</code> I get this result</p>
  
  <p><code>linux-vdso.so.1 (0x00007ffe89950000)
      libmysqlclient_r.so.16 =&gt; not found
      libQt5Sql.so.5 =&gt; /opt/Qt/5.4/gcc_64/plugins/sqldrivers/./../../lib/libQt5Sql.so.5 (0x00007fdc67aaf000)
      libQt5Core.so.5 =&gt; /opt/Qt/5.4/gcc_64/plugins/sqldrivers/./../../lib/libQt5Core.so.5 (0x00007fdc67372000)
      libstdc++.so.6 =&gt; /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fdc6706b000)
      libc.so.6 =&gt; /lib/x86_64-linux-gnu/libc.so.6 (0x00007fdc66cc2000)
      libpthread.so.0 =&gt; /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fdc66aa4000)
      libicui18n.so.53 =&gt; /opt/Qt/5.4/gcc_64/plugins/sqldrivers/./../../lib/libicui18n.so.53 (0x00007fdc66658000)
      libicuuc.so.53 =&gt; /opt/Qt/5.4/gcc_64/plugins/sqldrivers/./../../lib/libicuuc.so.53 (0x00007fdc662cd000)
      libdl.so.2 =&gt; /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fdc660c8000)
      libgthread-2.0.so.0 =&gt; /usr/lib/x86_64-linux-gnu/libgthread-2.0.so.0 (0x00007fdc65ec6000)
      librt.so.1 =&gt; /lib/x86_64-linux-gnu/librt.so.1 (0x00007fdc65cbe000)
      libglib-2.0.so.0 =&gt; /lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007fdc659c5000)
      libm.so.6 =&gt; /lib/x86_64-linux-gnu/libm.so.6 (0x00007fdc656c4000)
      libgcc_s.so.1 =&gt; /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fdc654ae000)
      /lib64/ld-linux-x86-64.so.2 (0x00007fdc67f1c000)
      libicudata.so.53 =&gt; /opt/Qt/5.4/gcc_64/plugins/sqldrivers/./../../lib/libicudata.so.53 (0x00007fdc63e25000)
      libpcre.so.3 =&gt; /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007fdc63be8000)
  </code></p>
  
  <p>the problem is I think this line <code>libmysqlclient_r.so.16 =&gt; not found</code></p>
  
  <p>If I make a <code>locate mysqlclient</code> I get this reuslt</p>
  
  <p><code>/usr/lib/x86_64-linux-gnu/libmysqlclient.so.18
       /usr/lib/x86_64-linux-gnu/libmysqlclient.so.18.0.0
       /usr/lib/x86_64-linux-gnu/libmysqlclient_r.so.18
       /usr/lib/x86_64-linux-gnu/libmysqlclient_r.so.18.0.0
       /usr/share/doc/libmysqlclient18
       /usr/share/doc/libmysqlclient18/NEWS.Debian.gz
       /usr/share/doc/libmysqlclient18/changelog.Debian.gz
       /usr/share/doc/libmysqlclient18/changelog.gz
       /usr/share/doc/libmysqlclient18/copyright
       /var/cache/apt/archives/libmysqlclient18_5.5.43-0+deb7u1_amd64.deb
       /var/cache/apt/archives/libmysqlclient18_5.5.44-0+deb7u1_amd64.deb
       /var/lib/dpkg/info/libmysqlclient18:amd64.list
       /var/lib/dpkg/info/libmysqlclient18:amd64.md5sums
       /var/lib/dpkg/info/libmysqlclient18:amd64.postinst
       /var/lib/dpkg/info/libmysqlclient18:amd64.postrm
       /var/lib/dpkg/info/libmysqlclient18:amd64.shlibs
  </code></p>
  
  <p>I read about some forum, the need to make a symbolic link I tried but I always this error</p>