You are not logged in.

Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Thursday, June 1st 2006, 8:42am

Embedded MySql on Windows QT 4.1

Hi,

I'm trying to open an embedded mysql database on windows using the qt mysql plugin that I compiled using the libmysqld library.

My qt code is as follows:

db = QSqlDatabase::addDatabase("QMYSQL");
db.setDatabaseName("test");
bool ok = db.open();

db.open() always returns false.

I tried putting the my.ini file into my HOME directory, into c:\ and into my application's directory. I also tried renaming the file to my.cnf and .my.cnf
I even went as far as creating a HOME environment variable to point to these directories and out of sheer desperation I tried a MYSQL_HOME variable.

Any ideas?

Thanks
- Pablo.

2

Friday, June 23rd 2006, 9:01am

RE: Embedded MySql on Windows QT 4.1

Hi,

did you find a solution for this problem?
I'm also not able to connect to the embedded mysql server.

Thanks
Mirko