0

I'm want to run a Qt project which uses mysql database. Please provide a step by step instruction, preferably with some explanation, how to add mysql driver to Qt 5.11.2. I'm beginner level in linux and Qt. I tried different guides from internet but none of them worked for me.

Maven Carvalho
  • 319
  • 1
  • 5
  • 14

1 Answers1

-1

Write this in terminal:

sudo apt-get install libqt5sql5-mysql
scopchanov
  • 7,966
  • 10
  • 40
  • 68
garbart
  • 465
  • 4
  • 19
  • 1
    OK, I had it already installed. Still my sql support doesn't work in Qt. When running Qt project I get: QSqlDatabase: QMYSQL driver not loaded – Bartosz Zakurzewski Oct 18 '18 at 12:17