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.
Asked
Active
Viewed 1,393 times
0
-
How did you install QT? – Mohammad Kanan Oct 18 '18 at 17:47
1 Answers
-1
Write this in terminal:
sudo apt-get install libqt5sql5-mysql

scopchanov
- 7,966
- 10
- 40
- 68

garbart
- 465
- 4
- 19
-
1OK, 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