I have upgraded one of our sites to Craft CMS 4 and moved it to a staging site on Azure. The front-end works but the control panel gives the MySQL 5.7.8 or higher is required to run Craft CMS error.
It looks like the wrong MySQL version is being returned by PDO::ATTR_SERVER_VERSION
.
$conn->getAttribute(PDO::ATTR_SERVER_VERSION)
returns: 5.6.47.0
$conn->query('select version()')->fetchColumn()
returns: 5.7.32.log
MySQL Workbench also returns 5.7.32
Anybody else encountered this problem or have any suggested workarounds?
Thanks!