Hm, the error means normaly that libmysql.dll could not be found. So is libmysql.dll in the same directory as QtCore4.dll and also is libmysql.dll the library you used to build qsqlmysql4.dll?