mysql select default,'OPTION SQL_SELECT_LIMIT = DEFAULT'

I have a mysql database on Netbeans and I want to see that view data but I have a error 1064 'OPTION SQL_SELECT_LIMIT=DEFAULT' . how can I fix ? thanks.

解决方案

Some google foo lead me to this:

That bug report sound pretty much like your problem - there is no good fix for

you. But there is a lead for some more reading.

The similarity to you problem:

It's also the jdbc driver involved

The error message is the same

the problem occurs on a very recent mysql server version

So I tried to find the problem in the mysql-connector-java sources and found

the statement in StatementImpl.java in version 5.1.18 - an older version can be

found here:

Look for "SET OPTION SQL_SELECT_LIMIT=DEFAULT" in the file and you will find

it.

I also checked the most recent version

I checked the source of mysql-connector-java 5.1.22 and the problem seems to be

fixed:

SET SQL_SELECT_LIMIT=DEFAULT

So suggested fix for the user: Please download the newer version of connector/j

and modify the driver entry in databases.

Suggested fix: Update bundled connector/j version

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值