I am encountering an issue while configuring a MySQL connection in Neosync with a MySQL 5.7 database hosted on AWS RDS. The following error occurs during the setup process:
Error 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'admin_privileges AS ( SELECT privilege_type FROM INFORMATION_SCHEMA.USER_P' at line 2
The issue is specific to MySQL 5.7. When attempting the same setup with MySQL 8.0.40, also on AWS RDS, the connection is established successfully without any errors.
Executing the query directly on MySQL 5.7 results in the same error, whereas it executes successfully on MySQL 8.0.
As far as I understand, the error appears to be associated with the use of CTE in the query, which is available only for versions 8 and upwards.
Is there any extra setup we need for making neosync compatible with MySQL 5.7, or are there any suggested work arounds? If not, can we consider adding support for MySQL 5.7?