Quote Originally Posted by ChristianEhrlicher View Post
As ChrisW67 already said you have to build the driver on your own. Follow the instructions in link ChrisW67 gave above.
Correct me if I am wrong.
Those are for Qt not for PyQt5. They used qmake but there is no file with name as qmake.exe or qmake.py in PyQt5 folder.

I am using PyQt5 only not Qt.

Can you guide me about how to build and install MYSQL driver for PyQt5 in windows 10 ?

I did try to adding qsqlmysql.dll directly to ..Python37\Lib\site-packages\PyQt5\Qt\plugins\sqldrivers but that didn't work with error
QMYSQL: driver not loaded, available driver QSQLITE, QMYSQL, QMYSQL3, ...

I did find libmysql.dll and libmysql.lib in MYSQL SERVER folder but didn't find any link describing how to use them for PyQt5 in windows.

Thanks