No. You should use the the libmysql.dll from mySQL 4.0The mySQL team made later versions incompatible with 4.0. But by using the 4.0 client lib you can access 4.1 servers as well.It is very hard to keep up with the mySQL team if they change function calls from one minor version to the next.