Hi everybody,

Like many people in this forum, I have problem connecting to a mysql databasis.

I have tried every tutorials I can find on internet but I have still the same error :
"In file included from main.cpp:26:
../../../sql/drivers/mysql/qsql_mysql.h:34:19: mysql.h No such file or directory"

I have Qt 4.1.1 OS on windows XP and MySQL 5.0.

I did the steps listed at this adress:
http://qtfr.org/forum/viewtopic.php?pid=8357 (in french)
(or the same in english: http://www.korone.net/bbs/board.php?...ture&wr_id=173)

For me, this is:

cd c:\program*\mysql\mysql*\lib\opt
reimp -d libmysql.lib
dlltool -k --input-def libmysql.def --dllname libmysql.dll --output-lib libmysql.a

cd Qt\4.1.1
configure -plugin-sql-mysql
(I also tried: configure -plugin-sql-mysql -I C:\program*\mysql\mysql*\INCLUDE)

cd c:\qt\4.1.1\src\plugins\sqldrivers\mysql
qmake -o Makefile "INCLUDEPATH+=C:\program*\mysql\mysql*\INCLUDE " "LIBS+=-LC:\program*\mysql\mysql*\LIB\OPT -lmysql" mysql.pro

cd Qt\4.1.1
make

And I get the error:
"mysql.h No such file or directory"

Like I said before, I have tried every thing I can and I don't know how to fix this error. So if someone can help me, I would really apreciate it.

Thanks.