mysql-connector-c++: allow mariadb/percona-server

Fixes #27025.
Closes #27421.

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