I have a app running with JDBC and get data from MySQL, but I can\'t build it because of this error :
java.sql.SQLException: Unknown system variable \'query
I stuck on this issue, spend full one day and finally i got solution.
Solution :
1) Use exact mysql-connector-java jar or dependency as your mysql version. 2) if your mysql version is 8 or 6+ try to use this "com.mysql.cj.jdbc.Driver" driver class.