Error code 1064, SQL state 42000: You have an error in your SQL syntax;

后端 未结 6 1062
囚心锁ツ
囚心锁ツ 2021-02-02 10:04

I\'m using latest version of MySQL ==> mysql-5.6.10-winx64.zip

Created the database and every thing is ok \'I think\' when I try to execute this simple command;

6条回答
  •  忘掉有多难
    2021-02-02 10:21

    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 OPTION syntax 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.

提交回复
热议问题