QMYSQL driver not loaded Qt 5.6 Linux Ubuntu 16.04
<p>i know that these question asked many times but i try all solution here and from another site but all not working for me what i try is <br>
<strong>1 - install libqt5sql5-mysql <br>
2 - install libqt4-sql-mysql <br>
3 - use QPluginLoader to load sql driver <br>
4 - copy the folder of sql driver to my debug folder <br></strong>
<strong><em><br> 
QSqlDatabase: QMYSQL driver not loaded<br>
QSqlDatabase: available drivers: QSQLITE QMYSQL QMYSQL3 QPSQL QPSQL7 <br>
<br></em></strong>
i have this problem on windows i solve it by using mcsv 64 it doest work for 32 or for mingw compiler but i dont know how to solve this problem on linux 
<br> 
my os is 
<br> 
- <strong>ubuntu 16.04 LTS 64-bit</strong> 
<br> - <strong>Mysql compile machine is x86_64</strong>
<br>
code i use to connect to database 
<br></p>

<pre><code>QSqlDatabase dp = QSqlDatabase::addDatabase("QMYSQL","first");
dp.setDatabaseName("Test");
dp.setHostName("localhost");
dp.setUserName("root");
dp.setPassword("root");
dp.setPort(3306);
if (dp.open()){
    QMessageBox::information(nullptr,"Succsefull","Connect To Mysql");
}
else{
    QMessageBox::critical(nullptr,"Error",dp.lastError().text());
}
</code></pre>