title: Qt 5.5 missing MYSQL driver
body: <p>Today I started working with Qt 5.5 and my first project is to get GPS related data form a MYSQL database and send to another server. The problem is that I have a linking problem with the <code>libqmysql.so</code> driver file. I looked after how to solve the problem and I did the following steps so far:</p>
  <ul>
  <li>I copied all the files (<code>libqmysql.so</code> and other drivers) into <code>/usr/lib/i386-linux-gnu/qt5/plugins/sqldrivers</code> and <code>/home/magyarg/Qt5.5.1/5.5/gcc/plugins/sqldrivers</code></li>
  <li>I ran <code>ldd libqmysql.so</code> to check what dependencies are needed; I got the following result:</li>
  </ul>
  <p><a href="https://i.stack.imgur.com/mOT8Q.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mOT8Q.png" alt="enter image description here" /></a>
  According this result, I installed <code>libssl</code> and <code>libmysqlclient18</code>.</p>
  <h2>The problem:</h2>
  <p>After these steps Qt Creator still throws me the the error:</p>
  <blockquote>
  <p>QSqlDatabase: QMYSQL driver not loaded<br />
  QSqlDatabase: available drivers: QSQLITE QMYSQL QMYSQL3 QPSQL QPSQL7</p>
  </blockquote>
  <h2>The environment:</h2>
  <ul>
  <li>Ubuntu Linux 15.04(x86)</li>
  <li>Qt5.5</li>
  </ul>
  <h2>The corresponding code:</h2>
  <pre><code>#include &quot;mainwindow.h&quot;
  #include &quot;ui_mainwindow.h&quot;
  #include &lt;QApplication&gt;
  #include &lt;QtSql&gt;
  
  MainWindow::MainWindow(QWidget *parent) :
      QMainWindow(parent),
      ui(new Ui::MainWindow)
  {
      ui-&gt;setupUi(this);
  }
  
  MainWindow::~MainWindow()
  {
      delete ui;
  }
  
  void MainWindow::on_pushButton_clicked()
  {
      QSqlDatabase db = QSqlDatabase::addDatabase(&quot;QMYSQL&quot;);
      db.setHostName(&quot;127.0.0.1&quot;);
      db.setDatabaseName(&quot;ugyfelhivo&quot;);
      db.setUserName(&quot;root&quot;);
      db.setPassword(&quot;pass&quot;);
      bool ok = db.open();
      if (ok == true) {
          QLabel label;
          label.setText(&quot;Macska&quot;);
      }
  }
  </code></pre>