View Full Version : QMYSQL driver not loaded
robotics
26th July 2011, 09:49
I want to make a connection with mysql workbench. I have created table in mysql workbench but I am getting this problem when simply adding database connection
QSqlDatabase db=QSqlDatabase::addDatabase("QMYSQL");
Error:::QSqlDatabase: QMYSQL driver not loaded
please help me regarding this.:)
qlands
26th July 2011, 10:35
Hi,
Are you working on Linux or Windows?
If you are working on Windows you need to build the Mysql plugin yourself.
Carlos.
robotics
26th July 2011, 12:37
I am working on windows...
Please Explain me how to build the Mysql Plugin??
qlands
26th July 2011, 13:43
Hi,
1. Get MySQL community server. Download the ZIP Archive.
2. Get the sources of QT
3. Follow the step "How to build the MySQL driver for MinGW users" from http://doc.qt.nokia.com/4.7/sql-driver.html#qmysql
Carlos.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.