Skip to content

Instantly share code, notes, and snippets.

@hngouveia01
Created May 3, 2019 23:10
Show Gist options
  • Save hngouveia01/2e9159b6e93ae5b86775b6d7fb22f0ad to your computer and use it in GitHub Desktop.
Save hngouveia01/2e9159b6e93ae5b86775b6d7fb22f0ad to your computer and use it in GitHub Desktop.
QT 5.12 QMYSQL not found macos
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