Created
May 3, 2019 23:10
-
-
Save hngouveia01/2e9159b6e93ae5b86775b6d7fb22f0ad to your computer and use it in GitHub Desktop.
QT 5.12 QMYSQL not found macos
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
maybe your qt creator could not find QMYSQL | |
QSqlDatabase: QMYSQL driver not loaded | |
QSqlDatabase: available drivers: QSQLITE QMYSQL QMYSQL3 QODBC QODBC3 QPSQL QPSQL7 | |
use this command to update the path | |
install_name_tool -change /usr/local/mysql/lib/libmysqlclient.20.dylib /usr/local/mysql/lib/libmysqlclient.21.dylib ~/Qt/5.12.3/clang_64/plugins/sqldrivers/libqsqlmysql.dylib |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment