john_crichton
5th May 2008, 18:38
Hello,
I have recently finished a small Qt application that involves database access. I use QMYSQL for access to mysql database. Everything works fine on linux. Today I ported the application to Windows Xp, I installed MySql server and Qt. I tested the mysql connection from console and it worked fine. The problem is that I cannot connect to database from my application. The QSqlDatabase :: open method returns false. Does anyone have any idea why this is happening?
I have recently finished a small Qt application that involves database access. I use QMYSQL for access to mysql database. Everything works fine on linux. Today I ported the application to Windows Xp, I installed MySql server and Qt. I tested the mysql connection from console and it worked fine. The problem is that I cannot connect to database from my application. The QSqlDatabase :: open method returns false. Does anyone have any idea why this is happening?