MySQL server version for the right syntax to use near 'OPTION SQL_SELECT_LIMIT=DEFAULT’
2015-10-15 20:48
896 查看
我在遇到了数据库访问时错误,具体如下:
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=26'
at line 1
查了下之后类似OPTION SQL_SELECT_LIMIT=DEFAULT 都是一个mysql的BUG:
That looks like an error coming from a JDBC driver. When the JDBC driver initializes the connection, it sends several commands to the MySQL server, one of which is:
The problem is that the
Bug #66659: mysql 5.6.6m9 fails on OPTION SQL_SELECT_LIMIT=DEFAULT
Try upgrading your JDBC MySQL driver. The bug conversation lists some other options in case upgrading the driver is not an option.
具体问题链接:https://netbeans.org/bugzilla/show_bug.cgi?id=224260
解决办法:下载最新的JDBC驱动jar包替换你原来的jar包即可,链接如下:
http://dev.mysql.com/downloads/file.php?id=412737
见附件也可以
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=26'
at line 1
查了下之后类似OPTION SQL_SELECT_LIMIT=DEFAULT 都是一个mysql的BUG:
That looks like an error coming from a JDBC driver. When the JDBC driver initializes the connection, it sends several commands to the MySQL server, one of which is:
SET OPTION SQL_SELECT_LIMIT=DEFAULT
The problem is that the
SET OPTIONsyntax has been deprecated for some time and is now no longer valid in MySQL 5.6. Here's a relevant bug conversation from MySQL's bug database:
Bug #66659: mysql 5.6.6m9 fails on OPTION SQL_SELECT_LIMIT=DEFAULT
Try upgrading your JDBC MySQL driver. The bug conversation lists some other options in case upgrading the driver is not an option.
具体问题链接:https://netbeans.org/bugzilla/show_bug.cgi?id=224260
解决办法:下载最新的JDBC驱动jar包替换你原来的jar包即可,链接如下:
http://dev.mysql.com/downloads/file.php?id=412737
见附件也可以
相关文章推荐
- hadoop1.2.1集群安装hive1.2.0,用mysql作为元数据库
- ERROR 2006 (HY000): MySQL server has gone away
- shell脚本:监控MySQL服务是否正常
- shell脚本:监控MySQL服务是否正常
- MySql常用维护命令7
- django postgresql中随机取出一条记录的实现
- MySQL数据定义语句:CREATE(创建)命令、ALTER(修改)命令、DROP(删除)
- PostgreSQL数据库 OLTP高并发请求性能优化
- Oracle FORALL & PostgreSQL ? op any|all (ARRAY)
- PL/SQL Developer 连接Oracle数据库详细配置方法
- PostgreSQL (User defined Operator) UDO & Operator Optimization Information
- londiste3 copy table' snapshot & PostgreSQL logical replication's snapshot 不同之处
- PostgreSQL & Oracle - 2 OLTP "update/select based primary key" & insert
- PostgreSQL & Oracle -1 OLTP "update/select based primary key" & insert
- population & sample covariance, standard deviation Aggregate in PostgreSQL
- PostgreSQL数据库监控中的统计学 - 对象空间的数据分布图
- MySQL主从架构之Master-Master互为主备
- Django如何连接mysql数据库
- SQL 中GO的作用
- MySQL架构体系