mysql OPTION SQL_SELECT_LIMIT= error handling

Suddenly such an error appears:
Code: 1064, SQL State: 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 'OPTION SQL_SELECT_LIMIT=1000' at line 1

I checked the reason online, and it was said that the jdbc class package version was wrong, so I downloaded the relevant new version of the mysql-jdbc class package from the Internet, and found that the problem was not solved.
Continue to find the reason from the Internet, and found that it is basically said to be the reason.
So I checked and found that it was because a jar package of mysql-jdbc was defined in the system variable classpath, and there was
also a jar package of mysql-jdbc in the C:\Program Files\Java\jre1.8.0_131\lib\ext directory, and this The versions of the two packages are lower, and the problem is solved after changing the environment variables.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326119464&siteId=291194637