PDA

View Full Version : how to access MYSQLdatabase



gauravg
1st February 2012, 10:18
hi all i have install MySql database . plsease tell me how to access MYSQL database from Qt Application.
please tell all the steps involved in this process.


thanks with regards;
gauravg

Lykurg
1st February 2012, 15:30
QtSql. What else do you need?

gauravg
2nd February 2012, 09:17
when i run the program error:QMYSQL driver not loaded
available driver are QSQLITE,QODBC,QODBC
please tell me how can i make connection with MYSQL database on windows platform.

thanks with regards;
gauravg

Lykurg
2nd February 2012, 09:22
Fist you have to build the MySQL driver. See http://developer.qt.nokia.com/doc/qt-4.8/sql-driver.html.

gauravg
7th February 2012, 11:36
I am not getting the right way how to connect Mysql database.
please all the steps how to connect Mysql database.


ragards:
gauravg

Lykurg
7th February 2012, 13:36
You can't connect to a database unless you have driver, which you obviously do not have. So first build the driver. See link above.