eclipse中使用sql development 遇到的问题

eclipse连接mysql
成功后查询报错

com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: 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=500' at line 1
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=500' at line 1

原因 mysql-connector-java 版本问题 mysql版本为5.6 用的驱动版本为5.0 更换为5.1.25后成功
这里写图片描述

猜你喜欢

转载自blog.csdn.net/zspppppp/article/details/79296013
今日推荐