View Full Version : Qt and Mysql connector C++
R.CH
8th October 2010, 21:55
Hi!
I'm trying to use Mysql connector C++ to connect to Mysql server. For that I use these include files:
#include "cppconn/driver.h"
#include "mysql_connection.h"
but they cant be read by the compiler.
Help please!
Geat thanks!
Lykurg
8th October 2010, 22:05
Let me ask an other question: Why do you don't use QSqlDatabase to connect to your MySQL server?
R.CH
10th October 2010, 18:59
Can I use it to verify if I am connected to Mysql server or not?
tbscope
10th October 2010, 19:12
Yes:
http://doc.qt.nokia.com/4.7/qsqldatabase.html#isOpen
R.CH
10th October 2010, 22:37
yes but I would like to verify if I am connected to Mysql server not to a database
wysota
11th October 2010, 00:09
As far as I know you can't connect to a MySQL server without specifying any database because the access rights are often different for different databases.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.