Hi,

I've been having some issues with MySql and Qt 4.
I managed to get the plugin compiled without any hassles under 4.1.4 on my home machine.
That machine does have MySql 5 running as a system service.
I wrote a test app which calls QSqlDatabase::drivers() so I can confirm the successful detection of the compiled plugin.
QMYSQL appears in my list, yay!

On another PC I use at work, I successfully built the plugin using the exact same steps and no errors occurred.
But, when I run the test app the driver won't appear.

I've tried doing it manually as described in the Qt documentation, as well as a complete Qt rebuild passing -plugin-sql-mysql and -qt-sql-mysql as an argument, yet it makes no difference. (By the way, I did mod the .pro file giving the location of the headers and lib before running configure.exe).

Next, I tried simply copying my entire Qt folder from home to work, then ran the test app.
I had compiled ODBC as well on the home build.
These ODBC drivers came up at work, but the QMYSQL driver didn't appear.

Why, given an identical Qt build would the QMYSQL driver not be detected?
I'm not running MySql at work but I can't see why that would matter.
I've also tried this with 4.2 snapshots but get the same issue.

Any ideas?


Steve