Native error 1064 Message : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version.
Symptom
Issue description:
Unable to rotate MySQL server account for MySQL 8.0.21 server
Error encountered : Native error 1064 Message : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version.
Environment
10.10;11.5;11.7;12.0;12.2;12.6;13.2;14.0 Privileged Access Manager (PAM, self-hosted) Central Policy Manager (CPM)
Central Policy Manager (CPM)
Cause
Encountered syntax issue as the following commands are no longer accepted by the target MySQL server.
Change command - Set password = Password('%NEWPASSWORD%');
Reconcile command - Set password for '%USER%' = Password('%NEWPASSWORD%');
The older version of MySQL server accepts the older command syntax above and in the higher versions of MySQL server (eg. version 8.x) this is no longer accepted.
Resolution
Under the MySQL server platform management settings -> Additional Policy Settings, change the syntax :
Change command - Set password = '%NEWPASSWORD%';
Reconcile command - Set password for '%USER%' = '%NEWPASSWORD%';