PyQt5: QMYSQL driver not loaded



  • I installed PyQt5 using homebrew. I tried connecting to sqlite and it works but when I try to connect to MySQL this error appears already tried googling on how to build mysql driver for PyQt5 no luck.

    QSqlDatabase: QMYSQL driver not loaded
    QSqlDatabase: available drivers: QSQLITE


  • Lifetime Qt Champion

    Hi,

    It's not the problem of PyQt5. The Qt version you are using only provides the SQLite plugin it seems. You should check with homebrew whether they provide other Qt SQL plugins.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.