On my platforms(RHEL based), PHP is compiled without MYSQL support, excerpt from my PHP Info follows :-
/usr/sbin/apxs’ ’--without-mysql’ ’
’, The php-mysql package is a separately packaged loadable module that’s compiled against the MYSQL client libs for the platform.
This is done because you don’t want to recompile PHP if the MYSQL guys bump the versions, you can just recompile the php package and ship it, the last thing you want to do is recompile PHP itself, this can cause considerable breakage across the platform as a whole.
MYSQL itself comes in two packages, client and server, they need not match version wise, the php-mysql package(AFAIK) is only compiled against the MYSQL client libs, not the server libs, so you can’t compile it against the server libs even if you wanted to. The only sane way out of this is to skip the check or up the MYSQL version, which will almost certainly mean moving providers for the OP.
I know Solaris is different(Coolstack is a prepackaged LAMP environment akin to XAMPP etc), and the OP didn’t say what platform he is on but I’m guessing its not Solaris,