Native error 1064 Message : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version.

Native error 1064 Message : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version.

194
Created On 11/10/26 11:01 AM - Last Modified 11/10/26 16:12 PM


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%';



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001eZjCAI&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail