mysql-connector-c++: add missing mysql dependency.

The dependency is needed for building and it's linked so at runtime too.

Closes #26464.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>