When you use QT’s QSqlDatabase to operate the database, you will be prompted
QSqlDatabase: QMYSQL driver not loaded
QSqlDatabase: available drivers: QSQLITE QMYSQL QMYSQL3 QPSQL QPSQL7
Make sure there is libqsqlmysql.so file and it has been put into QT/GCC/plugins/sqldivers/directory, if the problem can not be solved
Enter the/usr/lib/i386 Linux GNU directory and execute ln – s libmysqlclient_ r.so libmysqlclient_ r.so.16
Similar Posts:
- Solving the problem of QT connecting MySQL database in Windows system: qmmysql driver not loaded
- [Solved] libmysqlclient.so.16: cannot open shared object file: No such file or directory Error
- Error: Failed to connect database.Driver not loaded Driver not loaded
- [How to Solve] Library not loaded: libmysqlclient.18.dylib
- [Solved] nvidia-smi Error: Failed to initialize NVML: Driver/library version mismatch
- [Solved] NVIDIA SMI instruction error: failed to initialize nvml: Driver
- [Solved] after installing Ubuntu 16.04, you cannot enter the graphical interface after restarting (error/dev/sda2: clean…)
- How to Solve Idea Issue: “marketplace plugins are not loaded”
- VIM edit prompt swap file already exists solution
- Java error reporting about cannot resolve symbol ‘log’