我正在用ambari服务器安装mysql,以便在ubuntu上安装hadoop。
我已经从xampp安装了sql,运行良好。
set`option关键字已从我的SQL5.6版本中删除,mariadb(随xampp提供)与此一致。
网站显示它与MySQL5.6版本兼容,应该可以。
作为对我找到的唯一相关链接的回应,
检查sql版本时:
mysql -v
The program 'mysql' can be found in the following packages:
* mysql-client-core-5.6
* mariadb-client-core-10.0
这就是我得到的。我相信链接中提到的问题不是这里的情况吗?
当我尝试向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
2条答案
按热度按时间0mkxixxg1#
我也有同样的问题,我也重新安装了新版本的xampp,jdk和jre和netbeans,然后问题解决了
jtw3ybtb2#
我有同样的问题,并更新mysql驱动程序版本修复了它。