This article will guide you on methods to fix cPanel MySQL #error query #PHP. Generally, the MySQL error query PHP is mainly related to the PHP file. This can be either caused due to incorrect database details in the PHP file or incorrect permissions or incorrect ownership in files.
To fix this issue:
1. Update to the latest version of #MySQL to resolve the issue.
For some, this may require removing yum version locks on the MariaDB packages.
If packages are locked for #MariaDB clear the lock with the below command:
yum versionlock clear
Otherwise, proceed with the updates for MariaDB:
yum upgrade MariaDB-*