java.sql.SQLException:未知的系统变量“ OPTION”

Sim*_*aur 1 java mysql hadoop ambari

我正在使用Ambari服务器安装MYSQL,以便在ubuntu上安装hadoop。

我从Xampp安装了My Sql,并且工作正常。

set`Option关键字已从My SQL 5.6版本中删除,并且mariaDB(xampp附带)与此一致。

网站显示它与MySQL 5.6版本兼容,应该可以。

针对我发现的唯一相关链接

当我检查我的SQL版本时:

mysql -v
The program 'mysql' can be found in the following packages:
 * mysql-client-core-5.6
 * mariadb-client-core-10.0
Run Code Online (Sandbox Code Playgroud)

这就是我得到的。相信链接中提到的问题在这里不是吗?

当我尝试向ambari服务器注册主机时,它会引发以下错误:

我尝试更换连接器,版本和所有可能的东西。但是我一直收到这个错误。

java.sql.SQLException: Unknown system variable 'OPTION'
    at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:946)
    at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2985)
    at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1631)
    at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1723)
    at com.mysql.jdbc.Connection.execSQL(Connection.java:3277)
    at com.mysql.jdbc.Connection.unsetMaxRows(Connection.java:5867)
    at com.mysql.jdbc.Statement.realClose(Statement.java:2070)
    at com.mysql.jdbc.PreparedStatement.realClose(PreparedStatement.java:2204)
    at com.mysql.jdbc.PreparedStatement.close(PreparedStatement.java:695)
    at com.mchange.v1.db.sql.StatementUtils.attemptClose(StatementUtils.java:41)
    at com.mchange.v2.c3p0.stmt.GooGooStatementCache.synchronousDestroyStatement(GooGooStatementCache.java:413)
    at com.mchange.v2.c3p0.stmt.GooGooStatementCache.closeAll(GooGooStatementCache.java:351)
    at com.mchange.v2.c3p0.impl.NewPooledConnection.closeAllCachedStatements(NewPooledConnection.java:598)
    at com.mchange.v2.c3p0.impl.NewPooledConnection.close(NewPooledConnection.java:468)
    at com.mchange.v2.c3p0.impl.NewPooledConnection.close(NewPooledConnection.java:191)
    at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.destroyResource(C3P0PooledConnectionPool.java:470)
    at com.mchange.v2.resourcepool.BasicResourcePool$1DestroyResourceTask.run(BasicResourcePool.java:964)
    at com.mchange.v2.async.ThreadPoolAsynchronousRunner
Run Code Online (Sandbox Code Playgroud)

uir*_*han 5

我有同样的问题,更新mysql驱动程序版本已解决。