You need to build and install the Qt MySQL database plugin before QT or PyQT5 can load it.
See here: QMYSQL for MySQL 4 and higher