Production environment configuration problem on new server with CentOS 7

I am installing on a new production server (CentOS 7) and am getting this error when configuring the production environment for the first time:

[SIZE=11px]Connection Error
mysql_connect(): Headers and client library minor version mismatch. Headers:50541 Library:100112[/SIZE]

Now the funny thing is that I can specify Connection Name, DBMS Type (MySQL (Transaction)), Username, Password and press the “Test Connection”, which gives me:
“Connection Success”.

It is only when I then move focus to the selection list field Database Name that that the error comes after a short delay (where it probably is trying to get a list of database names).

phpinfo:
PHP Version 5.4.16 [TABLE=“border: 0, cellpadding: 3”]
[TR]
[TD=“class: e, bgcolor: #CCCCFF”]Build Date[/TD]
[TD=“class: v, bgcolor: #CCCCCC”]Jun 23 2015 21:18:22[/TD]
[/TR]
[TR]
[TD=“class: e, bgcolor: #CCCCFF”]Server API[/TD]
[TD=“class: v, bgcolor: #CCCCCC”]Apache 2.0 Handler[/TD]
[/TR]
[/TABLE]

Any ideas about what may be wrong?

So far it seems that a very new version of MariaDB 10.1.12 and an older version (5.4.x) version of PHP that could be the problem.
I will post more, once we have it resolved.