IDEA链接mySql问题 : You have an error in your SQL syntax : 'OPTION SQL_SELECT_LIMIT=1000' (or 'OPTION SQL_SELECT_LIMIT=DEFAULT')

时间:2022-10-04 22:05:50
IDEA控制台错误信息:
check the manual that corresponds to your MySQL server version for the right
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' (也有'OPTION SQL_SELECT_LIMIT=DEFAULT'的情况)at line 1

问题解决过程:
根据“You have an error in your SQL syntax”、“your MySQL server version”更新mysql版本,无果; 查看pom.xml
<!-- 导入Mysql数据库链接jar包 -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>${mysql-connector.version}</version>
<scope>runtime</scope>
</dependency> 根据“OPTION SQL_SELECT_LIMIT=1000(DEFAULT)”、网上资料将srm项目、ssm(Basic-Single-Module-SSM)项目更改 Database里的mysql驱动文件为 mysql-connector-java-5.1.21.jar成功。

后续待解决:
OPTION SQL_SELECT_LIMIT=1000(DEFAULT)有什么含义?
参考链接:
      https://*.com/questions/15669270/option-sql-select-limit-default
Download Connector/J 链接:
      https://dev.mysql.com/downloads/connector/j/5.1.html

IDEA链接mySql问题 : You have an error in your SQL syntax : 'OPTION SQL_SELECT_LIMIT=1000' (or 'OPTION SQL_SELECT_LIMIT=DEFAULT')的更多相关文章

  1. ERROR&colon; You have an error in your SQL syntax&semi; check the manual that corresponds to your MySQL server version for the right syntax to use near &&num;39&semi;type&equals;InnoDB&&num;39&semi; at line 7

    问题: 使用hibernate4.1.1,数据库使用mysql5.1.30,使用hibernate自动生成数据库表时,hibernate方言使用org.hibernate.dialect.MySQLI ...

  2. C&num; Mysql You have an error in your SQL syntax&semi; check the manual that corresponds to your MySQL server version for the right syntax to use near &quest;&quest;&quest;&quest;

    有几年没用过MySql数据了,今天在使用C#访问MySql数据库时出现了一个小插曲. 错误提示: You have an error in your SQL syntax; check the man ...

  3. MySql 执行语句错误 Err&rsqb; 1064 - You have an error in your SQL syntax&semi; check the manual that corresponds to your MySQL server version for the right syntax to use near

    关于用Power Designer 生成sql文件出现 错误  [Err] 1064 - You have an error in your SQL syntax; check the manual ...

  4. SpringMVC&colon;com&period;mysql&period;jdbc&period;exceptions&period;MySQLSyntaxErrorException&colon; You have an error in your SQL syntax&semi;

    今天用SpringMVC做修改添加操作,之前的操作都实现了添加修改,但始终报com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: You have ...

  5. You have an error in your SQL syntax&semi; check the manual that corresponds to your MySQL server version for the right syntax to use near &&num;39&semi;

    mysql中如果字段使用了关键字,在插入和更新时会提示 You have an error in your SQL syntax; check the manual that corresponds ...

  6. MySQL在创建存储过程的时候&comma;语法正确却提示You have an error in your SQL syntax

    我在使用MySQL工具编写MySQL存储过程的时候,明明语法正确,但是却一直提示You have an error in your SQL syntax. 比如下面一段代码 CREATE PROCED ...

  7. MySQLSyntaxErrorException&colon; You have an error in your SQL syntax&semi; check the manual that corresponds to your MySQL server version for the right syntax to use near &period;&period;&period;

    下面是我update数据库时打印出来的异常: ### Error updating database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSynt ...

  8. You have an error in your SQL syntax&semi; check the manual that corresponds to your MySQL server version for the right syntax to use near &&num;39&semi;like &&num;39&semi;&percnt;逸&percnt;&&num;39&semi;&&num;39&semi; at line 1

    <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE mapper PUBLIC "-/ ...

  9. You have an error in your SQL syntax&semi; check the manual that corresponds to your MySQL server versio

    Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL ...

随机推荐

  1. openfire的组件&lpar;Component&rpar;开发

    在之前的文章<Openfire阶段实践总结>中提到过一种openfire的扩展模式Compoent.本文将主要探讨对这种模式的应用与开发方法. 内部与外部组件介绍 在openfire中的许 ...

  2. WebForm中如何防止页面刷新,后退导致的重复提交

    当用户按下浏览器中的 F5 键刷新当前页面时,对这一过程进行检测所需的操作步骤.页面刷新是浏览器对特定用户操作(按 F5 键或单击"刷新"工具栏按钮)的响应.页面刷新操作是浏览器内 ...

  3. TCP&sol;IP 中文译名为传输控制协议&sol;因特网互联协议,又叫网络通讯协议

    原文地址:http://hi.baidu.com/albyuyrgqgbbhoq/item/65006d2d002ab33195f62ba1 TCP/IP(Transmission Control P ...

  4. 转载纯真ip库

    http://blog.csdn.net/clin003/archive/2007/08/14/1743157.aspx 利用 QQWry.Dat 实现 IP 地址高效检索(PHP) 根据 LumaQ ...

  5. 【操作教程】SequoiaDB分布式存储教程

    1.各模式适用场景介绍 由于SequoiaDB对比其他的NoSQL有更多的方式将数据分布到多台服务器上,所以下面笔者为阅读者一一介绍每种分布式方式适合于哪种场景. 1.1 Hash 方式分布数据 在H ...

  6. Redis4&period;0 之持久化存储

    redis如果提供缓存服务,可以关闭所有持久化存储,如此一来redis重启后所有数据会丢失 开启rdb或aof持久化存储,能把redis中的数据持久化到磁盘中. rdb和aof对性能都有影响,所以建议 ...

  7. vuejs怎么在服务器部署?(知乎)

    作者:知乎用户链接:https://www.zhihu.com/question/46630687/answer/157166318来源:知乎著作权归作者所有.商业转载请联系作者获得授权,非商业转载请 ...

  8. headers 替换脚本

    python代码 headers = """ Accept: */* Accept-Encoding: gzip, deflate, br Accept-Language ...

  9. 10-关于DOM的事件操作

    一.JavaScript的组成 JavaScript基础分为三个部分: ECMAScript:JavaScript的语法标准.包括变量.表达式.运算符.函数.if语句.for语句等. DOM:文档对象 ...

  10. 多模块项目提示&OpenCurlyDoubleQuote;Module &ast;&ast; must not contain source root &ast;&ast;&period; The root already belongs to module &ast;&ast;”的解决办法

    从Project Structure里添加模块,完了点击Apply时弹出提示: Module "paycode"must not contain source root &quot ...