LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Qt Designer + mySql connection error (https://www.linuxquestions.org/questions/programming-9/qt-designer-mysql-connection-error-111532/)

vanquisher 11-02-2003 01:28 PM

Qt Designer + mySql connection error
 
Hi,
I'm using Qt Designer 3 and I'm writing an application that will connect to mysql database. The problem is, I'm unable to set up a database connection with Qt Designer. The values I fill for Project->Database connections are as follow:
Code:

connection name: default
driver: QPSQL3/QPSQL6 (both not working)
database name: test
user name: root
passwd: root passwd
host name: localhost
port: default

I get an error saying "Please check whether you are running the database server or not. [Driver not loaded]"

I've never used Qt Designer before...I almost always write the hard-code, I like it that way. So, what do I do now? I've followed the exact steps given in the manual but I screwed up...any help will be appreciated. Thanks in advance.

furry3331 08-24-2004 02:21 PM

Qt designer with MySQL
 
Hello,

The drivers QPSQL3 are for PostgreSQL, not MySQL.

I have been using Qt designer for a while now against a PostgreSQL database with no problems. I then converted my database to MySQL and I haven't been able to connect to that with Qt. I can connect through the designer, but when I compile and run it, I get the cannot connect to database error. I did make sure I downloaded the MySQL driver QMYSQL3. If it wasn't on my system, it wouldn't work through designer, would it?

Does anyone have any experience with an issue like this? Perhaps someone can recommend another development environment, as I have other issues with designer as well. The font used to display the code is quite ugly...

Thanks...


All times are GMT -5. The time now is 10:25 PM.