<div dir="ltr">Hi,<div><br></div><div>I am trying to connect to a MySql server on Ubuntu 16.04 but having been getting the error,</div><div><br></div><div><div>QSqlDatabase: QMYSQL driver not loaded</div><div>QSqlDatabase: available drivers: QSQLITE QMYSQL QMYSQL3 QPSQL QPSQL7</div></div><div><br></div><div>After searching on google, I found that I had to install the package <span style="color:rgb(48,51,54);font-family:consolas,menlo,monaco,"lucida console","liberation mono","dejavu sans mono","bitstream vera sans mono","courier new",monospace,sans-serif;white-space:inherit;background-color:rgb(239,240,241);font-size:13px">libqt5sql5-mysql. </span>Despite installing that package I am still getting the above error. What am I doing wrong? Ubuntu 16.04 came with Qt 5.5. However using pip I installed PyQt 5.7 and am using it for my project. My project is cross-platform. So ideally I would like to use pip to install the necessary missing dependency to overcome this issue if possible.</div><div><br></div><div>Any help would be highly appreciated.</div><div><br></div><div>Kind regards,</div><div>Nekhelesh</div></div>